Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~18.9K People Reached
Favorite Forums

9 Posted Topics

Member Avatar for sweety

Hi, if u dont want that error message , define the display() (in class stack ) function outside the class. Actually all the function defined within the class are considered as inline function automatically. inline function is just a recommendation to the compiler. compiler may ignore this recommendation. now any …

Member Avatar for Tiger_3
0
15K
Member Avatar for tat2dlady

// assuming u know that the key code of appropriate key... // write these statments after the menu in your program // KEYA, KEYB are the keycodes for key A, key B ... // u can generate key code using getch(); if(kbhit()) key=getch(); switch(key) { case KEYA : // action …

Member Avatar for Narue
0
129
Member Avatar for tungngie

Why don't you read 'Unix System Programming using C++' by terrace chan. this book gives indepth details on how to design a shell.

Member Avatar for kunal_ktr
0
93
Member Avatar for kunal_ktr

hi, in c/c++ we have a function system() that lets us to call any external application from the c/c++ program. i wanted to knw that do we hve any similar function/method in C#?

Member Avatar for tayspen
0
167
Member Avatar for Asif_NSU

there is another way of doing this.. using realloc() function u can dynamically allocate the memory u need for ur string. first allocate memory just for a character. now start scanning characters from console. until the new line is entered, reallocate the extra memory u need. hope this will solve …

Member Avatar for Narue
0
3K
Member Avatar for Dark_Omen

Here is ur modified while statement .... while (fscanf(input, "%f\t%f", &x, &y) != EOF) { count++; if(count==1) { xmax=x; ymax=y;} else {if(xmax<x) xmax=x; if(ymax<x) ymax=y; } sumx += x; sumy += y; sumx_sqrd += x * x; sumy_sqrd += y * y; }

Member Avatar for Dark_Omen
-1
204
Member Avatar for Alfy

here is the recursive code for calculating power of 2; int power(int num) { if(num==0) return 1; if(num==1) return 2; return 2*power(num-1); } well after including this function in ur prog, u dont need to check whether the input value is 0 or 1. but check for -ve entry.. here …

Member Avatar for kunal_ktr
0
166
Member Avatar for sweety

Here is the modified program... Now this program will work fine even at the menu prompt, if u enter any number.. Except 1, 2, & 3, it will generate a error msg ...(Check out the default statement in main(). [code] // a) to find whether a given no. is prime …

Member Avatar for sweety
0
99
Member Avatar for cuperman

recursive algorithm : height(tree * ){ if(root==NULL) return 0; return 1+max(height(root->left),height(root->right)); } hope u can write a function for max(par1, par2) also. ok

Member Avatar for Chainsaw
0
118

The End.