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.4K 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

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
586
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
472
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
189
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
144
Member Avatar for daviddoria
Member Avatar for zhelih
0
171
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
133
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
79
Member Avatar for purepecha

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

Member Avatar for zhelih
0
80
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
111
Member Avatar for Jellis58
Member Avatar for Jellis58
0
85
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
805
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
335
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
252
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
108
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
321
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
82
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
Member Avatar for hyperzero4

[QUOTE=hyperzero4;536378]Hello, I'm very, very new to C++ and I'm taking computer science course right now for fun. I really want to learn C++ but I'm having a lot of trouble with this new homework assignment and I'm hoping I just take it one step at a time so I completely …

Member Avatar for John A
0
4K
Member Avatar for sonygamer

Type in the end of main [CODE=C++]cout<<val;[/CODE] If it doesn't help use getch() from conio.h

Member Avatar for Narue
0
1K
Member Avatar for kabbo

[QUOTE=kabbo;536267]Hi, i am trying to use a library. included the header in my code set the path (-L) and the library (-l), but i get the following error and a bunch of undefined symbols. Does anyone have an idea? What am i doing wrong? Thans in advance. PB:~/Downloads/lp_solve_5.5.0.11_c max$ gcc …

Member Avatar for kabbo
0
304
Member Avatar for kedi
Member Avatar for missileh
Member Avatar for missileh
0
92
Member Avatar for Roebuc
Member Avatar for Roebuc
0
135
Member Avatar for RexxX

If you do just simple equals and smth like that just do [CODE=C++] char c; int i; i = int(c); [/CODE]

Member Avatar for John A
0
116
Member Avatar for DJPlayer

I correct your VERY simple syntax mistake. Here is correct code: [code] #include <iostream> #include "point.h" using namespace std; void rotate(point &p); int main() { a.point(0,0); cout << "(" << a.get_x() << ", " << a.get_y() << ")\n"; a.shift(2, -1); cout << "(" << a.get_x() << ", " << a.get_y() …

Member Avatar for Duoas
-1
109
Member Avatar for abhi_elementx
Member Avatar for zhelih
0
344
Member Avatar for vtskillz

1) give some of your thoughts; 2) see the reading of the file and list working manuals

Member Avatar for VernonDozier
0
1K
Member Avatar for monto
Member Avatar for hallinan
Member Avatar for sanzle
Member Avatar for sjcomp
Member Avatar for mrjoli021
Member Avatar for Blythe24
Member Avatar for Narue
0
85
Member Avatar for kv79

One more function(win platform only): [CODE=C] #include <windows.h> ... WinExec(filename, SW_SHOW); [/CODE]

Member Avatar for zhelih
0
63
Member Avatar for sn_sundeep

[QUOTE=sn_sundeep;516693]Hi, Is there any way so that I call mspaint through my C program and edit the resolution or resize my photos? Sundeep[/QUOTE] Call mspaint: [CODE=C++] WinExec("mspaint.exe", SW_SHOW); [/CODE] MsPaint uses standart Windows GDI function for working with images. Look through MSDN.

Member Avatar for Belrog
0
81
Member Avatar for darkprogrammer
Member Avatar for ToolMaker

The End.