Beginners - February 2013 (Page 17)

Do-While Loop is not working as intended
 
//marriage test // Objective: // If the user inputs 'M' or 'S', it outputs a given sentence. Otherwise, it keeps // prompting you to get valid input. ...
[4 replies] Last: Thanks so much, Marcos Modenesi! I was sitting over trying to figure o... (by musicbox)
by skpdh
static, extern, non-static - what does all this mean?
 
Hello, I am a beginner with C++ and am having real hard time understanding various C++ features such as static, non-static, extern and stuff. I have a bigger...
[9 replies] Last: Ah, in Data1.cpp the variables need to actually be inside a namespace... (by LB)
Still having problems with this one assignment loop/if/else statement
 
Here is the assignment below. Topics Loops while Statement Description Write a program that computes the letter grades for the stude...
[6 replies] Last: I don't know if this will be of any help but I wanted to give this ass... (by aiothjaoifaohgaio)
Member Intilization Error
 
Code: #ifndef _GAME_H_ #define _GAME_H_ #include <SDL/SDL.h> //#include "game.cpp" class game { public: game(); bool bisrun...
[3 replies] Last: Thanks got it working. :D (by Retrokin)
I'm looking for open the TXT file and search USERNAME and PASSWORD, but I got this message 'failed to open file'.
 
ifstream myfile("E:\\University\\usersinfo.txt"); //************************************************************* cout<<"\n\n*****************Please ins...
[1 reply] : Where is the data file in relation to your current directory when you ... (by AbstractionAnon)
by henkka
% operator problem
 
im reading this one c++ book and one of those examples had % operator so i decided to do simple program to see how it works... when i change the % operator to a...
[2 replies] Last: The % operator is used only with integers and yields the remainder whe... (by Alrededor)
Help with C++ code please :)
 
I am trying to write a program that generates a table of temperature conversions. I am very new to C++ and I really need some help. I do know that there is er...
[6 replies] Last: You're using your curency variables (USD,PESO,RAND,YEN) as both loop i... (by AbstractionAnon)
by nonolt
Initializing an array in a while loop
 
Hi, I have the following code to sum the raws of an array. Basically I have 4 raw and xx col and I want to sum the raw in that order: raw 2 and raw 3 raw ...
[1 reply] : I'm not sure what you want to obtain, but for the start let me tell yo... (by RobertEagle)
I have this error does anyone know how to fix
 
#include <cstdio> #include <cstdlib> #include <iostream> #include <string> using namespace std; class Person { private: string name;...
[4 replies] Last: You need to define a default constructor. Add in the public section of... (by Alrededor)
.h include .cpp with functions
 
I know this may seem a bit redundant, but is there and way I can get this to work: game.h #ifndef _GAME_H_ #define _GAME_H_ #include <SDL/SDL.h> #in...
[2 replies] Last: Thanks for the help. :D (by Retrokin)
CPP graphics
 
{ cout<<"Hello everybody.\n"; cout<<"How can I resize my text's size in dev cpp graphics\n"; cout<<"And where I can get dev cpp graphics tutorial or exam...
[2 replies] Last: But like Fransje said, You will need a graphics library for that. (by Retrokin)
Getting started with C++
 
Am new in C++ programming and am interested in it. May you help me please to get to know the point I will start learning the language, The requirements of getti...
[3 replies] Last: Also watch this series as it has helped me A LOT. Installing an IDE(V... (by Retrokin)
DEVCPP Graphics
 
{ cout<<"Hi,everybody.\n"; 1)How can I fill circle? 2)How can I resize circle's line size, ex: I want to make circle's line bold? cout<<"Thanx in advance...
[2 replies] Last: //lol like the answer you gave him, just came here to say that ... (by Retrokin)
by nein9
This boggles my mind
 
I suck at math I know but I think it's the power that's screwing me up. I can't seem to translate it properly into C++. This is the equation: ( r ( 1 ...
[4 replies] Last: Thank You! It worked perfectly! (by nein9)
Need help for assignment
 
Yo
[8 replies] Last: is this the method of Cartesian coordinate system of vector of five co... (by sweetgirl)
SDL Error
 
E:\CodeBlocks\SDL\SDL-1.2.15\lib\libSDLmain.a(SDL_win32_main.o):SDL_win32_main.c|| undefined reference to `SDL_main| ||=== Build finished: 1 errors, 0 warning...
[2 replies] Last: It worked THANK YOU SO MUCH! BTW Damn you SDL! (by Retrokin)
Vector
 
Can someone write this example for me? Make a vector of objects, asign value to an object, add new object.
[1 reply] : look at http://www.cplusplus.com/reference/vector/vector/ it has examp... (by K0T4K0t4)
by Kief
C++ help
 
i have attempted to build a game called "pong" and i cant seem to locate the #include <string> file. can you help me? /* Pong */ #include <string> ...
[1 reply] : What compiler/ide? (by AbstractionAnon)
sizeof() operator in array c++?
 
I'm learning about the sizeof() operator in c++. I know that it gives the size of an array. Why you need to know how many bytes is in an array? How does that he...
[6 replies] Last: What does access with the bounds mean? If you reference the 11'th ... (by AbstractionAnon)
VIP Urgent
 
#include <cstdio> #include <cstdlib> #include <iostream> using namespace std; class Person { private: string name; int age...
[8 replies] Last: :) (by tfityo)
February 2013 Pages: 1... 1516171819... 67
  Archived months: [jan2013] [mar2013]

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