windows.h - Wikipedia, the free encyclopedia
Type: Posts; User: Crux
windows.h - Wikipedia, the free encyclopedia
I will. Already mentioned it on their forums.
That one worked. Does this by any chance have something to do with me using Linux?
Try preventing pausing the system because it only works on certain operating systems. Try 'cin.get()' instead if you want a user to be able to view the output.
I did. I know i is not an empty file. When I use the wizard it lets me choose between 3 files a source file, header file or other file. And I am very sure that I choose the source file (several...
I am browsing to the location.
Do not know what you mean by quitting but you could try using the exit() function. Just forgot in what header file it is declared.
Stupid that I missed that.
Look at what 'manasij7479' said. You are not comparing in your if statements you are assigning the value.
PS. When using the ASCII table to initialize a char you use...
A char can hold a character but also the ASCII value of the character.
ASCII Code - The extended ASCII table
Well like I said I am a beginner myself and I might be overlooking the same thing as you are but what I think you could try the characters in a 'char'. I do not know if they are reserved by C++ or...
Well I am not an expert like I said but it would be nice if you mentioned what is going wrong. Does it not compile are there any run time problems?
I am just a beginner myself but I see at least one problem and that is that you are not initializing your variables when you declare them meaning they could hold any value.
Next to that it looks...
I was hoping someone here could help me. I am using CodeBlocks.
When I try to create a new source file instead of placing it in the folder "Sources" it places it in the folder "Others". I am sure...
How would I get the first 5 characters then?
Did I had to use < instead of > for the second problem?
What is wrong with these two snippets of code, they both return false no matter what???
bool LM(string Name)
{
string Control = Name.substr(5);
if(Control == "aName")
{
...
Btw. if I include cctype do I then also need to declare it like "using ..........." Like in "using namespace std;"? Or is this not needed?
If I got a string and I would like to chop of the first 5 characters and store these in a string of their own. How would I do that?
I will bookmark this page. I do not fully understand what you did there but it seems like a good way to optimize my code so I will look into it later when I understand C++ a bit better.
Just...
When I got a string defined "string MyString" does this have a MyString[0] or does it start at MyString[1].
Also is a string terminated with a "\0" or NULL character?
Thanks. I overlooked a function. Got it to work like this.
inline bool hex(string String, int Lenght)
{
// Go through the string
for(int counter = 0; counter < Lenght; counter++)
{...
The function should return true if the string only contains hexadecimal chars. However it keeps returning true not matter what the input is,
inline bool hex(string String, int Lenght)
{
//...