problem: cannot convert from 'char' to 'char *' >>> ptr = getString(str, SIZE);
#include<iostream>
#include<string>
using namespace std;
char getString(char *, int);
Type: Posts; User: taj777
problem: cannot convert from 'char' to 'char *' >>> ptr = getString(str, SIZE);
#include<iostream>
#include<string>
using namespace std;
char getString(char *, int);
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...
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...
oh wow! thanks! it worked. cant believe i missed that. i clearly need to go over my notes lol. thanks again! =]
ok.....so i initialized it:
double costTotal, alwnceTotal, alwnceBelow = 0;
but it still outputs garbage tho.....
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...