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
Ranked #4K
~1K People Reached
Favorite Forums
Favorite Tags
c++ x 11
c x 2
Member Avatar for jnabeel

compare two value in oop based programing #include<iostream> using namespace std; class com { private: int a; int b; public: int d() { cin>>a; return 0; } int bd() { cin>>b; return 0; } }; int main() { com c1; if(c1.d()==c1.bd()) { cout<<"y"<<endl; } else { cout<<"n"<<endl; } return 0; …

Member Avatar for jnabeel
0
108
Member Avatar for jnabeel

Take a odd string give output middle of string [code=cplusplus] #include<conio.h> #include<stdio.h> #include<iostream.h> #include<string.h> char func( char str1[]); void main(void) { clrscr(); char a[20],result; cout<<"enter any word"; gets(a); result=func(a); cout<<result; getch(); } char func(char str1[]) { int a,b,f; char m; a=strlen(str1); if((a%2)==1); { m=char(str1); return m; } }[/code] for example: …

Member Avatar for ~s.o.s~
0
69
Member Avatar for jnabeel

[COLOR=#444444]write a program which take a string give it permutations and combination should not repeat any letter [code=c] [/COLOR] [COLOR=#444444]#include<conio.h> #include<stdio.h> #include<iostream.h> #include<stdlib.H> void main(void) { clrscr(); char a[3] //cout<<"ent int "<<endl; > //cin<<a; atoi(a) for(a=1;a<=3;a++) { for(b=1;b<=3;b++) { for(c=1;c<=3;c++) { cout<<a<<b<<c<<endl; } } } getch(); [/COLOR] [COLOR=#444444]} [/code] [/COLOR] …

Member Avatar for jnabeel
0
74
Member Avatar for jnabeel

write a program which take a string give it permutations and combination should not repeat any letter [LIST=1]<LI class=li1>#include<conio.h> <LI class=li1>#include<stdio.h> <LI class=li1>#include<iostream.h> <LI class=li1>#include<stdlib.H> <LI class=li2>void main(void) <LI class=li1>{ <LI class=li1> clrscr(); <LI class=li1> char a[3] <LI class=li1> //cout<<"ent int "<<endl; <LI class=li2> //cin<<a; <LI class=li1> atoi(a) <LI class=li1> …

Member Avatar for iamthwee
0
93
Member Avatar for jnabeel

write a program which take a string give it permutations and combination [code=c] #include<conio.h> #include<stdio.h> #include<iostream.h> #include<stdlib.H> void main(void) { clrscr(); char a[3] //cout<<"ent int "<<endl; //cin<<a; atoi(a) for(a=1;a<=3;a++) { for(b=1;b<=3;b++) { for(c=1;c<=3;c++) { cout<<a<<b<<c<<endl; } } } getch(); } [/code]

Member Avatar for Ancient Dragon
0
34
Member Avatar for jnabeel

[code=c] #include<stdio.h> #include<conio.h> #include<iostream.h> void main(void) { clrscr(); int nr,nc,i,j,s; int mat1[10][10],mat2[10][10],mat3[10][10]; cout<<"Enter The Number Of Rows"; cin>>nr; cout<<"Enter The Number Of Column"; cin>>nc; for(i=0;i<nr;i++) { for(j=0;j<nc;j++) { cout<<"No. of rows"<<(i+1)<<"No. of column"<<(j+1)<<endl; cin>>mat1[i][j]; } } cout<<"matrix 2"; for( i=0;i<nr;i++) { for( j=0;j<nc;j++) { cout<<"No. of rows"<<(i+1)<<"No. of column"<<(j+1)<<endl; cin>>mat2[i][j]; …

Member Avatar for jnabeel
0
122
Member Avatar for jnabeel

wtie a program which take as tring and arrange in alphabetic order [code=c] #include<stdio.h> #include<conio.h> #include<iostream.h> void main (void) { clrscr(); char b[7]={98,120,97,113,122,121,101},temp=0; while (!(b[0]<b[1]&&b[1]<b[2]&&b[2]<b[3]&&b[3]<b[4]&&b[4]<b[5]&&b[5]<b[6]&&b[6]<b[7])) { if (b[0]>b[1]) { temp=b[0]; b[0]=b[1]; b[1]=temp; } if (b[1]>b[2]) { temp=b[1]; b[1]=b[2]; b[2]=temp; } if (b[2]>b[3]) { temp=b[2]; b[2]=b[3]; b[3]=temp; } if (b[3]>b[4]) { …

Member Avatar for jnabeel
0
276
Member Avatar for boujibabe

I need a function that will populate a multidimensional array with a fixed amount of elements. So that only some of the locations contain a distinguishing number for identification.

Member Avatar for Lazaro Claiborn
0
264
Member Avatar for jnabeel

i am trying to write a program to take a string and arrange in alphabetic order but iam totally fail to do it please help me

Member Avatar for Salem
0
79