Search Results

Showing results 1 to 10 of 10
Search took 0.01 seconds.
Search: Posts Made By: kunal_ktr
Forum: C++ Nov 2nd, 2005
Replies: 1
Views: 1,270
Posted By kunal_ktr
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
Posted By kunal_ktr
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
Posted By 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#?
Forum: C Mar 22nd, 2005
Replies: 5
Views: 3,508
Posted By kunal_ktr
// 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
Posted By kunal_ktr
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
Posted By kunal_ktr
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
Posted By kunal_ktr
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
Posted By kunal_ktr
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
Posted By kunal_ktr
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
Posted By kunal_ktr
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
Showing results 1 to 10 of 10

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC