No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hey, I've completed an assignment in visual studio and it gave me expected results for example 261. My university system uses g++ so i compiled the assignment with it and it gave me 262 and there the exact same files. If anyone has any suggestion and experiances like this please … |
|
Im trying to increase a dynamic array by 1 element and assign a integer variable to it but recieve a heap overload error. Any advice would be appreciated. void CardSet::AddCard(int cardNum) { int* tmp; nCards++; tmp = new int[nCards]; for(int i = 0; i < (nCards - 1); i++) { … |
|
ive declared and integer array and i need to know how the user can input a single input of "2 4 6 3 5 6 7 5 3 5 6" and get each individal digit into each index of the array and help would be greatly appreciated. |
|
if numInput isnt an integer I want it to prompt "Invalid Try Again" and ask for input again [CODE] std::cout << "Enter a Number (Max 10 digits)(99 to Exit): "; std::cin >> numInput; [/CODE] |