Search Results

Showing results 1 to 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: littlestone ; Forum: C++ and child forums
Forum: C++ Aug 28th, 2008
Replies: 6
Views: 1,610
Posted By littlestone
I think you maybe misunderstand the meaning of index and size. There are some errors in your code, please see my comments below. I attached my code, which is base on yours. Please refer to it.
Forum: C++ Apr 28th, 2008
Replies: 27
Views: 3,924
Posted By littlestone
for (int k = 0; k < rowsb; k++)
{
sum = sum + matrixa[i * columnsa + k] * matrixb[k * columnsb + j];
matrixc[i * finalcolumn + k] = sum; //move this line out of this loop then use j replace k,...
Forum: C++ Apr 28th, 2008
Replies: 27
Views: 3,924
Posted By littlestone
Sorry, my English is not so good. I mean that using

one_dimensional_array[i*column + j]

instead of

two_dimensional_array[i][j]
Forum: C++ Apr 28th, 2008
Replies: 27
Views: 3,924
Posted By littlestone
for (int i=0; i<rowsa; i++)
{
for (int j=0; j<columnsb; j++)
{
float sum = 0.0;
for (int k=0; k<columnsa; k++)
{
//first, look it as a two-dimensions array,...
Forum: C++ Apr 25th, 2008
Replies: 3
Solved: Homework Help
Views: 568
Posted By littlestone
I have finished it, but to don't violate the rules of this website --"Don't give away code" , I can not give you all my source code. The following is the framework of program. hope it can help you.
...
Forum: C++ Apr 18th, 2008
Replies: 11
Views: 1,519
Posted By littlestone
The various combinations of the flags and the corresponding meaning as below:

ios_base Flags Meaning
in Reads (file must exist)
out ...
Forum: C++ Apr 16th, 2008
Replies: 10
Views: 2,322
Posted By littlestone
int len = strlen(sentenceHolder1);
for(int i = 0; i < len; i++)
{
if( sentenceHolder1[i] == look_for_character )
sentenceHolder1[i] = sentenceHolder1[0]; //I think this will be OK
}...
Forum: C++ Mar 10th, 2008
Replies: 7
Solved: String problem
Views: 831
Posted By littlestone
Could you post your source code.
Showing results 1 to 8 of 8

 


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

©2003 - 2009 DaniWeb® LLC