Forum: C++ Jan 5th, 2007 |
| Replies: 10 Views: 7,202 |
Forum: C++ Jan 5th, 2007 |
| Replies: 10 Views: 7,202 that's what I am looking for, but a non-.NET version |
Forum: C++ Jan 4th, 2007 |
| Replies: 10 Views: 7,202 yeah, i know, was just looking for a function that was already written and handled all of them rather than doing them each individually. trying to do it the most laz.. I mean efficient way and use... |
Forum: C++ Jan 4th, 2007 |
| Replies: 10 Views: 7,202 looking for a function that will htmlencode a cstring |
Forum: C++ Feb 21st, 2006 |
| Replies: 6 Views: 2,212 ok, what do you have so far |
Forum: C++ Feb 8th, 2006 |
| Replies: 4 Views: 5,884 to find the number of digits in int x
if (x < 0)
x = -x;
int count = 1;
x = x/10;
while( x > 0)
{
count++;
x = x/10; |
Forum: C++ Jan 30th, 2006 |
| Replies: 9 Views: 2,108 |
Forum: C++ Jan 27th, 2006 |
| Replies: 9 Views: 2,108 replace:
while ((player1!='r')||(player1!='R')
|| (player1!='p') || (player1!='P')
|| (player1!='s') || (player1!='S')
|| (player1!='q') || (player1!='Q'))
with
while... |
Forum: C++ Aug 3rd, 2005 |
| Replies: 17 Views: 3,723 I guess you could find a way to do it without arrays, but I don't know why you would want to. What function are you using to compare the names to see which one should be first |
Forum: C++ Aug 3rd, 2005 |
| Replies: 17 Views: 3,723 you could do it either way. Personally, I would sort first and then figure the grade and the average. If you do it the other way, just two extra things that have to be swapped when you do the sort |
Forum: C++ Aug 3rd, 2005 |
| Replies: 17 Views: 3,723 post the code your are using to sort |
Forum: C++ Aug 2nd, 2005 |
| Replies: 17 Views: 3,723 You are going to need to store the information as you read it in, do the sort and then write it back out. Can't write each line as you read it in AND sort at same time. my c/c++ is a little rusty... |
Forum: C++ Aug 2nd, 2005 |
| Replies: 17 Views: 3,723 what is the format that it has to be in? |