Beginners - February 2011 (Page 23)

Shorten console menu
 
I have a console window that functions, but the menu is less than pleasing to the eye, and takes up a lot of screen space. Does anyone know the best way to cond...
[2 replies] Last: Ok, I'll try it with the ShellExecute command. C::B has code for creat... (by pwnedu46)
by LtLeo
Repeating a Program
 
#include <iostream> #include <time.h> #include <string> using namespace std; void retry(); void retry() { int y; cout << "Hit the Y key then ...
[2 replies] Last: #include <iostream> #include <time.h> #include <string> usin... (by LtLeo)
'Printing' : is not a member of 'System'
 
Hi I've been programming for a while but I'm fairly new to C++. I want to use the PrintSystemJobInfo Class for some print monitoring but I can't figure out h...
[3 replies] Last: The PrintSystemJobInfo Class is a .NET class. If you want to use it, y... (by Moschops)
by ctrlz
Asking a user to input scores + array and bool usage
 
I'm working on a C++ project right now (will post instructions on the project if and when necessary) and I'm stumped at this point. I've not a clue of what to d...
[1 reply] : char input , numberofscores ; //... numbscores = atoi(numberofscor... (by Mercurialol)
Value of Char[]
 
Hi Everyone, i am currently using this code to loop through the possible HWID's: void checkHWID(char buf ) { int result; char HWID00 = "3030FBC17...
[3 replies] Last: thanks for the help everyone ! now i get it :) xD used to programmin... (by stefkeh)
What's wrong with my code?
 
Hi, i was trying to solve this exercise i found it here : http://www.cplusplus.com/forum/articles/12974/ here is the exercise: Pancake Glutton Req...
[4 replies] Last: thanks jsmith now that i see it its clickable to me too. (by hitmanben2)
How would I compare a char to see if it was up, down, left, or right?
 
Say I use getch(), and the person enters the up, down, left, or right key. How would I compare the variable (Let's say the variable is called 'Var') to see if i...
[1 reply] : //WINDOW *terminal; keypad( terminal, true ); //functions keys (as a... (by ne555)
Improving my C++ function?
 
I'm kinda sorta new to C++ and I made a simple function that would retrieve certain word(s) from a string. Usage: WFS("Hello world 123 lawl test",2) retur...
[2 replies] Last: Without seeing the logic of the code, I suggest some changes, st... (by elsote)
use of wchar_t
 
I'm not able to understand this variable type. Please let me know it's function and also how to use it? //practising variable types #include <iostream> u...
[4 replies] Last: It's for unicode. But good God, you have to do a heck of a lot to get ... (by TheOtherIsland)
Frustrated
 
I am new to programming and have been going through the tutorials here and books to get a feel for c++. When I first started I was excited about learning c++ as...
[10 replies] Last: Why not use a virtual machine? The operating system runs in the main m... (by closed account zb0S216C)
quicksort error
 
I need some help with my quicksort. I keep getting error that vector subscript is out of range Any help would be great void quicksort(vector<int> &v,int ...
[4 replies] Last: Good job :), there should be a gray area in the VS editor if you click... (by Tamao)
Where do I go after learning C++ basics?
 
I'm a college freshman of science major. 3 years ago I bought an introductory book (Sams Teach Yourself C++ in 21 Days by Jesse Liberty), and with scattered b...
[10 replies] Last: @riff: As the others said, STL first. It's a major part of the C++ lan... (by hanst99)
by rav22
The file being read is ignoring spaces
 
Hi I am new to C++ I am trying to read a file and display the contents. I am using the following code inFile.open(name); while(inFile) { /...
[4 replies] Last: I actually need to use the << operator.. Why? (by moorecm)
working with strings
 
I have a string that i read from a file with the next code: #include <fstream> #include <iostream> #include <string> using namespace std; int main(in...
[2 replies] Last: you are gonna need to read a line at the time and then loop thru each... (by Crutoy)
by john2
new c++ project in VC2010
 
HOW TO? How to make an empty console project to practice low level c++ program codes. 1. Open VC2010 2. Go to menu bar, choose "File", "New", "Project"...
[no replies]
distributing programs
 
so i just finished making a very simple game in VS. The problem however is that i want to be able to share it with my friends and send it to other people so the...
[5 replies] Last: Go to the compile options and select "Release Build" instead of "Debug... (by Duthomhas)
by chess
C++ compilation problem
 
Hi When I save project in visual studio 2010. and when I open it via open project i dont see any complie option and ctrl+F7 also does not work. therefore if I ...
[2 replies] Last: Post your code (by Janlan)
seekg
 
hi, i have this code data.open("Data.dat"); data.seekg(0,ios::beg); while(!data.eof()){ data>>nick; acc.open(nick....
[2 replies] Last: lol, xD when you wrote that you want know that how I know that it i... (by julof26)
friend functions scope
 
Are the two classes different in any way ? Does the scope of definition matter ? . . class CSquare { private: int side; friend class CRectangle;...
[1 reply] : No. friend declarations within a class can go anywhere. (by jsmith)
Reading from file and spliting string and converting strin to int
 
Hi I was trying to create a program that gets a file name from console and then it reads the two numbers, converts those two numbers into long int. But as i...
[2 replies] Last: A lot of thanks man myfile >> line; Worked just fine! Can cl... (by ronnkriibi)
February 2011 Pages: 1... 2122232425... 43
  Archived months: [jan2011] [mar2011]

This is an archived page. To post a new message, go to the current page.