Beginners - February 2013 (Page 18)

Problems with variable initilization (1,2)
 
Hello When i compile the following program it runs but when there is input for Player one the compiler stops and says variable b is being used without being ini...
[21 replies] Last: Yea the move function only returns one value now that was me being fru... (by warburp)
How to remove leading Zeros??
 
How do I remove the leading zeros during output. I have tried google, but the results I found always have to do with strings. I am using doubles to calculate my...
[1 reply] : What about this? string xtos(double x){ stringstream ss; ss << x; ... (by tfityo)
pointer Error
 
help template <class T> class setClass{ private: T *member,*devloper; int counter,size; public: setClass(){ size=20; counter=0; member=new T ; cout...
[3 replies] Last: thank you (vlad from moscow) my problem solve sorry for wrong word... (by azhirahmadi)
Expected unqualified-id
 
Implement a class Person with the following data members: • name (string) - name of this person • age (integer) – age of this person Write a program ...
[3 replies] Last: Indeed, that Person has many names and has many ages! (by Cubbi)
by cjaw18
Not sure what I have done wrong
 
ok this code does not pull up any errors in the compiler, and from what I can tell should run smoothly, but it does not. It only runs the first if statement no ...
[3 replies] Last: @James2250 & Chervil, thanks so much, it works as planned now :) (by cjaw18)
by rcast
Conversion errors all the time
 
I just started in C++ and I've been getting tons of data type conversion errors when I try to compile, especially when using library functions. Is there any goo...
[5 replies] Last: When using a library function, the starting point is to look up the re... (by Chervil)
C++ - migrated from 32 bit to 64 bit and getting unrelated sqlcode while dealing with Oracle DB
 
Hi, Previously we had 32 bit C++. Now, we have migrated it to 64 bit. And our C++ programs interact with Oracle 10g DB. Our C++ program was working fine w...
[no replies]
sfml graphics
 
Hi I'm doing an assignment for my uni course and am stuck with using sfml I have to make a game of blackjack with graphics but the graphics will not show this i...
[1 reply] : The most basic graphics tutorial is available on the SFML website - ht... (by MrHutch)
Getting to grips with VERY basic gravity.
 
Hey I'm a fairly new to this so take it easy please. I've written a very simple program to simple print the gravitational force between two objects but I am ...
[16 replies] Last: You best bet is to use some sort of multimedia library. Drawing this i... (by MrHutch)
by anowis
how to output more than one solution to an expression
 
This is my program to input student ids and a group of quiz scores and calculate the average for each student as well as the highest and lowest average of all s...
[1 reply] : You variables were not initialized. For example variable totalQuizCoun... (by vlad from moscow)
SFML sf::Event question
 
Hey everyone, so I am trying to create a simple little card game program and I'm the type of person that likes everything grouped together neatly. So I'm trying...
[1 reply] : My question is this would something like this work? Is there another ... (by coder777)
help changing this program to include more values
 
so our project is to write a program that takes 3 user input numbers and finds the median using if then else statements which I did and have attached the code f...
[16 replies] Last: gotcha thank you. (by adam32885)
florin sign (ƒ) usage?
 
Following along in my book and they had me adjust a functioning program I wrote by using this florin sign (ƒ) however, copying straight from the book I am unab...
[6 replies] Last: @ Stewbond I was thinking just this: if( test < 30) { } It is ... (by TheIdeasMan)
by ocdjg
Pointers help
 
Hi fellow programmers. Here is my program thus far... #include "Resistor.h" #include <iostream> #include <iomanip> #include <Windows.h> #include <math.h> usi...
[9 replies] Last: Thank you guys for the help thus far... After all your help here is my... (by ocdjg)
Help with logic
 
I have been trying to figure this out and have been unsuccessful. I was wondering if anyone could help me understand this. "Why does the following code dis...
[1 reply] : It seems an object of type Y must be destroyed before the statement r... (by Chervil)
Tips for writing clear/organized code?
 
I have a friend who's started learning c++ also, and he commented that it's really hard for him to read my code. I have been studying a bit longer than he has, ...
[4 replies] Last: I like to do this: if (condition) { //do stuff } for (init ; en... (by TheIdeasMan)
key press
 
I'm working on a program that requires the letter 't' to finish the program. How is that accomplished?
[1 reply] : @PhillysCream char input = ' '; // etc.... program while(input !='... (by whitenite1)
by ynzon
help please, cstrings
 
hello, new to programming, doing an assignment where it is asking the user to enter names which are then written to a file. the range of names is 7-25. the prog...
[11 replies] Last: should i use a getline or should the names be ranked before t... (by Chervil)
GLEW Libraries
 
Hey, I don't know how to incorporate the GLEW libraries to codeblocks. I downloaded the glew-1.9.0 folder and it's files, but I don't know where to place them....
[1 reply] : You'll need to place them in the appropriate files in your MinGW file.... (by Austin J)
Number Guessing game with a twist
 
I'm trying to get this to adjust the original range of 1 - 100 to whatever is left after the guess. For example: If I were to guess 20, it should update to "G...
[3 replies] Last: Thanks for the help Jim. I figured out what I was doing wrong. Origi... (by KitanaiMonkey)
February 2013 Pages: 1... 1617181920... 67
  Archived months: [jan2013] [mar2013]

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