Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
2
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~47.0K People Reached
Interests
programming, watching animie, PC gamming.
Favorite Forums
Favorite Tags
c++ x 42
Member Avatar for Srinivas0

[CODE]#include <iostream> using namespace std; int main() { int a,b,c, ope; cout<<"enter a value" << endl; cin >> a; cout<<"enter b value" <<endl; cin >> b; cout<<"enter operation (+ - * / and %)"; cin>> ope; if (ope == +) { c=a+b; cout<< c; break; } if (ope == -) …

Member Avatar for Hamza_53
2
45K
Member Avatar for yinyue

I have run this code below but it have a few error..hope someone could help me to solve this problem..tq..:) #include <stdio.h> #include <string.h> #include "cv.h" #include "cvaux.h" #include "highgui.h" int nTrainFaces=0; int nEigens=0; IplImage ** faceImgArr =0; CvMat * personNumTruthMat =0; IplImage * pAvgTrainImg = 0; IplImage ** eigenVector …

Member Avatar for yinyue
0
461
Member Avatar for Srinivas0

can some please explain what are command line parameters ? i read many books, read online didn't understand anything on what they are and when or how to use them. :(

Member Avatar for Srinivas0
0
183
Member Avatar for Srinivas0

write a program to accept the salaries of 10 employees from the user and display them in descending order for all the employees,if the user enters zero, the program should display the message"the amount should be greater than zero" and accept the value again. [CODE]#include <iostream> using namespace std; class …

Member Avatar for Srinivas0
1
534
Member Avatar for Srinivas0

create a menu driven application that accepts the salaries for ten employees and display the following information: 1)max salary 2)min salary 3)avg salary 4)number of employees whos salary is greater than 1000 5)the salaries in ascending and descending orders. [CODE]#include <iostream> using namespace std; class Max { int marks[10]; public: …

Member Avatar for Srinivas0
0
213
Member Avatar for Srinivas0

i am trying to write a program for friend functions but it isnt working. :( [CODE] #include <iostream> using namespace std; class Z; { private: int a; friend void fn(); }; void fn() { Z one; one.a=5; cout<<a<<endl; } int main() { fn(); return 0; }[/CODE] can someone please tell …

Member Avatar for Srinivas0
0
133
Member Avatar for Srinivas0

[CODE]#include <iostream> using namespace std; class Reverse { int n,num,dig,rev; public: void Rev() { cout<<"enter an integer number to check if it palindrome or not \t"; cin>>num; n=num; // rev=0; while(num>0) { dig=num%10; // 48%10=4 rev= rev*10+dig; // rev=48*10+4=484 num=num/10; //484/10 =48 cout<<num; } if (n==rev) cout<<"given number is palindrome"; …

Member Avatar for Srinivas0
0
170
Member Avatar for Srinivas0

[CODE]#include <iostream> using namespace std; class LoopEx { int x,y; public: void Ex; { x=3; y=x; // y=3 while(y<=1) // 3<=1 y--; // 3, 2 x=x*y; // x= 3*3=9 cout<<x; } }; int main() { LoopEx F; F.LoopEx(); return 0; } [/CODE] im trying to write a program for factorial …

Member Avatar for Srinivas0
0
105
Member Avatar for Srinivas0

can some one please explain what is static variable, i tried reading some books, tried googling but i am not able to understand what are its uses. [QUOTE]a static variable retain their value even after the function to which it belongs is executed.[/QUOTE] i am not understanding what is meant …

Member Avatar for mrnutty
0
255
Member Avatar for Srinivas0

i am trying to print multiplication table by using for loop but it is showing only the last one instead of displaying all. :( [CODE]#include <iostream> using namespace std; int main() { int i,j, k; cout<< "enter i value"; cin>> i; for(j=0;j<20;j++) k=i*j; cout<< k <<endl; return 0; } [/CODE]

Member Avatar for frogboy77
0
123