Search:

Type: Posts; User: time4f5

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,053

    #include int main () { char...

    #include <stdio.h>

    int main ()
    {
    char fName[12];
    char lName[12];
    float payRate[12];
    float hours[12];
    float salary[12];
    int empNbr;
  2. Replies
    10
    Views
    1,053

    any thoughts on why this program is only asking...

    any thoughts on why this program is only asking for inputs on the name arrays and skips the floats?
  3. Thread: Newbie Help!

    by time4f5
    Replies
    4
    Views
    766

    you are closing your else statement with ; ...

    you are closing your else statement with ; ..... you don't want to do that. Also, if statements don't get ; on their line either.
  4. Thread: Newbie Help!

    by time4f5
    Replies
    4
    Views
    766

    6 lines from the bottom you use "if (num%2==0)

    6 lines from the bottom you use "if (num%2==0)
  5. Replies
    5
    Views
    2,296

    I guess I am wrong. thanks for the heads up. I...

    I guess I am wrong. thanks for the heads up. I always assumed that I had to include certain libraries math.h if I wanted to do math functions and not give all of the instructions.
  6. Replies
    10
    Views
    1,053

    ahh, good catch, I changed it to a string but it...

    ahh, good catch, I changed it to a string but it didn't fix my problem. Also, I fixed the printf on the display portion \t %s \t %s instead of \t fName[b].
  7. Replies
    10
    Views
    1,053

    it asks for the number of employees and I can...

    it asks for the number of employees and I can enter it.
    it then asks for the first name, I enter it
    it asks for the last name and when I enter it, it prints "what is payrate, what is hours, what is...
  8. Replies
    5
    Views
    2,296

    in C the .h is a header file that is includes a...

    in C the .h is a header file that is includes a library. a library is a 'set of instructions' for the program to run. This way you don't have to tell the program everything. It knows what an...
  9. Replies
    10
    Views
    1,053

    it compiles, it asks for the first name, last...

    it compiles, it asks for the first name, last name and prints the next 3 lines and then asks for the first name again.
  10. Replies
    10
    Views
    1,053

    trouble with simple arrays

    I have this assignment that I thought would be super easy, but for some reason I can't get it to work, can you give me some insight?


    #include <stdio.h>

    int main ()
    {
    char fName[12];
    char...
  11. Replies
    5
    Views
    4,430

    I will do that, thanks for the help. because I...

    I will do that, thanks for the help. because I haven't used it before, I wasn't sure if I was screwing something up or something wasn't there. lol
  12. Replies
    5
    Views
    4,430

    new to gcc, need guidance

    Hello, I have downloaded mingw, I'm playing with it to try and learn it from command line, but it is nothing like Visual studio 10 PE- which is why I want to learn it. anyway, I'm trying to compile...
  13. Thread: mobile app

    by time4f5
    Replies
    3
    Views
    1,252

    thanks, the mobile display is much better now.

    thanks, the mobile display is much better now.
  14. Replies
    3
    Views
    884

    o.k. thanks!

    o.k. thanks!
  15. Replies
    3
    Views
    884

    using namespace std;

    my textbook encourages us to use using namespace std; after our libriaries. On this forum I'm noticing that some do not. I'm trying to understand what is the reason to use it or not use it, other...
  16. Replies
    2
    Views
    891

    http://cboard.cprogramming.com/c-programming/13601...

    http://cboard.cprogramming.com/c-programming/136019-output-screen-isnt-giving-proper-result.html
    here is a question that I had posted earlier. It may be helpful.
  17. Replies
    32
    Views
    3,221

    It isnt meant to replace docs and books. But for...

    It isnt meant to replace docs and books. But for someone who doesnt have a helpful teacher it can give some basic help.
  18. Replies
    32
    Views
    3,221

    which class are you in? and what school?

    which class are you in? and what school?
  19. Replies
    32
    Views
    3,221

    sometimes it may be helpful to checkout newboston...

    sometimes it may be helpful to checkout newboston on youtube. he has some introductory videos on programming in C and other languages. If you check out the first few videos you should be able to...
  20. Replies
    8
    Views
    765

    I had thought about that. I'll have to add that.

    I had thought about that. I'll have to add that.
  21. Replies
    8
    Views
    765

    Awesome! it worked Salem. I had to change the...

    Awesome! it worked Salem. I had to change the variable. Here is my updated code


    int assignFleet1(int board1 [] [10])

    {

    int car1, coordinate, location;
    int row, col;
    int carrier1;
  22. Replies
    8
    Views
    765

    There must be a better way?!

    I began writing this battleship code today and as I'm working on it, I'm finding that I have a function that could be more efficient(understatment). I'm just not sure how. The code compiles and...
  23. Replies
    32
    Views
    3,221

    keep some perspective, you're not finalizing...

    keep some perspective, you're not finalizing anything other than the pseudocode. use your book to get the proper syntax of your statements. most lines end in ;
  24. Replies
    32
    Views
    3,221

    you are missing a few libraries time.h stdlib.h...

    you are missing a few libraries
    time.h
    stdlib.h

    and you should put a return 0; statement in there
  25. Thread: error c2664???

    by time4f5
    Replies
    10
    Views
    2,241

    I can't figure this code out but I'm now inspired...

    I can't figure this code out but I'm now inspired to try one on my own.
Results 1 to 25 of 58
Page 1 of 3 1 2 3