Hi,
I think you should try dividing two Doubles and not Integers. Your array should also be Double.
If you are trying to do something like
int a = 1/10;
the compiler will do 1/10 = (int)...
Type: Posts; User: kapri
Hi,
I think you should try dividing two Doubles and not Integers. Your array should also be Double.
If you are trying to do something like
int a = 1/10;
the compiler will do 1/10 = (int)...
Sorry, I meant code conventions, such as this: http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html for Java.
Thanks for the great answers!
Hello there,
Does somebody know if there is a C++ API Documentation like Java's? I've only found creference.com, but many functions ( such as sort(), stable_sort(), or <algorithm> ) aren't there....
I've got now, a not so efficient solution that works. You can copy the content of suffix[i][1] to another array temp[asBigAsSuffix], sort temp with stable_sort() and copy the results back. I will...
Hello,
I've implemented an suffixarray, wich then I sort with bubblesort. To improve it a bit, I'm trying to get the stable_sort() function to work, without success...
I've read, the...
One line before "return 0;" you should write:
System("pause");
The Console will wait to a second hit of the return key.
Argg, no there wasn't a reason to do so. I just didn't realize that >> reads full words :(
With that it runs wonderfull :)
Thank you really much for the help! I was stuck there for a while.
I tried doing it so, but for :
while(ch = getc( fptr )) // !inputFile.eof();
{
std::cout << ch;
}
Hello everybody,
My goal with this programm is to implement a function that reads a file with text, and returns successively single words, that can be handled by another function.
One of the...
No, I haven't learned operator overloading yet. But thanks for the point, I didn't know that.
By the way, wich book do you read? I'm reading "The C++ Primer" from Stanley B. Lippman (although...
Thank you very much for the rapid and detailed explanation, it helped a lot!
Hi,
as I compile the following code, I dont get an error during compilation, but during execution.
If I leave the string pointer "char *str1" uncommented, it runs fine.
My question is: why...