i keep getting this error in debugger, im copying the code exactly from a book, I was wondering if it is my Turbo C++, Me or the Code I'm copying?
Thanks in advance!
Bassglider
Statement mising ; in function main ()
expression syntax in function main()
Code:#include <stdio.h> #include <conio.h> #include <ctype.h> #include <string.h> main() { char name[25], nameNew[25]; char ans; int i; printf("What is your name? "); gets(name); printf("Are you sure that %s is your name? y or no", name); ans = getch(); if (toupper(ans) == 'Y') { for (i = 0; i <= strlen(name); i++) { nameNew[i]} = toupper(name[i]a); } printf ("Your name in uppercase letters is %s.\n", nameNew); } return 0; }