If anyone have any tips, here is the whole code:
Thanks again! =)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Type: Posts; User: julianenepom
If anyone have any tips, here is the whole code:
Thanks again! =)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Thanks all!! Its working! =)
Ok. The error that I get is:
When I try to Input a date like "20110420" using scanf, it gets only the first number, that is "2".
The code is:
#include <stdio.h>
#include <stdlib.h>...
Yea. The input size is 8. I will try it here.
Thx
Well, now i cant do some other stuff...
In this code, the file text.txt is beeing deleted.
#include <stdio.h>
#include <string.h>
int main (void)
This code works, but i have some more issues when i use scanf! =O
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main ()
{
Hi there. Im having some problems with string concatenation.
The command in windows is:
ren c:\temp\text.txt text2.txt
But the number "2" i want to be a variable so i can change after i get...
I used the do/while, and its ok now. ;) thx for the help
For anyone how ever needs it, here is the code:
/* Celsius to Fahrenheit and vice-versa */
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
int calc()
{
float var, opc;
int cmd;
cmd = 0;
I need something like, "Press Enter do start the program again".
What do I need to do?
I dont know If anyone got it, but its a program to change Celsius to Fahrenheit.
main(){
float var, opc;
printf("Type the value:");
scanf("%f", &var);
Hi there. Im having this:
printf("Press Enter to continue or Esc to leave the program.");
Now, if the user press "Enter" the program starts again from the begining. If the Escape key is...
Oh, thank you so much!!! I will get familiar with C. ;)
Thx again!
July
Thx for the posts. Im getting familiar with C.
I'm using Dev-C++ to compile this program.
And about the heart symbol and things like that, im getting this:
int a, b;
char c;
Thats the way I did it, only using the (If) statement. (Which is required by the teacher).
Can this be smaller or/and smarter?
Thx.
July
# include <stdio.h>
I did what u said. ;) It seems ok here. I will post when the program is ok. =)
Thx :)
July
Cause I need to read 3 numbers with scanf and then show them. Order by ascending using only the If expression.
:)
Thank u so much! Its ok now.
Just one thing: Is there by any chance how to store in a char variable multiples int variables?
Thx again. ;)
July
Hi there, i'm new to this forum and new to programming too.
I did this:
#include <stdio.h>
#include <stdlib.h>
main()
{