Sorry CornedBee
Type: Posts; User: Code Monkey
Sorry CornedBee
I'm not going to reply to a fellow idiots post, but please tell me if I was wrong for just tring to show loopshot another way of locating a file? I didn't think this was in order but I appericate...
Okay, you and do it your way, and I'll do it the way I've learned from other people.
Here if you compile this and you put the .exe and the input.txt file any where on you hard drive (And both .exe and input.txt are in the same folder) the .exe will still know where the input.txt is...
Well say I send you a program such as my pong or snake game and they use relative paths to locate all the files that the game needs, now if you just move the directory we ever you want it the game...
Here is an example program so you can better see how it works, remember use this tutorial to learn, not as a tool to copy and paste.
// Code by: Justin (Code Monkey)
#include <windows.h>...
BOOL SetConsoleTextAttribute(
HANDLE hConsoleOutput,
WORD wAttributes
);
HANDLE is the parameter that you pass in that is the handle to the output devices. For example the output device...
Just like anonytmouse said, your variable name for your multimap is the same as a function name.
If you are declaring a function that is not a member of a class or struct you should use a naming...
Another useful tip is that if you know the file is in the directory of the programs .exe, you can use relative paths:
"./input.txt" <- if the file is in the main directory folder
...
Thanks for the replys.
I'll just jump right into it, this is from the challenges page on the site (not the code, but the challenge itself: Convert decimal number to binary)
I was wondering if you could give me your...