Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~205 People Reached
Favorite Forums
Favorite Tags
c++ x 12
Member Avatar for Wza

[CODE=cpp]#include<iostream> #include<string> using namespace std; void main() { char *inputString; inputString=new char[]; cout<<"Enter your string:"<<endl; cin>>inputString; //int stringLength=inputString.length(); int stringLength=strlen(inputString); inputString=new char[stringLength]; cout<<stringLength<<endl; for(int i=0; i<stringLength; i++) { if(inputString[i]>='a' && inputString[i]<='z') { if (inputString[i] != ' ') { inputString[i]=toupper(inputString[i]); cout<<inputString[i]; } else cout<<inputString[i]; } else cout<<inputString[i]; } cout<<endl; }[/CODE] First …

Member Avatar for Radical Edward
0
123
Member Avatar for Wza

I'm trying to read data from a file using dynamic arrays, everything is great now except for one thing: if I have a file with lets say 20 students' IDs and their scores before starting the reading proccess, I did this: string *studentID; double *testScore; cout<<"Enter number of student: "; …

Member Avatar for mitrmkar
0
82