Forum: C++ May 23rd, 2009 |
| Replies: 11 Views: 448 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 Views: 448 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 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 Marked this thread as SOLVED, please |
Forum: C++ May 5th, 2008 |
| Replies: 7 Views: 2,964 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 Views: 394 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 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 Views: 2,472 |
Forum: C++ Mar 9th, 2007 |
| Replies: 6 Views: 2,472 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; |