No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
can someone tell me why my getline statements aren't working correctly? My compliler seems to just skip over them in my functions... here's my code: #include <iostream> #include <string> using namespace std; void locate(string[],int&); void substitute(string[],int&); const int MAX_LINES=7; int main ( void ) { char command; int i,currentLine; string … | |
I'm attempting to write a function that scans a number from the user as a string and converts the string to an array of int type, then reverses the order of the array and puts zeroes where no scanned data exists (eg. program says "Enter a number up to 5 … | |
i wrote this function readBig. It's purpose is to scan a number from the user as a string and converts each element of the string into an int and stores it in an int array then reverses the elements so the ones position is in n[0] tens position is in … |