Beginners - March 2014 (Page 40)

What do I need to know to make a minigame?
 
Hi. I have learning C++ for a few months now, and I know all the basic procedural stuff and data types, and know the basics of objects. I am just wondering w...
[2 replies] Last: like these? http://www.cprogramming.com/challenge.html http://www.cpl... (by heyyouyesyouiloveyou)
Sets and the Set_intersection Function syntax
 
Hello guys, I have a question about using the set_intersection function in c++. I'm in the process of writing a program that will find the intersections of two ...
[2 replies] Last: Love the reference site, don't know how I missed that, thanks a bunch! (by bookLearnin)
ARRAY SIZE HELP
 
Is there a way to know the number of elements that one array have if you just input the elements without setting an array limit? for example I want to global de...
[3 replies] Last: the reason i wanted to know it because i need to know it is because i ... (by closed account ivDwAqkS)
by Tarkle
Creating Objects from I/O file
 
My goal is to create an object from a string pulled from a text file. Text File Suckers Chocolate Mints JawBreakers Each one of these in the text file ...
[1 reply] : So, I've been doing my research and started to learn polymorphism. I'v... (by Tarkle)
Compound Interest calculation, need help...
 
This s the problem they gave me: Write a function declaration for a function that computes interest on a credit card account balance. The function takes ar...
[2 replies] Last: Best way :) (by Codermik)
Binary
 
I need to convert integer into a binary form, so far I have this code which convert it , but in a reverse order and I cannot reverse it in a right order . PS yo...
[8 replies] Last: That was really stupid; the inner for-loop is a waste of time. #incl... (by JLBorges)
I need help with my formatting
 
Hello Everyone, Thank you for taking the time to help me out with this problem. I am taking my first C++ class and I am struggling a little bit. This is...
[1 reply] : Your problem you're having is the expected output has the first and la... (by Volatile Pulse)
Please explain
 
Please explain this to me, Find the output of the following program: #include<iostream.h> void main() { long Number = 7583241; int First=0, Second=0; do ...
[3 replies] Last: Yeah I corrected those in my Visual Studio and just thought those wer... (by Codermik)
input exception try/catch
 
I am trying to throw an input error exception when a char is input into an int variable but when i test it with ft=a the program runs some kind of infinite loop...
[4 replies] Last: thank you (by mordred2)
Selection Sort
 
I'm trying to sort the numbers in an array from largest to smallest and print it but whenever I run this it does not sort anything at all and I can't figure out...
[no replies]
Cin dot getline problem
 
I'm struggling to get the last function to work correctly. Everytime I engage in option 2 I get a double output of #include<iostream> #include<fstream> #...
[4 replies] Last: I see I have to use cin.ignore(); and cin.clear(); Thank you! (by masschamber)
Vector Help!
 
I wrote a program that goes through a maze. I am now trying to keep a list of the rooms in the order you went through and keep a second list in case you need t...
[4 replies] Last: When I do this, it prints out the same letter, which would be the endi... (by giraffe1234)
I/O with files...
 
I'm a beginner with I/O. My goal is to open a file, perform a math operation and spill the answer into an output file. I did post a thread yesterday but it quic...
[4 replies] Last: I could never figure out how I/O works when dealing with files. I want... (by RealGiganitris)
by Dunder
Keep getting memory leaks
 
Hello everyone! I'm writing this assignment for my project at my school, and I keep getting memory leaks but can't figure out why... I seem to have deleted ever...
[no replies]
need a little help passing class info into a function
 
im trying to change the information in the class within a function. some help would be greatly appreciated #include <iostream> using namespace std; ...
[2 replies] Last: Thank you very much that seemed to work (by morngrym)
sentinel-controlled while loop
 
#include <iostream> using namespace std; int main() { //varible declaration char letter; int counter; cout <<"...
[2 replies] Last: Please use Code Tags as well, It would be a little bit easier to read ... (by elite zero)
by Emy Y
C++ class debug
 
When I try to debug the console terminal pops up and disappears right away. I'm using visual studio c++ 2008. The output I'm getting is : 'greedy1.exe': Loaded...
[5 replies] Last: Thanks for the help,it works fine now.And il keep that in mind next t... (by Emy Y)
Can't find the problem. crosses initialization of 'std::ifstream inFile'
 
I started learning C++ 2 days ago so sry if its messy. As soon as i try to read from a txt file (Line 59) the error: "crosses initialization of 'std::ifstre...
[3 replies] Last: It worked thanks alot guys :)))))))) (by SigmundSeegrass)
Arrays
 
I am having trouble trying to figure out how to get user inputs into an array. I have to get 10 user inputs into the array and I'm trying to use a loop but once...
[1 reply] : Do you mean to check if counter1== 0 (equality), not to assign 0 to co... (by wildblue)
by Frjoe1
While function not stopping
 
My while loop isn't stopping and the function only works some times any suggestions or fixes #include <iostream> #include <windows.h> using namespace std; ...
[4 replies] Last: OMG Thank you feeling so stupid. Well then again I am only thirteen (by Frjoe1)
March 2014 Pages: 1... 3839404142... 79
  Archived months: [feb2014] [apr2014]

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