Beginners - August 2010 (Page 9)

Printing in a certain coordinate of the C++ Screen
 
I need help on how to display a string on a certain x,y coordinate of the C++ Screen. Hope somebody can help me with this.
[4 replies] Last: Thanks you very much. (by jontoby)
Style programs
 
How can I make the visual aspect of programs instead of only being able to debug and get the cmd-box. I mean to creat an actual program with buttons and stuff. ...
[9 replies] Last: wxWidgets is like WinAPI only easier and crossplatform. go with wx.... (by Disch)
Random Number Generator
 
An exercise is to write a program that generates random numbers within user specified limits. The program I wrote is as follows and it runs correctly. #i...
[3 replies] Last: Thanks for the suggestions. I took a look at Boost.org. Right now mo... (by nathan10)
Error 1 error LNK2005: _main already defined in Prog 1.obj
 
Hi, I'm new in C++ language and in the forum. When I try to build my .exe I get these two errors: [ Error 1 error LNK2005: _main already defined in Prog 1.obj...
[2 replies] Last: Thanks very much Disch, you were right.. (by elbekir)
I cannot figure out what is the problem
 
Hello everyone, I started to learn C++ some hours ago. Long ago I learned Pascal and I remembered one of my first tutorial programs, so I started to code it ...
[2 replies] Last: thanks (by minimalis91)
by wtf
Is the following possible?
 
I was just fooling around and was pondering some of these such as: Can a switch statement do either of the following: switch (x) { for (int i = 1; ...
[9 replies] Last: I've never needed it...like I said: [quote=firedraco]if you need to... (by firedraco)
Stringstream not working in loop
 
In the attached for loop: the first iteration works well, but for the second iteration the number ends up with 0 in it. strinfocus gets the right value, so ...
[3 replies] Last: Thank you, guestgulkan's suggestion works! Galik, I am trying to so... (by tfcoder)
difftime problem
 
question: Participants are required to answer as many questions as possible in 60 seconds. how should i use the difftime(time_t, time_t) function to sto...
[1 reply] : See http://www.cplusplus.com/reference/clibrary/ctime/difftime/ (by Athar)
Weird error with }
 
hello i'm making a tic tac toe game(my first game actually) but i get an weird error at the end of the main function ( the "}" ) so can someone take a look at...
[14 replies] Last: yes this is the xoax.net tutorial. I'm nearly done with it so i can t... (by piggekott)
Problems with header files..
 
Hello, i am a beginner and i've recently now split my code into Header files, implementation files and a main file after initially having all the code in one fi...
[6 replies] Last: right.. i get it. thanks (by Mike200)
what does the following line means
 
Hi guys. In this faq: http://www.parashift.com/c++-faq-lite & is used many times in a line of the following type: if (n < 256U) or if ((n & 255u) < ...
[9 replies] Last: Great so all I got to do is read this paragraph again. Thanks guys... (by yotama9)
how to pass a parameter from c++ code to .bat file?
 
Hello Everyone, Does anyone know how to pass a parameter from c++ code to .bat file? Thanks a lot,
[3 replies] Last: I finally figured it out thanks... I wanted to pass a value of a ... (by georgialucas)
polymorphism
 
Hi . I created this class but when I created object from class my compiler return error invalid abstract return type for function 'Academisions aca() class Uni...
[3 replies] Last: You need to implement both pure virtual functions in the subclass Acad... (by Galik)
Any way to call default variable values without specifying them?
 
I'm doing integrity checks on variables before initialising them; if they fail the checks I want them to be set to the default value. So that I don't have to ed...
[4 replies] Last: Fair enough, just thought I'd asked. Thanks for your help. (by Swiftslide)
by Mazd
wxWidgets?
 
Please guys can anyone give me link to wxWidgets tutorials.
[2 replies] Last: Thanks Denis next please... any details about members of windows... (by Mazd)
Simplify program with arrays or switch?
 
Hi, I've made a program from an exercise I found here http://www.cplusplus.com/forum/articles/12974/ It's the pancake glutton one where you input how many panc...
[4 replies] Last: Yea, that makes sense, thanks! (by pancreatis)
Writing a program to read a password
 
Hi, I want to write a program that can be used to read a password, then save it in the memory, and if the password is correct, later, then allowing access to th...
[5 replies] Last: Hey, Athar, you're an idiot for misunderstanding obvious stuff... Ple... (by Duthomhas)
by marak
Theory Question, Reading Text Book
 
G'day guys, ive been reading Brian Overlands C++ Without Fear for a few weeks now on and off when i get the time, and im getting a little confused with the foll...
[6 replies] Last: Thanks for that :) makes things a little easier to understand. (by marak)
Trouble with arrays of pointers (EDIT: now trouble with StringStream!)
 
Hi all, I'm hoping somebody can help me out with confusion about pointers. I have a class "Person" with constructor Person(string name) and a getName() metho...
[5 replies] Last: Slept on it, looked at it this morning and realised it was the constru... (by Swiftslide)
How to Use the Swap Function?
 
I tried to do an excercise from Stroupstrup's book. The reader is asked to reverse the order of elements in a vector so that if originally vector = 1, vecto...
[4 replies] Last: You guys were right, thank you. I was not using the correct form of t... (by nathan10)
August 2010 Pages: 1... 7891011... 28
  Archived months: [jul2010] [sep2010]

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