Can you give a simple program that uses tolower to convert strings into lowercase? Or simply just the general syntax of tolower pls. Can find it in google. Thanks
Type: Posts; User: Moon River
Can you give a simple program that uses tolower to convert strings into lowercase? Or simply just the general syntax of tolower pls. Can find it in google. Thanks
Still a mess
I didnt coz i dont know how
But it doesnt sir. I dunno why. I just did it before but now i cant :(
It is inside a loop.It writes everything that i want to except that it doenst write the new line that i want.
.I have a problem writing new line in a file. So far, this is my code.
fprintf(f, (ctime(&mytime)));
fprintf(f, "%s %s %d %d", item, brand, price, amount);
fprintf(f, "\n");
fclose(f);
How do i sort numbers from highest to lowest using qsort? I dont have a code. I dont know how to use this one.
I did this.
int found=0;
(found=1)
But still, i dont get my expected result :(
This program will allow the user to input string then scans the file if it contains the same string given by the user. But i always get "MATCHED" even if i enter random string. Please help. I tried...
I run it and here's the output.
6
9
5
0
3
4
1
1
int main
{
int a;
srand(time(NULL));
for(int i=1; i<=10; i++)
{
a=rand() % 10;
printf("%d", a);
}
But i still get same numbers in a row sir
Inside my loop is this
srand(time(NULL))
a=rand()%10;
So it will generate numbers again and again as the loop goes on but it always repeat some numbers. My question is, how would you generate...
Whenever i enter a string that matches with the string in the file, it displays STRING FOUND. But whenever i enter anything that doesnt match anything in the file, the system displays a lot of STRING...
Im working on a program that will allow the user to input a string, read the file and search if the user input string is in the file. Whenever i input a string that does match a string it displays...
Can you please suggest a good but not-so-difficult program for my final term project? :)
I had a hard time speaking english though, let's just say that i want my program to read the string given by the user then compare it to the data contained by the file. If anything matches, then it...
So i can use loop for the system to check to whole file? How can i do that? Please teach me.
I didnt configure anything. Its just that my system("pause") and system("cls") is not working without the iostream.
Can you correct my code pls? Im just a 1st year IT student. Dont expect much from me. C is my first language and i begin creating programs for about a month or so.
I am expecting that if i enter a string that is same as the strings contained in the file, the system will display STRING FOUND. But when i run it, i always get the "STRING NOT FOUND".
Also, im...
I want to compare 2 strings. One is from user and one will be from a file.
My file contains this.
Philippines
Olives
Polymerization
Coconut
I dont get my expected output. Here's my code....
Ohh im sorry, what i mean is the 'main menu' of my program.
It goes like this. i want to put some line above and at the bottom so i search for some extended ascii codes. But the displayed char is...
I want to design my table with extended ascii codes. What's the general syntax for that? Im using C v5.7.1 on windows 8. Thanks
Yes, i was referring to the void before del() and add(), i just saw it on my classmate and i dont know what it's called.