Beginners - July 2009 (Page 13)

by kaito
numbers in cross
 
use the backtracking scheme to allocates the integers 1-8 to the squares below, subject to the restrictions that no two adjacent squares contain consecutive int...
[2 replies] Last: 3 5 7 1 8 2 4 6 yes, this is a solution. By adjacent me... (by kaito)
by balal
problem with getting characters
 
hi,I dont have any idea about how we could read character from a text file.we should design agame and we can only use iostream fstream and string library.for ex...
[2 replies] Last: To get a single character you can use inFile.get(); (by Bazzy)
Another very basic question regarding int constructors
 
Hi all, look at this : int a; int b = int(); consider this two lines are local variables. Why have some crazy value, and b is initialized to...
[3 replies] Last: The basic type constructor is called implicitly only for global variab... (by Bazzy)
Static and dynamic variable creation, difference ?
 
Hello, I have a kind of strange question here. Consider the following function void f() { int a = 1; int *b = new int(1); } The first one ...
[2 replies] Last: In this thread were exposed some uses of dynamically allocated objects... (by Bazzy)
plotting points on a graph
 
i need help graphing a (x,y) axis and plotting 5 points to make a parabola point1 should be (0,0) point2 should be (distance/4, some height value) point3 s...
[2 replies] Last: For distance, the speed and radians are provided by the user, G is a c... (by bella09)
C2601
 
Hey Guys any help on this problem would be most appreciated. It keeps returning the error C2601 which is: Error 1 error C2601: 'getData' : local function def...
[3 replies] Last: You can't put a funciton in another funciton. Move getData so it's ou... (by Disch)
Print out issue with payroll program
 
I'm a beginner in C++. I have a payroll program that is compiled without error. However, the only output I get is the header information on my report. I'm no...
[7 replies] Last: I did make the change to string values instead of characters. I did g... (by jmparks04)
Traversals and Predicates
 
Hello, can someone tell me what means "traversal" and what means "predicate" ? It's from "The C++ Programming language" book, 3.8.4 page 61. Thank you i...
[9 replies] Last: Ah, now I understand. Thank you Duoas. :) I'll have to get use to this... (by cppuser)
Alert non-graphocal symbol ?
 
Hi guys, does anyone know about the alert symbol in strings ? - "\a". It is said that it will produce a beep sound when encountered : count << "some test b...
[5 replies] Last: Ah, I figured it out. :) It beeped for me, too. :) The problem was... (by cppuser)
Object Lifecycle
 
Hi, I am bit confused about when an c++ object gets created. Does the follwoing statement actually created an object or does it declare an object (without a...
[2 replies] Last: Got it. Thanks a lot for the prompt reply. (by tsliyan)
SetConsoleCursorPosition() error....
 
SetConsoleCursorPosition() failed! Reason :87 What does the error code 87 try to tell.......
[3 replies] Last: My idea is to set the coordinates according to the size of the buffer.... (by Harlequin)
The second cout statement won't output
 
No description need really... // Defines constructor, destructor, and range() function in-line. #include <iostream> // Declare the Vehicle class. c...
[4 replies] Last: Ok, will bare that in mind in future exercises. (by mcleano)
by Bv202
Overloading conversion operator
 
Hi, I want my class to be converted to a float number. So I have this as a method: ClassName::operator float(); But it gives an error now: error C4430...
[18 replies] Last: I don't believe you. ... My post directly answers, in detail, t... (by Bv202)
accepting arrow keys...
 
can someone tell me how to accept arrow keys & escape keys.......
[3 replies] Last: Thanks a lot guys......... (by Harlequin)
Enumeration?
 
I am on the topic of user-defined types and I can't understand enumeration. The example in the book is confusing and doesnt make any sense to me. Could someon...
[1 reply] : Everything in the computer is represented by a number. Often, thoug... (by Duthomhas)
What class can teamlist go in?
 
Hey guys, im getting an error with this code Error 2 error C2228: left of '.set_team_name' must have class/struct/union c:\users\joe mcdermott\desktop\progr...
[3 replies] Last: Sorry about that, ignore that. I didn't realize it was a char array -... (by Disch)
Segmentation Fault
 
Hey, I wrote(tried lol) a program that would take the users input and then reverse the words e.g. if you input " one two three " it would output " three two one...
[2 replies] Last: :) Thank you. And yes I know about "writing words without an index ret... (by mcleano)
I want to start learning C++ (1,2)
 
I have been very interested in computers since I got my first one when I was 8. (I'm 14 now) My dream is to become a programmer and become successful one day. B...
[37 replies] Last: I'm sure it is against some form of rules.. But seriously, I am in the... (by CecilSunkure)
by ihy2
Need some advice...
 
I'm thinking about starting school for Game Software Development. I have an Audio Engineering Certificate and want to incorporate that with this school. One thi...
[2 replies] Last: You should read this: http://www.cplusplus.com/forum/lounge/9430/ V... (by mcleano)
Question: Operators overloading
 
Hi everyone.. I'm having some troubles with operators overloading.... I wrote a point class (fPoint): #include "stdafx.h" #include <iostream> using names...
[2 replies] Last: Never #include cpp files http://www.cplusplus.com/forum/articles/1062... (by Bazzy)
July 2009 Pages: 1... 1112131415... 20
  Archived months: [jun2009] [aug2009]

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