I find it funny out of all the posts I've read on this thread, none of the experts on the forum have posted any books they've used.
It's probably because they never needed any! They figured it all...
Type: Posts; User: jake123
I find it funny out of all the posts I've read on this thread, none of the experts on the forum have posted any books they've used.
It's probably because they never needed any! They figured it all...
Isn't this a violation of the "Homework" policy. Please do not post complete solutions, it's important that people figure things out for themselves.
getchar() is what keeps the command line window from disappearing at the end of program execution.
Also, you not not need the math header file in the code.
Actually that's not really needed. Out of all the IDE's I've used Visual Studio's auto-formatting just forces you to do that, but putting them at the end of an if statement or onto the next line is...
Can you be more specific on "says it can't find file"? Is it a compiler error? Are you getting something in the console below that says "can't find file?"
I can make a guess and say something...
There's an open source compiler for the Zilog Z80. It's called Small Device C Compiler. I haven't done anything with it, but it seemed like a good compiler.
It's retargetable
provides full set of...
If your going to keep adding, might I suggest organizing this into seperate functions.
Also a debugger usually helps to, it allows you to step through your code and look at variables. Visual...
Well if your an Electrical Engineer, to be honest there's no escaping programming. In fact it's kind of ridiculous that EE's have to take only one programming course when almost all embedded...
I think it looks fine to, you could make it more optimal so a user can do multiple calculations without having to exit. This could maybe be accomplished by use of a boolean variable to replace the...
Thanks for all the help robwhit, tabstop, matsp and vart, but I just switched to a new IDE that will let me tame this problem. Or I can just read the extensive make manual and try and teach myself...
I would suggest using an array in this problem since your printing the numbers backwards because when you convert to a different base the first number is always the least significant digit.
For...
I know make predates IDE's, but I was just wondering how they did it back when the language was created. But I guess that's a stupid question because they probably just use the command line compiler....
I know I've made multiple posts on this subject, but I can't seem to figure out how to compile multiple source files using header files. I read the FAQ and previous posts and I'm doing everything...
Oh yeah, thanks to everyone for the help and advice. I appreciate it.
I'm familiar and like I said that probably will work.
It's not that big of a deal anyways, I just probably forgot and I probably did use a project, I just can't remember.
A moderator can mark...
Visual Studio '08 is only free for selective Universities. I'll probably be able to get it, but I'll have to go back to school to get my MSDN password. I'm on co-op term right now.
I should...
Yes I did.
I know I can probably fix it by doing that and the help isn't very specific about compiling multiple source files except for creating a project.
I just swore that I remember...
Now I know there's been a bunch of message board threads regarding this, but I've already searched for them and I followed the steps but I keep getting compiler errors from the mingw compiler.
I'm...
Thank's for the help matsp and MacGyver, I could have probably spotted this with a debugger, but I currently don't have one setup right now.
Hello everyone,
I'm producing a piece of code that converts numbers to different bases. I want the program to loop until someone types in zero which exits the program. I have it setup and working,...
The forums on this site are great and people are more then willing to help you. I'm a beginning programmer as well, and believe sometimes I can be impatient, but you have to realize it takes a long...
Thanks a lot for the clarification tabstop and xuftugulus. I appreciate the help.
I see a lot of people use Visual Studio, but I heard it doesn't support C99 fully yet. I don't know about the more recent '08 version, but it doesn't matter much since most things I've run into when...
That makes sense. So is correct to say the reason you pass %lf to scanf() is because it's like a "long float" since a float is considered to be 32-bits wide on most computers where a double is 64...
So there's a different format character for reading doubles using scanf() then there is in printing them? Your suggestion worked, I'm just wondering why in the printf() statement you can represent...