Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
27% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
0 Endorsements
Ranked #4K
~58.6K People Reached
About Me

Student

Interests
C++
PC Specs
C++
Favorite Tags
c++ x 14
c x 3

8 Posted Topics

Member Avatar for Bob

[QUOTE=evilsilver]I use Borland aswell (i like it personally) as for the compiler it is just the play button (labeled as run) and when you say you click on the icon and it dissapears right away, are you talking about the Borland program itself, or the program you are trying to …

Member Avatar for JamesCherrill
3
53K
Member Avatar for brahle

Always use scanf() and printf(). They are much, much faster than cin and cout. Also use stl algorithms, like sort, reverse and find, especialy if they are member functions of a container class you use.

Member Avatar for neithan
0
2K
Member Avatar for Kiba Ookami

that is half c, half c++. If you want a code in C++, it would look like this: [CODE]#include <iostream> #include <string> using namespace std; int main( void ) { string name; char buff[257]; cout << "Your name: "; cin.getline( buff, 257 ); name = buff; cout << "Your name …

Member Avatar for Stefano Mtangoo
0
242
Member Avatar for meabed

[QUOTE=bitforce]An easy way to swap 2 variables without using another variable: [CODE]a=a+b; b=a-b; a=a-b;[/CODE][/QUOTE] it can't be used if operator+ and operator- arn't defined!!! and you don't have to use another variable, in C++ standard, there is the STL. It is the strength of C++ because there are lots and …

Member Avatar for Lisa1110
3
1K
Member Avatar for corolaron

this should work... [CODE]#include <cstdio> #include <algorithm> #include <string> using namespace std; const int NULA = 0; string a, b; char buff[1026]; int main (void) { while( scanf( "\n%s", buff ) == 1 ) { b = a = buff; reverse( b.begin(), b.end() ); if( a == b ) printf( …

Member Avatar for gkmishr1
0
2K
Member Avatar for dannyfang

Haven't you guys heard for sprintf()? it is used as printf(), just the first element must be a *char. They are defined in header cstdio.

Member Avatar for Dave Sinkula
0
333
Member Avatar for coopedw

Do you know what is the definition of the prime number? It is a number that has no other diveders other than one and itself. You tested the number to itself (every number devides it self, doesn't it?) so that is why the function always return false. If the number …

Member Avatar for bumsfeld
0
217
Member Avatar for rahulgupta1979

[url]http://mathworld.wolfram.com/GammaFunction.html[/url] go to that page if you don't know what is the gamma funcition.

Member Avatar for brahle
0
65

The End.