Beginners - August 2014 (Page 26)

exit(0) crashing program
 
Hey all, I am trying to exit my program when the user enters 0. This will take the program to void Hardware::endProgram() { //program exits gracefully ...
[5 replies] Last: Just hit the pause button while it's hanged like that, then. You can a... (by helios)
What do these errors mean??
 
I'm writing this program for a class. This is the second part of a three part program, so it's not supposed to actually work, it's just supposed to compile. It...
[no replies]
Graphics
 
How can I make a graphics program? I've noticed that there is nothing about graphics in the tutorial.
[4 replies] Last: Even if you want to use OpenGL directly, SFML is a good choice because... (by Disch)
by vxk
class object problem
 
Why can't we declare a object of a class inside the class but we can declare a pointer type of that object. See the code below : class Base{ int...
[1 reply] : If every bag contains another bag.... Then bag 1 contains bag 2, whic... (by Disch)
Securing .txt files
 
Hello, Ive wrote a simple console game and I keep lot of date in .txt files. I wonder what are the ways to secure them from users. I mean I keep there for exam...
[7 replies] Last: Im oldstylish guy, actually Im using sheets of paper, but for sure wil... (by Furjoza)
(arg): Is this shorthand?
 
Hi all, I've just start with Beginning C++ Through Game Programming. I'm stuck on Chapter 8, with a section of syntax I don't understand. The line in question ...
[3 replies] Last: Thanks guys, that makes sense. (by slouchcouchgamer)
Book Info Code
 
I'm having an error where the title and author of the book are supposed to be defined but they aren't and I'm not sure why. the Title and Author should be defin...
[1 reply] : In your constructor for the 'Book' object you are creating instances o... (by Computergeek01)
Further Learning of C++
 
I have completed most of the, so called "Basic Training" of C++. For me that included... - watching and practicing all the videos from the YouTube Channel (...
[2 replies] Last: If you only did console application, you could try win32. (by Richard 4234)
Function Overrides
 
I'm programming a small program (in c++) for the arduino. I've defined a class with several functions. One such function is void act(): which I would like to ov...
[1 reply] : ... which I would like to override for each individual object that I ... (by Computergeek01)
How would I go about on creating a image converter?
 
So I'm slightly new to c++, been coding in it for about a year now, and I was wondering if it's possible, and if so how, can I create a converter that will conv...
[6 replies] Last: Okay thanks, I was thinking there was already existing libraries out t... (by liquifiednate)
Global variable
 
I dont understand how the program prints global variable here in this code,it would be nice if some oné can help me with this... it is the last instruction in ...
[1 reply] : The unary :: scope resolution operator accesses the global variable in... (by wildblue)
by jksdk4
Simple Calculator program
 
Hi. I just completed a summer school course on C++ with no prior programming knowledge, so I haven't been doing this for long. For fun, I knew I missed some con...
[4 replies] Last: You got it. Thanks, Lowest0ne. I guess I thought I had to do the cin ... (by jksdk4)
Scan keyboard for input
 
Hi. I've been challenging myself to create a mini console game, where you move a character to avoid falling beads. I've been plotting it out on notes on my iPad...
[5 replies] Last: Just a quick follow up: I've done some looking into ncurses, and I ha... (by heyyouyesyouiloveyou)
sequence loop
 
How do I restrict the print out of this sequence to just N or so terms? I am wanting to print no more than 30 or so and at the moment im getting the program run...
[4 replies] Last: great got it now thanks for the help (by bubba89)
Ask someone out using C++
 
Hi everyone, this is urgent and might sound cheesy. I just met this girl and she is a programmer and proficient in C++. I just know some VBA etc. I wa...
[9 replies] Last: maybe she's checking your code for bugs ;-) (by Codermik)
program
 
program that will compute for n! (n factorial) which is the product of all numbers from 1 to n
[3 replies] Last: If you are new, then you should have read http://www.cplusplus.com/for... (by keskiverto)
dynamic filename to be opened
 
Good morning, my question is the following. I'm using DEV C++ and I would like, inside a cycle, to ask the program to open an already existing file .txt whos...
[2 replies] Last: #include<iostream> #include<math.h> #include<stdio.h> #include<fstream... (by stefano85)
Programming in Visual Studio C++ 2010
 
The comfort zone temperature for the occupants of a building is higher in summer months than it is in winter months. It is also dependent on the value of the re...
[5 replies] Last: mutexe lol +1 (by Yanson)
c++ save feature, string error?
 
Alright, so I just simply need help with this. I cannot get "mystring" to equal "correct". I would really appreciate some help in figuring this out, I am making...
[4 replies] Last: I'd guesss that for line 29 you mean correct = mystring; (by coder777)
by mehak
error
 
what is the error in the following code? #include <stdio.h> int main() { int rows,i,c; scanf("%d",&rows); for(i=0;i<rows;i++) { ...
[6 replies] Last: The error is in file that has name "8.c". The error is probably on lin... (by keskiverto)
August 2014 Pages: 1... 2425262728... 40
  Archived months: [jul2014] [sep2014]

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