Beginners - September 2012 (Page 40)

Moving around inside arrays?
 
Willing to read. Willing to suffer. Want to learn. I've got till Sunday night. C++...took first course 2 yrs ago and forgot most. Now in second course. I ...
[4 replies] Last: Something like this: int world = {1,0,0,1; 0,0,0,0; 0,0,0,0; 1,... (by WaVyPaRtIcLe)
by htown
File I/O Question
 
I have declared all files correctly #include <fstream> ofstream outdata; opened file closed file etc. but i don't understand why I can't read the data fro...
[1 reply] : ofstreams are for file OUTput, if you want to read data in you want to... (by Computergeek01)
Mysterious error
 
Hi I am currently learning C++ from a book called "C++ programming for the absolute beginner, 2nd edition" and I came by an example in the book that tries to de...
[2 replies] Last: I can't test the code myself now, but the first 2 errors look like the... (by georgep)
Better way? ...again ;)
 
Fee per person based on number of people. 1-4 $100 per 5-10 $80 per 11 <= $60 per Just wondering if there is a more efficient way to do this. Woul...
[5 replies] Last: I see, thanks!! Appreciate it. (by trynreadme)
Count blank spaces in a file
 
I am working on a homework assignment where I am supposed to read in a data file of the user's choice and count the number of characters, spaces, and lines in t...
[5 replies] Last: Thanks, got it working now (by awall859)
simple dll help
 
Hello people, I would like some help with why I am getting this error message. I am trying to create C++project. My steps are taken from msdn walkthrough w...
[1 reply] : You are mucking up your namespace names. In your header the namespa... (by Disch)
by Ch1156
Update console
 
Ok so i have a time function that outputs time, but the problem is it just keeps outputting time in an endless loop. I want there to only be one line and i want...
[7 replies] Last: the newline character is the last character of the string, so this is ... (by Texan40)
Mini c++ project without graphic
 
Please suggest some mini c++ projects (no management projects)?
[1 reply] : There's always Project Euler: http://projecteuler.net/ http://proj... (by Disch)
Variable being used without being initialized?
 
Hey, everyone. I'm having a problem with a code I'm working on. I just started learning C++ about two weeks ago, so bear with the potentially messy and unconven...
[6 replies] Last: I'll look into ShowMenu(), never heard of that code before. It's no... (by TheIdeasMan)
Objective C Declaring a NSDictionary in the correct place.
 
I have been trying to get some direction over at StackOverFlow on declaring in an Objective C program. So far as I can tell, Obj-C is substantially the same as ...
[8 replies] Last: Interestingly (well maybe!) if I left the declaration out of the heade... (by nerak99)
Pointing to a new array in a function.
 
So I have a function, given here: if(command == 'N') { char* firstname = new char ; char* lastname = new char ; char* login = new char ; char*...
[2 replies] Last: Okay, that seemed to solve that problem, but now I have a similar one ... (by TheNuclearDart)
Tic Tac Toe Game
 
I am trying to initialize the array "board", but whenever I use {} it gives me an error saying it "expects an expression". Please tell me how I can initialize m...
[1 reply] : Read this: http://www.cplusplus.com/forum/beginner/63/#msg343 (by Aceix)
by lmsmi1
FOR & IF
 
When using FOR, isn't it START; END; INCREMENT? If so, how can END be less than or equal to something? That isn't a proper end is it? Can't it stop anywhere bet...
[13 replies] Last: How does the array apply to the variable? (I lost the original page an... (by lmsmi1)
what is this command "a ? x : y"
 
Hi, I'm trying to understand some source code and i came across this: pn532_packetbuffer = (keyNumber) ? MIFARE_CMD_AUTH_A : MIFARE_CMD_AUTH_B; I ha...
[3 replies] Last: The important difference is that an arithmetic if results in an expre... (by JLBorges)
by gerfy1
Want to make basic text game
 
I am wantin to practice my basic c++ skills by creating a game with no pictures only text. Please give me some ideas
[3 replies] Last: Tic-Tac-Toe and Hangman are both games that many beginner programmers ... (by DesiredNote)
by weliot
I'm a math student taking a basic programing class with C++
 
In this class I've already learn how to write an algorithm that will suffice to the creation of a program. It's a tough class for me, but I like computers and b...
[2 replies] Last: Thanks! (by weliot)
Better way?
 
I'm currently in school studying C++ and on my current project the goal is: "Use the switch statement to determine the commission. If the sales are less than ...
[5 replies] Last: I appreciate the responses, very informative, exactly what I was looki... (by trynreadme)
by Snipez
Bejeweled - Setting up graphical array (game board)
 
#include<iostream> #include<string> #include <time.h> #include <cstdlib> using namespace std; // Will assign gems to have integer values for eas...
[3 replies] Last: I have not had a look at them. I got the info from this post: http://w... (by Aceix)
by MET
C++ Which developer surface ?
 
Hi Which developer surface would you recommend to a newbie for learning programming C++ on Windows 7 ?
[3 replies] Last: Thank you for the suggestion. After a second thought I realise that it... (by MET)
is this not a correct way to overload binary plus operator as class member function
 
struct integer { int x; void set(int i) { this->x=i; return; } int get() { return this->x; } integer&operator+(const in...
[8 replies] Last: @vald & disch thanx to all I got it... (by JAI SINGH)
September 2012 Pages: 1... 3839404142... 62
  Archived months: [aug2012] [oct2012]

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