If it were a variable, the << operator would know how. If both top/bottom are floats, it will output 0.8. But if they are ints, then you will get the result of integer division, which drops the...
Type: Posts; User: pablo615
If it were a variable, the << operator would know how. If both top/bottom are floats, it will output 0.8. But if they are ints, then you will get the result of integer division, which drops the...
Of course your going to want to read this.
No one will "do" your work for you. When you are stuck with something, let us know, lets us see what you've done so far, and you're much more likely to...
My spyware bundling overlords keep me locked in a basement in Kansas. I have to churn out spyware day after day, and all they let me eat is stale cheetos.
On the plus side the health plan is top...
You cannot use the same variable name in the same scope. You are essentially telling the compiler that file is now an ofstream object when the compiler thought it was an ifstream object. This is...
Also, your using sprintf improperly. sprintf is not intended to be used to concatenate a file into one big string, like I think you want it to. Besides, your method will delete the entire file...
Didn't you get the memo? :D
Always double check the spelling...I've got many lumps on my head for reading what I wanted to see and not what I actually typed...
It either has to be in the source directory being compiled or the include search path for the compiler must be modified to look in the directory your file is in.
Every compiler allows you to...
That really depends on what you are reading from the file. Concatenating strings like that requires you to use a string object supporting the += operator. If its all numerical data, then += will...
You need to install g++. And if it is installed, it needs to be in your path or in a directory already in your path.
This method is limiting. What if I only have 20 '*' in my string and the value is 21?
Your game SERVER will listen on a single port. All your clients will INITIATE a connection on that single port. Once the server ACCEPTS the connection, a new socket is opened (or new file descriptor,...
Heres one clip from googling...
decent link for info
The Enhanced Parallel Port (EPP)
The EPP was developed in 1992 by Intel, Xircom and Zenith and is sometimes referred to as the Fast Mode...
Don't use the printer port :D Google for the specs for that port and see what the physical HW is capable of supporting throughput wise. Since that will probably be depressing, you might not even...
If your on windows, there is no need to write your own interpreter. You could feed the code that the user writes into a file and run a compiler on it to create a dll and then link to that dll and...
Its not quite an inifinite loop because the user can always choose not to go to the shop, but the stack might not ever unwind properly. It is an example of indirect recursion , which is certaintly...
Is it too late to change my pic :D Looks like the vegas bums couldn't get the odds right on the texas tenn game.
Since you are using indirect recursion, the variable scope and initialization comes into play. Look at how your declaring and initializing the variables.
If you can get a debugger, step through...
The number of bytes that a data type varies based on the system. It is typical that a char is 1 byte, but unicode and multibyte characters exist to support all those other languages that don't use...
Hey Jackass! Starting a new thread asking the same thing isn't gonna get you better results!
Hahahaha, that hard work is really showing...keep at it!
No, this would cost a small fortune in the states too...just because we have a ton of mechanics everywhere doesn't mean they work for peanuts. Plus, reboring the cylinders isn't a fix for bad rings....
Like I said in my post above, the compiler is telling you EXACTLY what is wrong. I am assuming of course that you are experienced enough to know what a return type is and what an int is and how to...
The Bungles winning a game against ANYONE is always an upset in my book :)
Or, disregard my crap and look at your main function. The compiler tells you exactly whats wrong. And Salem will come along in a little bit and drive it into your nogging exactly whats wrong with his...