Search Results

Showing results 1 to 13 of 13
Search took 0.01 seconds.
Search: Posts Made By: campkev ; Forum: C++ and child forums
Forum: C++ Jan 5th, 2007
Replies: 10
Views: 7,202
Posted By campkev
thanks, i'll try this.
Forum: C++ Jan 5th, 2007
Replies: 10
Views: 7,202
Posted By campkev
that's what I am looking for, but a non-.NET version
Forum: C++ Jan 4th, 2007
Replies: 10
Views: 7,202
Posted By campkev
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
Posted By campkev
looking for a function that will htmlencode a cstring
Forum: C++ Feb 21st, 2006
Replies: 6
Views: 2,212
Posted By campkev
ok, what do you have so far
Forum: C++ Feb 8th, 2006
Replies: 4
Views: 5,884
Posted By campkev
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
Posted By campkev
Forum: C++ Jan 27th, 2006
Replies: 9
Views: 2,108
Posted By campkev
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
Posted By campkev
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
Posted By campkev
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
Posted By campkev
Forum: C++ Aug 2nd, 2005
Replies: 17
Views: 3,723
Posted By campkev
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
Posted By campkev
Showing results 1 to 13 of 13

 


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

©2003 - 2009 DaniWeb® LLC