Beginners - October 2012 (Page 18)

Sond input to keystrokes
 
Hello people. I have never worked in C++, but have an A from just the "C" language. I have a goal that I would like to achieve. That goal is to basicly use m...
[7 replies] Last: Please someone help me! I have a dead line, and it ends at 11.11.2012.... (by Kaj Vas Briga)
problem with fstream
 
Hey guys. So I am trying to make a simple password diary program. The program will open password.txt and if there is no password written, he will ask for one a...
[3 replies] Last: Ok, That was the simple theory. Now things get more interesting. Ther... (by Chervil)
loops
 
Hi there i need help writing a program which converts numbers 1-10 to roman numerals but if any other integer is entered the program will loop back to the main ...
[1 reply] : You need a do { }while(condition) Loop (by pogrady)
Problem with strings!
 
I have this code and whenever I enter a name that is a single word, everything works correctly. However! Whenever I enter a first and last name, e.g. "Joe Blo...
[2 replies] Last: Ah thanks! (by xudhinao)
Reading a file and storing into its respective variables
 
Hi all, I have input file which contains a transaction details. Each line have 5 data, date,code,activity,shares,price for example: 24/12/2010,ABC,BUY,40,1...
[4 replies] Last: thanks jlb. thats look better choice (by vichu8888)
Explicit value constructor problem
 
I am having an issue with my explicit value constructor. It won't let me input items from a file to the an array in it. I am getting this error " error C2679: b...
[2 replies] Last: The problem is exactly what it says. You're trying to use the operator... (by Moschops)
by ab123
Do I need a copy constructor or = operator overloading?
 
I have a constructor something like this: Foo::Foo(Bar* bar, int a) //Foo takes a reference of type Bar { } I need to use 'bar' object in a member f...
[1 reply] : You're asking two things here. By default, both copy-constructor and ... (by closed account zb0S216C)
by rd3
Visual C++ Express 2010
 
Hi I am interested in programming. On the code side of things I am perfectly happy: I have a very small amount of experience with Small Basic and I am willing t...
[12 replies] Last: You type g++, but want to use Microsoft compiler ??????????????????? (by modoran)
by tflipz
Nested Looping Program
 
any help given is MUCH APPRECIATED! (code below) Write a program that tests an ISBN to see if it is valid. a. For an ISBN number to be valid...
[2 replies] Last: Thanks vichu88 it worked! (by tflipz)
Use this Array in this program
 
How would I switch this program around so it would take this array instead of asking for the teams to enter into the tournament below? ARRAY string = {"Texa...
[2 replies] Last: Like so: #include <fstream> #include <iostream> #include <string> #inc... (by coder777)
by dcftci
generating more than one random numbers
 
hi I'm trying to generate two different random numbers in the same function but it only generates one and assigns the same number to each different variable. h...
[3 replies] Last: int array ; for (int x=0; x<100; x++) { array = rand(); } ... (by Moschops)
stringstream doing funny things in for loop (using SFML)
 
Hi everyone, I'm getting funny results using stringstream within a for loop. I have 2 for loops looping through a 2D vector of Tiles (I'm making a tile en...
[6 replies] Last: Glad to help! One last thing: If you could mark this as solved, that ... (by kooth)
For loop with multiplication table. not iterating properly
 
i want to write a multiplication table that out put in the following format 1 x 1 = 1 1 x 2 = 2 ... 9 x 9 = 81 below is what i have written so far but its ...
[3 replies] Last: thanks very much Peter87 .& TheIdeasMan. that was so stupid of me not ... (by BridgesBenghazi)
Could somebody help me?
 
Problem: Write a c++ program to calcualte the surface area, volume, or "girth + depth" of a box: the formulas are as follows; volume = LWD (lengthxwidthxde...
[no replies]
Separate files in program
 
Hi Guys I have am creating a C++ program for uni, and we have been asked to design a cinema system. Is there away that i can make different files for each pa...
[3 replies] Last: On the command line, it would look like: g++ FilmTimes.cpp bookings.... (by Moschops)
Help With Reversing from a Text File
 
I am supposed to input a file, store it into a vector, count how many numbers were stored, and then output the numbers in reverse order. The text file consists ...
[2 replies] Last: This makes perfect sense! Thank you so much! (by closed account LNAM4iN6)
Why isn't this working?!
 
I'm doing an assignment for a game program I'm writing. I have three files: Weapon.h Weapon.cpp and assignment10.cpp I've put them altogether and made a m...
[10 replies] Last: In function 'Weapon w1 (std::string, int, int)': ¿? Show your updat... (by ne555)
functions
 
#include <iostream> #include <cmath> using namespace std; bool function(int n); int main () { int x; cout<<"Please enter a number"<<endl; cin>>x; ...
[no replies]
Value inside pointer changes
 
Hi, I'm using vs2010 and debugging this piece of code:. void InsertAndShift(Node* pInto, const K& pKey, const V& pValue, const int& Idx) { ...
[8 replies] Last: Hi cire, That's exactly what was happening. Thanks a lot! (by xaviergxf)
Little Help
 
Hi, I would really appreciate if someone could help me understand some code here: Any kind of suggestions will be much appreciated. 1. const tunP...
[1 reply] : The first set is a nice way of writing numbers in which only a single ... (by Moschops)
October 2012 Pages: 1... 1617181920... 84
  Archived months: [sep2012] [nov2012]

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