r/CpusplusProgramming • u/fahadmunir33 • Jan 12 '17
r/CpusplusProgramming • u/starButterflyluvr • Sep 15 '20
Debugging Strings Exercise
Can someone glance over this homework assignment? I know it's super easy but I want to make sure it's correct before turning it in.
I'm also not seeing an error on problem 4.
I'm unsure about problem 3 especially.
Thanks!
//Original assignment side //My updated side 'debugged'
1.
char str[] = “Stop"; char str[] = “Stop”;
if (isupper(str) == “STOP") if (isupper(str) != ”STOP”){
exit(0); exit(0);
}
2.
char numeric[5]; char numeric[5];
int x = 123; int* x = 123;
numeric = atoi(x); numeric = atoi(x);
3.
char string1[] = “Billy"; char string1[15] = “Billy”;
char string2[] = " Bob Jones"; char string2[15] = “Bob Jones”;
strcat(string1, string2); strcat (string1, string2);
4.
char x = 'a', y = 'a';
if (strcmp(x, y) == 0) Is there anything wrong with
exit(0); this one? X and y are the same
char values.r/CpusplusProgramming • u/fahadmunir33 • Feb 28 '17
Payroll management system project C++ source code ~ C++ Programming Tutorial for Beginners
r/CpusplusProgramming • u/burgundicorn • Apr 02 '20
Facial Recognition
Hello there,
Recently, I've got this project on Facial Recognition for Uni, that I have to finish by the end of the semester. Now, the thing is, the teacher asked us to do it in C++, without using any useful things, such as OpenCV library or others. We gotta make everything from scratch, using the Viola-Jones algorithm.
I read a lot on AdaBoost and all of these things and I just cannot find a way to start, I cannot put everything together and understand what I actually have to do.
Any ideas or advice on this?
Thanks brus
r/CpusplusProgramming • u/OnlyNeighborhood • Mar 09 '18
Task: searching dividers (function) C++
r/CpusplusProgramming • u/codingcreativo • Nov 29 '19
array in C++, for beginners
r/CpusplusProgramming • u/fahadmunir33 • Feb 01 '17
Print alphabets from a to z c++ program do while ~ C++ Programming Tutorial for Beginners
r/CpusplusProgramming • u/fahadmunir33 • Jan 20 '17
C++ simple linked list example with student record
r/CpusplusProgramming • u/OnlyNeighborhood • Feb 18 '18
Task: calculat square and square root C++
r/CpusplusProgramming • u/fahadmunir33 • Mar 10 '17
queue implementation in c++ using array ~ C++ Programming Tutorial for Beginners
r/CpusplusProgramming • u/[deleted] • Dec 09 '19
Do you know the error? can't figure it out
r/CpusplusProgramming • u/Bilalaftabraja • Oct 08 '17
Do while loop in C++
r/CpusplusProgramming • u/Bilalaftabraja • Sep 27 '17
Working with C++ is a Fun
r/CpusplusProgramming • u/fahadmunir33 • Oct 03 '17
c++ program to count spaces in a string
r/CpusplusProgramming • u/OnlyNeighborhood • Feb 27 '18
Task: program determinedes if numbers are odd or even C++