Search:

Type: Posts; User: plain

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,210

    Solution!

    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.
  2. Replies
    3
    Views
    1,532

    Kermit and cas! Thank You! I can`t believe I...

    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...
  3. Replies
    3
    Views
    1,532

    odd function is odd

    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...
  4. Replies
    6
    Views
    1,059

    Quzah! I thank you most heartily. I sometimes...

    Quzah!

    I thank you most heartily. I sometimes just cannot see these things. Have a good one!

    Plain
  5. Replies
    6
    Views
    1,059

    Okay Quzah: I replaced 'fprintf' with 'stdout'...

    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()
  6. Replies
    6
    Views
    1,059

    Hi Quzah: Thank you for such a speedy reply. ...

    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?
  7. Replies
    6
    Views
    1,059

    Beginner File I/O 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...
  8. Replies
    160
    Views
    1,221,538

    Sticky: A Step-by-Step Guide to C Programming

    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...
  9. Thread: print_out

    by plain
    Replies
    2
    Views
    1,067

    Hi Twomers: Well, I reworded my web search and...

    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...
  10. Thread: print_out

    by plain
    Replies
    2
    Views
    1,067

    print_out

    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:...
  11. Thread: function problem

    by plain
    Replies
    8
    Views
    1,231

    Of course! Thank you DWKS I should have known...

    Of course! Thank you DWKS I should have known better.

    The pi thing.....I`m lost can you enlighten me?
  12. Thread: function problem

    by plain
    Replies
    8
    Views
    1,231

    function problem

    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...
  13. Replies
    10
    Views
    2,976

    Thanks everyone! LOL I can see I have more...

    Thanks everyone! LOL I can see I have more studying to do. You`ve all been great!
  14. Replies
    10
    Views
    2,976

    Actually, now that you mention it, I should ask...

    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...
  15. Replies
    10
    Views
    2,976

    I wanted (t != f || c) to make sure the user...

    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...
  16. Replies
    10
    Views
    2,976

    Break in If statement

    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...
  17. Thread: endl or \n ?

    by plain
    Replies
    5
    Views
    1,874

    Thank you all. This has helped quite a bit. I...

    Thank you all. This has helped quite a bit. I appreciate the time you took to reply.
    ..Plain
  18. Thread: endl or \n ?

    by plain
    Replies
    5
    Views
    1,874

    endl or \n ?

    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....
  19. Replies
    13
    Views
    10,882

    main

    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...
  20. Replies
    13
    Views
    10,882

    Yuk, Yuk................page 181 "lexi.cpp". ...

    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...
  21. Replies
    13
    Views
    10,882

    Sorry for the gobbledygook. I will try a code...

    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...
  22. Replies
    13
    Views
    10,882

    too many

    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,...
  23. Replies
    13
    Views
    10,882

    Too many arguments to function int main?

    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...
Results 1 to 23 of 23