Search Results

Showing results 1 to 9 of 9
Search took 0.06 seconds.
Search: Posts Made By: Luckychap ; Forum: C++ and child forums
Forum: C++ May 23rd, 2009
Replies: 11
Solved: stop loop
Views: 448
Posted By Luckychap
I was not blaming anyone I was just addressing a common mistake which anyone can make.

Come on Man!!
Forum: C++ May 23rd, 2009
Replies: 11
Solved: stop loop
Views: 448
Posted By Luckychap
Very common mistake in for loop:


for(i=0; inputDone == 'y'; i++)


did u get this!!
Forum: C++ Dec 10th, 2008
Replies: 5
Views: 409
Posted By Luckychap
Best way to learn is to practice. So start coding!! Do not waste 69$.

Wait a sec....why 69$ and not 60$ OR 70$. :D
Forum: C++ May 6th, 2008
Replies: 7
Views: 2,964
Posted By Luckychap
Marked this thread as SOLVED, please
Forum: C++ May 5th, 2008
Replies: 7
Views: 2,964
Posted By Luckychap
You are drawing circle from the center(cx,cy) of the square so to fill color outside the circle and in side the square you should use in this way floodfill(cx+radius + 2, cy + radius + 2 , color);
...
Forum: C++ May 1st, 2008
Replies: 4
Solved: Output
Views: 394
Posted By Luckychap
U have defne an array of 10 nodes i.e. node arr[10]. But while looping in main() u are using for in wrong way i.e.

for (i=10; i>=0; i++)

here i should be initialized to 9 as the length of...
Forum: C++ Apr 29th, 2008
Replies: 7
Views: 7,396
Posted By Luckychap
char *p = NULL;

Because p is a pointer so it should not be pointing to anything hence NULL. If you want to nitialize pointer, initialize it with valid address;

like:

char *name = "ABCD";...
Forum: C++ Mar 10th, 2007
Replies: 6
Solved: aray or string
Views: 2,472
Posted By Luckychap
Yes i'm using turboc 3.0
Forum: C++ Mar 9th, 2007
Replies: 6
Solved: aray or string
Views: 2,472
Posted By Luckychap
first find the length of the string(str) say len. then

for(int i=0;i<len;i++)
{
for(int j=i+1;j<len;j++)
{
if(str[i]>str[j])
temp=str[i];
str[i]=str[j];
str[j]=temp;
Showing results 1 to 9 of 9

 


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

©2003 - 2009 DaniWeb® LLC