Beginners - October 2012 (Page 73)

menu-driven program (function issue)
 
i keep getting a warning for case 3. 40 C:\Documents and Settings\Admin\Desktop\me cpu\Untitled4.cpp the address of `double memberCost(int, int, int)', wil...
[15 replies] Last: i have return at the bottom of my double function, but i still get th... (by maeriden)
Question about doubles and rand.
 
Hello all, I tried a search and I wasn't able to find much. I apologize if a topic like this already exists. I'm writing a program that requires the user to in...
[5 replies] Last: I tried this: double rand_number = fmod(rand(), (max_number - min_n... (by SconePowder)
C++ to game Programming
 
Hi, I just finished the beginning course of my c++ class in college and now i want to get into game programming, the thing is, I dont know where to begin. I am ...
[3 replies] Last: Private message me and I will throw you some book pdf's if interested ... (by Yoda)
C++ game making help?!?!?!?!
 
Hi I am currently working on a simple text based game for practice. However, my compiler, Visual C++ Express, keeps giving me an error. #include "stdafx.h" #...
[5 replies] Last: Dont use global variables, it's a horrible programming practice unless... (by Need4Sleep)
by smelas
a simple algorithm
 
below is a part of my code but I am looking for a way to make it shorter. ? int box1=0; int box2=0; int box3=0; int box4=0; int box5=0; std::cin >>...
[3 replies] Last: This is what I managed. It was fun #include <cmath> int boxes = {0... (by maeriden)
Cell phone bill - passing by reference parameter
 
1) cannot get bill to output correctly 2) how do I output the description for the plan Write a program to calculate and print out cellular phone bills for o...
[4 replies] Last: U can do what u did in the getPlan_Minutes function where you use a sw... (by soranz)
Print floating point--Solved
 
Solved-thanks! I am very new.. About one month in, and I'm having trouble with this one for some reason. And yes, I have to use floating-point numbers. He...
[3 replies] Last: You also need to put the << fixed << setprecision(2) in front of << am... (by freddy92)
Super Simple Image Manipulation
 
Hey guys, all that I need is a very simple image manipulation library that will let me save an image file, and write pixels too it. Thanks for the help. :) ...
[1 reply] : Google says "Devil library". Completely off topic. (by chameleon)
New to coding, need help.
 
Im gunna be honest, Im not even sure what language this is. I JUST started trying to learn how to code a few hours ago. Im just trying to get help because I rea...
[5 replies] Last: Sorry about the double post, but I just wanted to say that I did figur... (by InfamousXTC)
by Ch1156
Array that automatically gets size? (1,2)
 
Ok so i keep adding stuff to my array but i want to know is there a way that the array can automatically get its size without me having to change the number in ...
[32 replies] Last: So something like this is better? //Prison Simulator game by Chay H... (by Ch1156)
count words, uppercase, characters
 
hey this is my first time taking c++ I am having a hard time with this problem: •MAX_COUNT is a constant and equal to 30 •The Calculate Stats box should...
[no replies]
what did the guys who are now pros do a few weeks after their first hello world program?
 
I got all the time in the world to learn, i would love to make games but im in no rush im happy with any kind of learning curve, i have to keep my brain active ...
[3 replies] Last: yeah i got the hang of buckys stuff just what now my dad told me to ... (by devonrevenge)
by utkir
C++
 
how can i create form in CodeBlocks
[2 replies] Last: you gotta suss out how to use one of them windows APIs...i will do tha... (by devonrevenge)
thanks to the amazing chervil this code works but now i need to understand why
 
so i couldnt get getline to work, i didnt realise i needed to put myfile << line; in after writing getline (cin,line); why is cin in the parenthesis and how d...
[3 replies] Last: To simplify things a little bit, you don't actually need .c_str(). Yo... (by Stewbond)
by Serri
How do i rearrange the numbres of the value in a variable c++
 
Rearrange the numbres of the value in a variable c++ How is this done? I tried to google but couldn't really find the right words to google for. What i m...
[13 replies] Last: Here's something recursive. My implementation didn't have int pow(int... (by Stewbond)
Shapes by Nested for loop
 
Can anyone tell me how to sketch shapes like square with empty space in a middle, diamond with empty space and without empty space, too, an arrow, separately, p...
[1 reply] : Program for square with empty space within #include<iostream> #incl... (by Pter0dactyl)
Double refernece operator '&&'
 
In some code I'm writing, I need to reference an array. If I put one '&' I get the error cannot convert parameter 1 from 'ALuint *' to 'ALuint **' but if I pu...
[1 reply] : Try not using any at all. Or post your whole code. (by freddy92)
Whats wrong with this code?
 
#include <iostream> #include <string> using namespace std; int main() { Int a, b,c; string j,k; j = "a is greater than the b"; k = "b...
[6 replies] Last: I got it.. Thank you all . (by bluemoon)
by blaa15
reading line by line from txt file (1,2)
 
I am trying to read data from a .txt doc line by line with delimiters. we also have to populate a vector with the info. I have tried everything I know to do, b...
[20 replies] Last: Here's something similar that works. input File: Tommy$Gunn Bobby$S... (by cire)
Unresolved Externals and how to the Total in?
 
I'm compiling my code and keep running into the same error 1>------ Build started: Project: Mailhouses, Configuration: Debug Win32 ------ 1> MailhouseSourc...
[4 replies] Last: So using the above code where would you put it? Only you can answer... (by Chervil)
October 2012 Pages: 1... 7172737475... 84
  Archived months: [sep2012] [nov2012]

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