Search:

Type: Posts; User: taj777

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    2,984

    problem: cannot convert from 'char' to 'char *'...

    problem: cannot convert from 'char' to 'char *' >>> ptr = getString(str, SIZE);



    #include<iostream>
    #include<string>
    using namespace std;

    char getString(char *, int);
  2. Replies
    4
    Views
    2,984

    strcpy and array

    basically a func named getString is supposed to ask user to enter a sentence, store sentence in the array, dynamically allocate a char array big enough to hold the sentence plus null terminator. then...
  3. Replies
    1
    Views
    13,380

    uninitialized array?

    this prog keeps saying grades needs to be initialized, but it shouldnt....it deals with arrays



    // This program will read in a group of test scores( positive integers from 1 to 100)
    // from...
  4. Replies
    4
    Views
    4,372

    oh wow! thanks! it worked. cant believe i missed...

    oh wow! thanks! it worked. cant believe i missed that. i clearly need to go over my notes lol. thanks again! =]
  5. Replies
    4
    Views
    4,372

    ok.....so i initialized it: double costTotal,...

    ok.....so i initialized it:
    double costTotal, alwnceTotal, alwnceBelow = 0;

    but it still outputs garbage tho.....
  6. Replies
    4
    Views
    4,372

    Travel Expenses-Weird Result

    For some reason this prog is giving me some weird numbers in the final result, such as: "$-965465464560000.0000" and so forth. I've gone through it a million times and cant seem to figure out why its...
Results 1 to 6 of 6