Search:
Type: Posts; User: AlastrionaAdair
Search:
Search took 0.06 seconds.
-
August 9th, 2011, 10:26 AM
It had the exact same results, first read is skipped, later reads are successful.
-
August 9th, 2011, 10:06 AM
It's a pure command line application. And I still don't know the actual cause of the oddity. I don't understand why it doesn't work from the exception handler.
-
August 9th, 2011, 10:01 AM
Okay, the issue is probably the scope or context in which I am calling it. I am doing it from an exception handler. Basically there is an exception and I want to give the user the chance to type in...
-
August 9th, 2011, 09:54 AM
Same issue with all of them. Not to mention they require to read as char[] or byte[]. Not something I want to do.
-
August 9th, 2011, 09:39 AM
First line is empty. prints out line=<
Second line prints it what its supposed t. ie: line=test<
The problem is, it doesn't wait for input at the first readLine() call. It just immediatly goes to...
-
August 9th, 2011, 07:40 AM
Okay I'm really confused right now. I'm probably missing something really obvious. I'm just trying to do some simple reading from the command line. (I'm using fedora 14, but I don't think OS matters...
-
July 19th, 2011, 05:25 AM
If only we had such liberties in a business environment, then I would be using C++. I'm afraid use of Java is a requirement. I was kinda afraid of this response. I might have to just estimate the mem...
-
July 19th, 2011, 04:52 AM
Hello. I'm looking for a way in java to create a buffer with a fixed memory size. For example I want to create a buffer which can hold 10MB of objects in memory, then when the buffer is full, it will...
-
April 19th, 2010, 08:38 AM
The point of the enum is to make your switch more readable and not have a switch with seeminly random integers.
Correct. A little oversight on my side. But if you replace my function with...
-
April 19th, 2010, 07:35 AM
EDIT: You'll need to calculate the actual value of the string and fill in the enum like that. I did CEST as an example.
Wouldn't it work in combination with your idea of mapping the string to an...
-
April 19th, 2010, 07:23 AM
-
April 19th, 2010, 04:19 AM
Don't forget to add:
using namespace std;
if you use <iostream>.
Also, what is your problem?
-
April 19th, 2010, 04:13 AM
Perhaps it's not completly correct. But I thought it would be easier for the OP to understand it this way. At least its not another off-topic post debating the definitition of pass-by-ref and...
-
April 19th, 2010, 03:47 AM
void foo(int* arr, int size)
{
for(int i=0;i<size);i++)
cout<<arr[i]<<endl;
}
int main()
{
int a[] = {1,3,5,7,2};
foo(a,4);
-
April 12th, 2010, 07:57 AM
I remember posting something about GCC having trouble with friends and templates. Perhaps you can find something useful in this old thread of mine?
...
-
April 12th, 2010, 07:36 AM
Thanks for the advice guys, you both pretty much suggest the same thing, which is what I ended up going with. It seems fine performance wise now, even if I do something ridicilous like make the array...
-
April 10th, 2010, 06:48 AM
I´m messing around a bit with procedurally generating terrain for a game I´m working on. The terrain itself is simply represented by a 2 dimensional array which containts height values, basicaly a...
-
July 16th, 2009, 03:11 PM
-
July 16th, 2009, 10:24 AM
I have this old piece of template code that I wrote a while back. Its an attempt to bring C# style properties to native C++. The code compiles fine with VS2008, but when trying to compile in...
-
What constructor do you think is called when you write: MyClass obj1; ?
Remember when you instantiate a class its constructor always gets called. If you realise which one is called, you have found...
-
If you are storing the high scores in a database, xml or plain text file you should probably just access it directly with c++.
-
-
Search for "c++ loops" or "c++ while" and you should find plenty of useful information. It's also one of the first things most tutorials and books about c++ cover, so there should be plenty of...
-
I agree on there being no need to reinvent the wheel. However it is generally a good idea to hide the engine, or the parts of the engine that you use behind a layer of abstraction. This will allow...
-
You really shouldn't be using goto here, its bad practise. Use a loop for what you are trying to do.
|
Click Here to Expand Forum to Full Width
|