Thanks. That was unbelievably helpful. I see where all those things can help. And, yeah. A bit dumb of me to fix one loop and not the other.
Also, what warnings? I see your long list, but I'm...
Type: Posts; User: Gigabitten
Thanks. That was unbelievably helpful. I see where all those things can help. And, yeah. A bit dumb of me to fix one loop and not the other.
Also, what warnings? I see your long list, but I'm...
#include <stdio.h>
#include <stdlib.h>
#define LOOPNUM 42 //just a way to keep a loop going infinitely without a GOTO
/***********************************************/
/* The point of this...
Thanks. Nope, no rambling. And your 'while(1)' was pretty neat. Thanks. Also, I must say that the pointers in C still confuse me a bit. So, yeah. I'll fix those things mentioned and run with...
Okay, so I made a console application that - since I'm a beginner - took me a total of 8 hours to make so that it is easily expansible and easily read. I think that this lives up to the standards. ...
Anything on pdf? Something that is not on one of those filesharing sites, if possible.
Wow. Thanks, FloridaJo. I was right - that was amazingly simple. I will remember that syntax forever, mostly because it caused me so much trouble not to.
It's probably some super simple thing that I would see right away if I weren't a beginner. And by the way, let me redo that with comments.
/*
Programmer : Caleb Spiess
Date :...
There is no error at least that Pelles C can find. I am just learning how loops work, and I am trying to figure out how to print out 1 - 99 without a bijillion printfs. Here is the code.
...
Basically, I want something like this: Cprogramming.com Tutorial: Introduction to C - Cprogramming.com.
Except with more programming challenges. Like, with a challenge or two every time you learn...
I am looking for a C tutorial that gives you an example program to show you how something works, then explains it extremely thoroughly, then challenges you to make a program of your own that does...
Thank you, by the way Cron, for the tips. I am just starting with the language.
As a matter of fact, the getchar() does have a function. It keeps the program from moving on without the user. I think. If there is a better way to do that, tell me please.
Thanks, guys. That should do it.
That's weird. I got rid of both of the unnecessary semicolons. For some reason, however, I now have both the original error and a new one: by the way, if it is useful, I am using Pelles C.
...
Thanks. I thought it would be something ridiculously simple. I'm still learning, but I'm getting there.
You were right, the IDE was the best thing I have ever downloaded. For the record, the error codes are clearer, and the fact that I deal with errors more than the original program makes this...
#include <stdio.h>
int main()
{
int age;
printf( "Please enter your age: " );
scanf( "%d", &age );
if( age < 20 ); {
printf( "Wow! You're pretty young!" );
...
By the way, how do you mark a thread as solved?
Geez! I left for one day and you already have a full-on debate going! Not bad! Thanks for the tips, guys.
I just need a Windows C compiler. I need something that I can install that can put a function into the command line and I can type in a command from anywhere in the command line prompt and compile a...
Such a simple syntax error...thanks, guys! I was amazed at how fast the answer came!
By the way, this is just experimental. There is absolutely no purpose to this program than a learning experience.
I'm a novice C programmer using the Ubuntu terminal to compile. As in, I just started today. The compiler keeps coming up with this:
Variable1.c: In function 'main':
Variable1.c:9:46: error:...