Beginners - February 2011 (Page 42)

How to get that little window
 
So, whenever I try to comment on someone's post or make my own post, I can't figure out how to get that little window with the line numbers and colored code. P...
[1 reply] : Read this: http://www.cplusplus.com/articles/firedraco1/ (by filipe)
New to C++ - Creating functions
 
Let me just start this off by saying that I am pretty new to c++/ game development. I decided to learn C++ to get an idea of what game development is about to ...
[4 replies] Last: Ok. (sorry if this is wrong). But are you saying that basically a func... (by JeFF216)
Possible statements
 
So, I can use "while" and "if" statements. But I would like to know if there is such a thing as a "when" statement. So, if you choose to reply to this inquiry...
[6 replies] Last: It's like an event callback. (by rocketboy9000)
by OPGNO
"Flow" characteristics of a C++ program
 
I have read the c++ language tutorial up to the end of classes (part 2) and have zero c/c++ programming experience prior. I have understood the tutorial up to t...
[no replies]
try, catch, throw???
 
I already seen this link: http://www.cplusplus.com/doc/tutorial/exceptions/ and it doesn't make a lot of sense to me, since it says "//code here" inst...
[10 replies] Last: int a; if( !cin>>a ) throw 42; You try to read a number. If that fa... (by ne555)
Return to Start
 
Hello, i am new here. I was wondering is there was a way to tell a script to return to the beginning and start everything over again. like this: #includ...
[2 replies] Last: Okay, thank you. :) (by DeeJayParadice)
by Amehd
Loops and Penny Calculation
 
I have a project due friday. I have to type a c++ program that calculate how much a person would earn over a period of time if his or her salary is one penny ...
[7 replies] Last: Or, you could do some more math, and find this solution: #include "s... (by rocketboy9000)
unknown runtime error with classes
 
hello i wrote 2 classes and i can't understand why I cant use the copy constructor of class polynom. class Point { private: double x; double y; ...
[1 reply] : sry for stupid question i found the error ... I didn't create the arra... (by theimmortalbg)
Strange bool behavior
 
I'm trying to use a bool operator to allow the user to choose an action. I wrote this basic program, but if any number other than 1 is entered it runs as if boo...
[2 replies] Last: I input 1 and the program works correctly. Any numerical value other t... (by Dragon5ly)
(newbie) problem with if statement.
 
Trying to calculate exchange rate and the program keeps calculating first if statement even when currencyType != 1. I'm new to programming so I'm sure im overl...
[5 replies] Last: this may sound stupid but sometimes i write it backwards so that mista... (by acorn)
Linker error
 
For some reason, there is an 'undefined refrence to 'calc_Fg()' according to the compiler. The variables are stored in a struct, and when I tested it by comment...
[2 replies] Last: No, it wasn't a member. Just naming the function wrong. It works now. ... (by pwnedu46)
by Cake
Variable Length String Array with Dynamic Memory Allocation
 
Hello - I've mananged to solve most of my issues through internet searches but have hit a wall. I am writing some software to interact with a camera setup w...
[2 replies] Last: My problem is with the Header (line 6). I want it first and foremos... (by Cake)
pictures
 
my question is simple can you put a picture in one of your c++ programs and if you can how?
[14 replies] Last: ok thank you very much everyone :-) i appreciate your patience. (by cainen172)
Prime Number Program
 
Hello everyone. this is my first post here. I am working on a prime number program that will output all primes from 1 to 100,000. I have the program working and...
[12 replies] Last: Better already. :P (by Kyon)
Trying to make my own library
 
Hi guys, I'm trying to make my proper library. So far I only have one class for it: bigint. But I'm also going to add a function for primes etc I searched ...
[16 replies] Last: That has nothing to do with C++ programming anymore. That is your comp... (by hanst99)
User can only input digits?
 
Hello, I'm trying to figure out what to use for "accountn" so that the user can only input a number. If they ended up entering a letter instead, they would get ...
[9 replies] Last: Uh kaz: Yes there is a major flaw with your code. The goto statement. ... (by hanst99)
VS 2010 treating code differently to Dev C++
 
Hi there, I recently made a program using Dev C++ and it would compile and run just as I wanted it. I then imported the .cpp files into Visual Studio 2010 Ultim...
[5 replies] Last: The devc++ isn't more flexible, you can do the same things in standard... (by hanst99)
single char array
 
hi, umm i just wanna know if theres a way to create a single char array, an array wc stores chars like 'a' instead of ''a''. It is because i need to get an sing...
[1 reply] : Yes, just use a char array. That's all they are: char array ; ... (by Disch)
by pshnn
simple poker card game in object oriented project.
 
The program is to simulate a simple version of a poker game. The team is required to create a class for the Card with at least the following attributes: - Sui...
[9 replies] Last: There won't be many people who will be doing such things, try just pos... (by Kyon)
Permutation
 
This is my code but the thing is that I need to create a void inside the class that already reads the permutation and performs the operations...instead of havin...
[6 replies] Last: for crearly defining my problem I am having... (by otomotiv)
February 2011 Pages: 1... 40414243
  Archived months: [jan2011] [mar2011]

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