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
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 13
c x 1

8 Posted Topics

Member Avatar for rayhaneh

I find a code that sorting the names and at this program shouldnt be difference Between "a" and "A" and my Question is what does line 20 said ..!? #include <iostream> #include <string.h> #define MAXNAMES 100 using namespace std; int compare(string s1, string s2){ int i; for ( i = …

Member Avatar for rayhaneh
0
276
Member Avatar for rayhaneh

I'm new at C++ ..and I dont know what should I do whith my program ... this program's input for exg. is: 5 mary sara kimi lili olive : : and then sorting them .. but my problem is that when I submit my home work they score me "0" …

Member Avatar for rayhaneh
0
226
Member Avatar for Adnan S.

#include<iostream> #include<math.h> using namespace std; int main(){ int N=0 ; cin>>N; int sum=0; while(N!=0){ sum += (N%10); N = N / 10; } cout << sum << endl; }

Member Avatar for sneekula
0
960
Member Avatar for rayhaneh

this is my program and every time shows me this error:18 26 :: [Error] statement cannot resolve address of overloaded function:: #include <iostream> using namespace std; int pow(int a,int b); int mabna(int n, int k){ int a,b,s=0 ; for(int i=0;i!=0;i++){ s=(a%b)*pow(10,b); s+=(a/b)*b; return s;} } int main (){ int a1,a2, …

Member Avatar for Moschops
0
129
Member Avatar for rayhaneh

I dont know how to writ this program at first: I should write whith "function" which is definition of this function is : fk(n) for e.g-----> 10 ! =3628800 "the lowest non zero degit value" of 10 ! is "8" 12 !=479001600 "the lowest non zero degit value" of 12 …

Member Avatar for rayhaneh
0
181
Member Avatar for fardous

u can use ""Sams Teach Yourself C++ in One Hour a Day (7th Edition)""

Member Avatar for Schol-R-LEA
0
147
Member Avatar for nitin1
Member Avatar for rayhaneh
0
112
Member Avatar for rayhaneh

hi ! I want to sum of digts on C++ but when get the nagative number give me the result if pastive number like when u write -98 answer u 17 not -17 #include<iostream> #include<math.h> using namespace std; int main(){ int N=0 ; cin>>N; int sum=0; while(N!=0){ sum += (N%10); …

Member Avatar for Lerner
0
179

The End.