Forum: C++ Nov 2nd, 2005 |
| Replies: 1 Views: 1,270 Why don't you read 'Unix System Programming using C++' by terrace chan. this book gives indepth details on how to design a shell. |
Forum: C# Oct 22nd, 2005 |
| Replies: 3 Views: 9,724 yeah, suppose i call system as system("cmd.exe"), it launches command shell of windows. now if i want to do the same in C#, how do i do this??? |
Forum: C# Oct 19th, 2005 |
| Replies: 3 Views: 9,724 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#? |
Forum: C Mar 22nd, 2005 |
| Replies: 5 Views: 3,508 // 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... |
Forum: C Nov 9th, 2004 |
| Replies: 6 Views: 4,215 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... |
Forum: C Nov 8th, 2004 |
| Replies: 2 Views: 2,930 Here is ur modified while statement ....
while (fscanf(input, "%f\t%f", &x, &y) != EOF)
{
count++;
if(count==1)
{ xmax=x; ymax=y;}
else
... |
Forum: C Nov 6th, 2004 |
| Replies: 1 Views: 2,639 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);... |
Forum: C++ Nov 4th, 2004 |
| Replies: 3 Views: 3,201 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... |
Forum: C++ Nov 4th, 2004 |
| Replies: 2 Views: 5,569 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... |
Forum: C Oct 31st, 2004 |
| Replies: 2 Views: 2,992 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 |