// Assuming only 26 numbers on 1 line
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(void)
{
Type: Posts; User: knave
// Assuming only 26 numbers on 1 line
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(void)
{
http://msdn2.microsoft.com/en-us/library/ms686028.aspx
BOOL WINAPI SetConsoleDisplayMode(
HANDLE hConsoleOutput,
DWORD dwFlags,
PCOORD lpNewScreenBufferDimensions
);
You're right, text can be "taken the wrong way." However, in this case it wasn't. It was an "accurate assessment."
He doesn't even understand a compiler. This is almost random...
Is...
A guess.
int main()
{
unsigned short i = 0;
char a;
people tdata // ??
do
MacGyver, first thing you need to learn is how to communicate with other humans (not birds, bears, snakes or those extra terrestrials) who happen to be completely new to programming. Because we...
if (toLowerChoice == 'b')
{
pttt = new ...
}
else if (toLowerChoice == 'r')
{
pttt = new ...
}
// What if neither of the conditions are met...? What will you be returning?
#include <iostream>
using namespace std;
const char * ONES[] = { "Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
...
What happened?
I opened MSVS.NET 2003 just as I have many times before. I Created a new Win32 Console Project, and selected "Empty Project." I then proceeded to add a new ".CPP" file and... and......
sizeof on a pointer will only return 4 bytes on an x86 (depends). Because its just a "pointer."
Thus,
{
...
memset(buffer, '\0', sizeof(buffer));
...
}
would not...
C or C++?. 'printf's' are mixed with 'cout's'; all of your variables are declared above main(). Can you not decide?
Change all of your printf's to cout's.
{
End your cout's with
...
#include <iostream>
#include <conio.h> // getch()
using namespace std;
int safeGet(char *buffer, unsigned short len)
{
const char BACKSPACE = 0x08;
const char ENTER = 0x0D;
How does one idle a program? If I use a loop that keeps searching for data to act on, the CPU usage will
be around 98% because the program sends instrutions to the processor over and over again...
I typed: cl /GX ../pcname.cpp -o pcname.exe /link user32.lib
And it got rid of all those warnings... I just don't understand.. why?
What is the /GX? Why/How did it get rid of the warnings?
The compiler works fine... its just I get those warning everytime I use the the commmand prompt compiler... MSVC++ 6.0 already sets everything up for you when you intstall it.
It was already...
Take a look. (I placed a code]tag around the output to make it slightly more readable.)
D:\...\...\...\Debug>cl ../pcname.cpp /link user32.lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler...
I didn't say I used 'string', that was just an example.
But... you just said
I have read that line over and over again trying to think, why placing a 'struct' containing all the members...
I see.
The reason I asked, was because I have a hard time figuring out what to name my variables within my classes; heres why.
For example: Lets say I have the member "char *string" within my...
Why is the "_" character in front of most variable names?
Example:
_SomeVar;
_Str;
I also notice:
m_SomeVar;
Anyone know of a "cool, or nice looking" text editor for C++?
Most text editors out there are ugly, and look like a... just an
original text editor.
Is there any editor out there that has a...
After learning C++ enough to start writing things on your own...
Seeing books 300-400 pages long written on 1 subject such as templates, kind of brings you down... you know?
Its like these...
Ok, does anyone here own the "Visual C++ .NET Standard Edition?"
If so, is there a major difference from VC6.0?
Why is the ".NET" in the name? Or what is .NET?
Can this compiler be used with...
What does this code do?
It doesn't really do anything, except draw a small character-based rectangle from top to bottom, left to right ( it looks like a window)... Eventually this rectangle will...
...
Is there a way to hide the win32 console window?
(Ex. When the program opens, the console doesn't show up but still runs in the background.)
ReadConsoleOutputAttribute() is not returning a "useable" color, its returning some huge number that definitely isn't marked as a color in the console... any examples?
I thought you were supposed to keep peoples social security numbers private?