SeanDugan890...Did you find it? It is easier to find than I thought and quzah`s suggestion takes you right to it although I had a sneaking suspicion before I printf`ed.
Type: Posts; User: plain
SeanDugan890...Did you find it? It is easier to find than I thought and quzah`s suggestion takes you right to it although I had a sneaking suspicion before I printf`ed.
Kermit and cas!
Thank You!
I can`t believe I had the wrong operator in the function! The program works now perfectly with % instead of &. What a dope! I appreciate you guys help! And yes the...
I am trying to learn how to call and write functions using an old book, "C By Discovery" It is a good book.
My problem is the following code returns the 'odd' message only on the numbers 3, and...
Quzah!
I thank you most heartily. I sometimes just cannot see these things. Have a good one!
Plain
Okay Quzah:
I replaced 'fprintf' with 'stdout' and the compiler complained about something later in that same line of code not being a 'function'.
#include <stdio.h>
int main()
Hi Quzah:
Thank you for such a speedy reply.
I thought the 6th line from the bottom with 'fprintf' would cause the file to be printed to the console. Can you explain my error?
I am trying to get C to go to a file, fscanf the information then bring it back and do a calculation. I have the .dat file in the same directory as the main.c file and the console window comes up...
I have several C programming books and the one I like best is 'A Step-by-Step Guide To C Programming' by Jean Paul Corriveau. I bought in a second hand store for 75 cents. It appears from some of...
Hi Twomers:
Well, I reworded my web search and found this exact example in a previous post here on C Programming. It seems the book is wrong and the function declarator should have been "void...
Hello All!
I`m still trying to wade through C++ and am now using VC++. I tried to run
a program and keep getting a message that says .....
"function1102506.cpp(23) : error C2448:...
Of course! Thank you DWKS I should have known better.
The pi thing.....I`m lost can you enlighten me?
I am trying to compile this in DevC++ but I keep getting hung up with the error..
" 'h' cannot be used as a function." Is there something I`m missing? I`ve been assigning different letters to...
Thanks everyone! LOL I can see I have more studying to do. You`ve all been great!
Actually, now that you mention it, I should ask the user to correctly enter his request right? And not get out of the program. Thank You! And yes, I didn`t realize the switches had to be in their...
I wanted (t != f || c) to make sure the user would have to start over or get an error message if he did not enter "f" or "c". And thanks for the comment on indenting. I`m still fuzzy on this but...
Good Morning:
I`ve read my books and several sites about "if" statements but I can`t get a feel for why "break" can`t be placed where I have placed it. DevC++ tells me it was expecting a...
Thank you all. This has helped quite a bit. I appreciate the time you took to reply.
..Plain
Hi All
I have searched quite a few FAQ`s, C/C++ Reference site and the FAQ`s here and I`m still sort of lost about endl and \n. I know that both are used to end a line. That \n is quicker....
main, main???? How did that get in there? Now you see why I need help. The more I look the less I see. I wasn`t insulted by anything, I appreciate you guys patience. Now I can get on with my...
Yuk, Yuk................page 181 "lexi.cpp".
Since I`ve been trying for about 4 hours now to get this squeezed through the compiler, burning is far down the stack. That aside though, the only...
Sorry for the gobbledygook. I will try a code tag approach...if I know how.
#include <iostream>
#include <string.h>
using namespace std;
int get_a_string(char *buffer, char *s, int...
Here is the code: I hope not knowing exactly how to post code will not be a hinderance.....
#include <iostream>
#include <string.h>
using namespace std;
int get_a_string(char *buffer,...
Using the wxDevcpp compiler to compile an example in Brian Overlands "C++ Without Fear" I get the error and message-------
"8 H:\Dev-Cpp\MyFilesPractice_Projects\Practice482906.cpp too many...