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
~687 People Reached
Favorite Forums
Favorite Tags
Member Avatar for rohan121212

Hey i am a beginner in programming I typed the following program on my own But there are a lot of errors it it Please help me find them [CODE] #include<IOSTREAM.h> main() { int a,b,c,x; cout<<"Enter three values - \nA,B,c."; cout<<"A-"; cin>>a; cout<<"B-"; cin>>b; cout<<"c-"; cin>>c; if (a>b) x=1 else …

Member Avatar for rohan121212
0
157
Member Avatar for ag_17

I was using getline() function and it was getting skipped. I searched through the forum and found the tutorial on how to flush the input stream but there is one thing that is still unclear to me : getline() uses newline character as a delimiter. So when a '\n' is …

Member Avatar for Narue
0
166
Member Avatar for mikepablo

For my intro to c++ class I have to create a complete program from broken algorithms The questions are (a) Print a random number between -1 and -9 to the output screen: (b) Print (to the output screen) the sum of the square roots of the numbers 1, 2, 3 …

Member Avatar for ag_17
0
214
Member Avatar for ag_17

This is a problem in a programming contest but I am stuck at it for the past two days Here is a link to the problem : [URL="http://www.techgig.com/codecontest_detail.php?type=advanced"]http://www.techgig.com/codecontest_detail.php?type=advanced[/URL] [CODE]void DrowningVillage(int gridSize,int villageHeights[][10],int origin[]) { int i=0,j,k=0,x=origin[1],y=origin[0],z=0,output1[100],Heights[10][10]; for(i=0;i<gridSize+2;i++) for(j=0;j<gridSize+2;j++) Heights[i][j]=1000; //For removing garbage values and for later comparisons for(i=0;i<gridSize;i++) for(j=0;j<gridSize;j++) Heights[i+1][j+1]=villageHeights[i][j]; …

Member Avatar for alwaysLearning0
0
150