No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
8 Posted Topics
Re: Check this out : [url]http://www.codeproject.com/KB/cpp/CFunWithConsole_flag.aspx[/url] | |
Re: It works perfectly on VC++ 6.. [CODE]#include <string> #include <iostream> using namespace std ; string upper(string sentance) { string s = sentance; for (int i=0; i < sentance.size(); i++) { s[i] = toupper(sentance[i]); } return s; } int main(void) { string str("nnmmnnmmn smallllll sm"); cout<<upper(str)<<" \n"; return 0; }[/CODE] | |
Re: Use exit(0). In your app, it exits after the enter key is pressed down. [CODE] #include<iostream> #include<cmath> using namespace std; void check_fxn(); float a,b,c; float d= pow(b,2)-(4*a*c);//determinant int main() { cout<<"enter values \n ax^2 + bx + c = 0 "<<endl <<"a = "; cin>>a; cout<<"b = "; cin>>b; cout<<"c … | |
Re: A nested pointer [ICODE]**i[/ICODE] is the same thing as a two dimesional array [ICODE]int i[][][/ICODE]. Thus [ICODE] int **p2 = p2[][] int ***p3 = p3[][][][/ICODE] etc etc | |
Re: A wrapper class is any class which "wraps" or "encapsulates" the functionality of another class or component. These are useful by providing a level of abstraction from the implementation of the underlying class or component; for example, wrapper classes that wrap COM components can manage the process of invoking the … | |
Re: A Simple Quadratic Equation Solver. | |
Re: [CODE]#include <iostream> using namespace std; int main() { int sum = 0 , num=10,cnt=0; //cin>>num; cout<<"Sum all even digits of a given number \n\n\n"; cout<<"Number = "<<num<<"\n\n\n"; while(cnt < num) { cnt++; if (cnt % 2 ==0) { sum+=cnt; cout<<cnt<<" + "; } } cout<<" = "<<sum<<" \n\n\n"; return 0; … | |
Re: You have to move the static variable static double BaseValue into a .h header file. You cant have it in the .cpp file. Then it will compile and run error free. Put this in the .h file: [CODE]static double BaseValue; [/CODE] Put this in the .cpp file: [CODE]#include <cstdlib> #include … |
The End.