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
~1K People Reached
Favorite Forums
Favorite Tags
c++ x 9
Member Avatar for Ahmed Padela

Please help me to solve the following program in C++ array. After compile message appears [B]"Possible use of "i" before definition.[/B] [code=c++] #include<iostream.h> #include<conio.h> void selsort(int [],int); void main() { int AR[50],N,z; clrscr(); cout<<"How many elements do U want to create array with?(max.50)....."; cin>>N; cout<<"\n Enter Array elements.....\n"; for(int i=0;i<N;i++) …

Member Avatar for David W
0
574
Member Avatar for Ahmed Padela

After compiling the program, total 12 errors apreared. Please help me to resolve. All errors are shown in attachment. [code=cplusplus]#include<iostream.h> #include<conio.h> void Merge(int[],int,int[],int); void main() { int A[50],B[50],C[50],MN=0,M,N,z; clrscr(); cout<<"How many elements do U want to create first array with?(max.50)....."; cin>>M; cout<<"\n Enter first array's elememts[ascending].....\n"; for(int i=0;i<M;i++) { cin>>A[i]; …

Member Avatar for Ancient Dragon
0
67
Member Avatar for Ahmed Padela

Hi, I tried to compile below program with Borland C++ 5.0 program but i received subject error. Below is not complete program as it is long program. I think "graphics.h" has some problem. Please help me. [COLOR=#000000]#include<iostream.h>[/COLOR] [COLOR=#000000]#include<graphics.h>[/COLOR] [COLOR=#000000]#include<stdio.h>[/COLOR] [COLOR=#000000]#include<conio.h>[/COLOR] [COLOR=#000000]#include<string.h>[/COLOR] [COLOR=#000000]#include<dos.h>[/COLOR] [COLOR=#000000]#include<iomanip.h>[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]struct date_rec[/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#000000]short int …

Member Avatar for jwenting
0
217
Member Avatar for Ahmed Padela

After compiling of below program , i received the "ms with error". Please help me. Thank you, [code=c] #include<iostream.h> void main() { int a[3][3],i,j,m,n,sum1=0,sum2=0,z; cout<<"\n Enter the order of the matrices"; cin>>m>>n; cout<<"\n Enter the elements of the matrices"; for(i=0;i<m;i++) for(j=0;j<n;j++) { if(i==j) sum1+=a[i][j]; } for(i=0,j=n-1;i<m;i++,j--) { sum2+=a[i][j]; } cout<<"\n …

Member Avatar for iamthwee
0
67
Member Avatar for Ahmed Padela

Hi, Everybody. After compiling below program i am getting error" prg2(distance with error),Please help me to resolve. Thank you [code=c] #include<iostream.h> #include<conio.h> struct distance { int feet; int inches; }; distance length1,length2; void prnsum(int distance11,distance12); int main() { clrscr(); int distance,z; cout<<"Enter length1:"<<"\n"; cout<<"Feet:"; cin>>length1.feet; cout<<"\n"<<"Inches:"; cin>>length1.inches; cout<<"\n"<<"\n" <<"Enter length2:"<<"\n"; …

Member Avatar for iamthwee
0
184
Member Avatar for Ahmed Padela

Please help me to Write a program "to print the sum of the main and sub diagonal elements" Thanks all.

Member Avatar for Ahmed Padela
0
210