- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
16 Posted Topics
I am a recent immigrant from c++ to Java. I have this problem: I have an array of objects (not yet initialized using the new operator), that I need to pass to a member function of another class for storage. In c++ I would have made a pointer to the … | |
Re: Does he have any plans toad some of the libraries from the Boost collection of libraries to STL? Why is giving code hints (in IDE's) more difficult in c++, is it a design problem? What does he think about using interpreters for debugging? While strings are very important in high-level … | |
Hello, I am trying to calculate the value of pi (just for fun, I know it's already done for millions of decimal places), the program I made works fine, but the problem is that, it is constrained by the accuracy of [I]double[/I] values. Is there anyway to create 'extendable' floating … | |
Re: That, and you should loop till loop = 0, not till "\n", because it will take it as the ASCII value of \n (which is 10 I guess). And to tackle the problem of getting the string size, you could get the string class to return the character array of … | |
Re: 1) Must be, depending on the compiler 2) I don't think functions occupy memory (they occupy it only once, and not everytime you create an object. Again this depends on the compiler. | |
Re: I won't tell you the answer, but think on this line: There is a difference in the accessing time of registers and memory | |
Re: Same as VernonDozier said. Also you are printing within the loop itself, so everytimethe user enters the scores, you print all three messages (even when the user has not entered the other ones). So you should print after the second nested loop (the one with i as counter). Also after … | |
Hello, I have made a program in C++ for which I am making the GUI in C#. I want to run the C++ program as a process from C#. The program loads and runs fine, but due to some reason it is not able to access the files. When I … | |
Re: Look up the functions atoi and itoa available in the math.h header file. However if you want to do it on your own. The to convert string to int, take the last character (one's place) and multiply it by 10 raised to 0, then add it to the the second … | |
Re: C++, Java, C#, C all are very similar and have their own characteristic differences. It is better to get a strong hold of all the concepts first, and the learning most other languages will be just learning the points of differences between them. | |
Re: Maybe you should have a class/struct that has the coefficient and the power as their properties (that way you can store just the expressions instead of having a 0 coefficient). You can then use the 'vector' array (search google for "vector c++"), which is a dynamic array, to store all … | |
Hello, I am trying to make a compiler. Don't ask me why because I am making it for fun and experience. I have made a lexical analyser in c++ (I didn't use flex). I now want to make the parser for which I want to use Bison. But I am … | |
Re: You must make a pointer that points to the first node (I think a card means a node). And traverse, means to simply go through the linked list, by going through each node one by one. Hope this helps | |
Re: While defining a function there needs to be a type with the variable name. So you need to put it as string line instead of just line. PS: are you trying to make a string class? If yes then some of the global variables should be inside the class, so … | |
Re: Maybe you can get the first two numbers(the ones that specify the size and multiply value) using the [CODE]getline ()[/CODE] function. After that you can get the other numbers using the same function, and start placing them in the table | |
![]() | Re: [QUOTE=dmmckelv;273951] perfect = perfect(number); //here is where I call the function [/QUOTE] Well, the problem is that you have a variable (int perfect), as well as a function named perfect, which is not allowed, so you can either change the variable name, or the function name |
The End.