Sun Nov 09, 2008 5:22 pm
Sun Nov 09, 2008 8:06 pm
int grosses=30000;
int income=0;
for(int i=0;i<sizeof(myarr);i++)
{
income=grosses*0.9+myarr[i];
if(income>=1000)
{
counterarray[8]++;
}
else
{
counterarray[((int)income/100)-2]++;
}
}
Sat Dec 06, 2008 11:23 pm
Mon Dec 08, 2008 3:12 pm
Mon Dec 08, 2008 3:42 pm
#include <iostream>
#include <ctype.h>
using std::cout;
using std::endl;
void touppercase(char *oldarray1, char *newarray2)
{
for(int i = 0; i <= strlen(oldarray1); i++)
{
newarray2[i] = toupper(oldarray1[i]);
}
}
int main()
{
char oldarray1[5] = {'a','b','c','d'};
char newarray2[5];
touppercase(oldarray1, newarray2);
cout << newarray2 << endl;
}
Thu Dec 25, 2008 11:27 pm
Fri Dec 26, 2008 12:41 am
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.