Did I do this right?

Write a program that inputs a line of text with functin gets char array s [100]. Out put the line in Uppercase and in lowercase letters.
When I run the program it says "No symbols loaded". I am new at programming so explain to me very well.


#include "stdafx.h"
#include <ctype.h>
#include <string.h>


int _tmain(int argc, _TCHAR* argv[])
{
char str1[100]; /* create char array */
int i;
printf("Please enter a string:\n"); /* user read line of text*/
gets(str1);

for(i=0;i<strlen(str1);i++) /* upper takes a single char as a parameter */
str1[i]=toupper(str1[i]);
printf("The upper string is: %s\n",str1);

for(i=0;i<strlen(str1);i++) /* lower takes a single char as a parameter */
str1[i]=tolower(str1[i]);
printf("The lower string is: %s\n",str1);

return 0;



} /* end main */
That just means it doesn't have to load any symbols...it's not an error. I think a symbol is .dll or something that you need to load to run your program, but don't quote me on that.
Topic archived. No new replies allowed.