4 Solved Topics
Remove Filter I am working on an assignment for class and cannot for the life of me figure out how to use letters to choose a case for a switch statement. Here is my code [CODE=CPP]#include <iostream> #include <cctype> #include <cstdlib> using namespace std; // prototypes void showMenu(); int getVowels(char*, int*, int); … | |
for some reason I cannot add integers in an array of structures. here is the code. [CODE=c++]#include<iostream> #include<iomanip> using namespace std; const int SIZE = 5; struct playerInfo { char name[30]; //Players name int number; int points; }; int main() { int total = 0; // to hold total points … | |
Wow, I am having huge problems passing values between functions and wrapping my head around pointers. For some reason when I tried to return values from functions they would not pass and when I tried putting pointers in the place, passing them kept giving me compiler errors. Now I have … | |
Need some help. I have an assignment that calls for the sorting of two arrays. One is an array of doubles, the other chars (two dimensional). I cannot figure it out for the life of me. Here is the whole program. [CODE]#include<iostream> #include<iomanip> using namespace std; //Function Prototypes double sumRain(double[], … |