Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
47% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
3
Downvotes Received
4
Posts with Downvotes
4
Downvoting Members
4
4 Commented Posts
0 Endorsements
Ranked #1K
~25.3K People Reached
About Me

An apple a day keeps the doctor away.
Don't make me angry )

PC Specs
Pentium 4 3.2 Ghz 1 Gb Memmory 200 Gb hard drive NVIDIA GefForce 6600GT
Favorite Forums
Favorite Tags
c++ x 91
c x 23

72 Posted Topics

Member Avatar for Ahmed Padela

[CODE=C++] ... void selsort(int AR[],int size) { int small,pos,tmp,i; for(int i=0;i<size;i++) { .... [/CODE] if you declared i before, you don't need to do it in the loop. [CODE=C++] ... void selsort(int AR[],int size) { int small,pos,tmp; for(int i=0;i<size;i++) { ... [/CODE] Hope You'll find this information helpful.

Member Avatar for David W
0
583
Member Avatar for Lensva
Member Avatar for kashmir323

[QUOTE=kashmir323;509106]Is there a C++ command that restarts the application. The program I'm making is just a console application that acts like a calculator. But once you enter your number and press enter you have to close the console and re-open it to find another number. [CODE] int yes = ; …

Member Avatar for WaltP
0
2K
Member Avatar for Knad
Member Avatar for MuniArt
Member Avatar for innnocentdevil
0
471
Member Avatar for Amol Ranjere

Really it is doing with int 21h in MS-DOS. I don't know how right now but if you want I'll review asap.

Member Avatar for SideTruth
0
123
Member Avatar for gcardonav

[QUOTE=gcardonav;529897]Hello guys You rookie here. been trying to run a code but I am getting this weird error that I have not seen before. I have attached a copy of the error and the part of the code it refers to. Thanks for your help GCard [inlinecode]1>------ Build started: Project: …

Member Avatar for seraph03
0
2K
Member Avatar for asharrajpoot

[code=C++] #include<stdio.h> #include<conio.h> int main(void) { int row=0,col=0,sp=0,b,mid=1,st=71,end=64; //clrscr(); int column_num=0; for (row=1;row<=7;row++) { for(col=65;col<=st;col++) { printf("%c ",col); } for(b=1;b<mid;b++) { printf(" "); } for(sp=70;sp>end;sp--) { printf("%c ",sp-column_num);//start with less symbol } st--; mid+=2; column_num++; end++; printf("\n\n"); } getche(); return 1; } [/code] Your code is absolutely unreadable but I …

Member Avatar for me_ansh
0
188
Member Avatar for Jboy05
Member Avatar for tigger0484
Member Avatar for Ancient Dragon
0
108
Member Avatar for Jennifer84
Member Avatar for sunrise2007

I think that you should try to put template<class TYPE> before EVERY function which is uses TYPE. KTYPE analogical.

Member Avatar for zhelih
0
142
Member Avatar for daviddoria

Have an idea that you have not included headers. Maybe you typed class name incorrectly.

Member Avatar for zhelih
0
170
Member Avatar for purepecha

No capital letter in void: [CODE=C++] void powerArgs(int *parmA, int *parmB) { int temp = *parmA; *parmA = *parmB; *parmB = temp; } [/CODE]

Member Avatar for Ancient Dragon
0
131
Member Avatar for cosmos22

[QUOTE=cosmos22;552066]Hi. (I am using Windows XP) I would like to know how you can use the function SetFileAttributes to hide a file or folder, I would also like to know about the declarations associated with this function. I would like to use this to develop a program that hides program …

Member Avatar for mitrmkar
0
184
Member Avatar for purepecha

Maybe you should set a type to parmA & parmB: [CODE=C++] void divideArgs(int *parmA, int *parmB){ int temp = *parmA; *parmA = *parmB; *parmB = temp; } [/CODE]

Member Avatar for zhelih
0
78
Member Avatar for purepecha

[CODE=C++]int *temp = *parmA; *parmA = *parmB; *parmB = temp; [/CODE] Forget pointer with temp.

Member Avatar for zhelih
0
79
Member Avatar for Phanta

Try: [CODE=C]for (x = integer1;integer1 < integer2;integer1++); { sum += integer1; } [/CODE] You should add numbers to sum, so take a sheet of papper and look what you are doing.

Member Avatar for Phanta
0
94
Member Avatar for atish00
Member Avatar for mmc18

Look for this [CODE=C] Individual **temp_; temp_=(Individual **)malloc(sizeof(Individual)*5); [/CODE] malloc return a pointer, not double pointer. So you must do memmory allocation in the loop. Better to use C++.(I think)

Member Avatar for mmc18
0
116
Member Avatar for ankitbullu

You should anything about how to wrogramming matrixes. WaltP is right, we don't write programmes for nothing.

Member Avatar for Duoas
0
110
Member Avatar for Jellis58
Member Avatar for Jellis58
0
84
Member Avatar for sfurlow2

[QUOTE=sfurlow2;546616]I have another question for my homework. Here is the problem: Keep inputting numbers from the user until the user enters a 0. After each number, print a "running average". That is, print the average of the last three numbers entered. Be careful how you handle the first two numbers …

Member Avatar for sfurlow2
0
804
Member Avatar for ckins

It is very big mistake to write [CODE=C++]printf(c);[/CODE] Correct is [CODE=C++]printf("%c", c);[/CODE]. Remember the definition: [CODE=C++]printf(argument, ...);[/CODE]

Member Avatar for VernonDozier
0
334
Member Avatar for darknight09

There are a lot of syntax errors in your code. You forget to put ' ; '. case77 is not correct to. Maybe ou want case 77 (with space). The last is that you use goto and it is very bad style so I can't look for running your code.

Member Avatar for darknight09
0
248
Member Avatar for jessel

[QUOTE=jessel;546417]hello sir i'm a new user,i just want to ask if you have sample programs which deals on linked list....if possible not the add.edit,delete program[/QUOTE] Here is a simple one. I can't write without classes, anyway. [CODE=С++] #include <iostream> struct listelem { char data;//any type here listelem* next; }; class …

Member Avatar for zhelih
0
89
Member Avatar for darknight09

You are posting your code twice. With wich I should work?(interesting)

Member Avatar for zhelih
0
106
Member Avatar for TheBeast32

You thing that for (x = 0; x < 2000000000; x++) will work quickly??? Mad boy. If you start this loop without any operations it will be VERY long....

Member Avatar for TheBeast32
0
320
Member Avatar for Techboy1523

Post what you have done and we will see and correct. I won't do your homework.

Member Avatar for totem mouse
0
80
Member Avatar for sonygamer

You must call switch in some fucntion, it is an operator not a function. E.g. [CODE=C++] int foo(char c) { switch(c){ case 'B':return 0;break; case 'N':return 1;break; case 'R':return 2;break; case 'O':return 3;break; case 'Y':return 4;break; case 'G':return 5;break; case 'E':return 6;break; case 'V':return 7;break; case 'A':return 8;break; case 'W':return …

Member Avatar for Arpy Giri
0
295

The End.