Beginners - February 2016 (Page 10)

by KTlady
Not using repeating numbers
 
So I'm creating a code that requires the user to enter a password it has to be 6 digits and not have preceding zeros, the numbers have to be unique as well. I h...
[5 replies] Last: 1. Read the code as a string (not a number). 2. Check that the first c... (by Duthomhas)
While Loop
 
Okay, so im trying to get my code so that it would keep asking for numbers with the while loop until I input a negative number. Then it will output the lowest o...
[1 reply] : Let's look at lines 21 - 27: if (var > 0) { bool first = f... (by xismn)
help with errors
 
help with errors #ifndef FRACTIONTYPE_H #define FRACTIONTYPE_H #include <iostream> using namespace std; class fractionType { friend ostream& o...
[3 replies] Last: Help me for getting correct answere. in this program i want to get ans... (by ibrahim069)
Class Object Value to String
 
Hi all, super noobish question here. My instructions say I have to take the values of the objects below and convert them to a string in the method "string toStr...
[5 replies] Last: You all are amazing!Thank you so much! It's displaying now :) Now I'm... (by itsbenbroughton)
by nam13g
Help with Do-while Conditions and Sorting
 
Hello all, the program I'm attempting to make a program that asks users to enter up to 100 numerical inputs, when a negative number is entered, the loop will en...
[4 replies] Last: Thank you Chervil. I have been focusing on the actual loop itself for ... (by nam13g)
Using characters to make selections
 
I am trying to figure out how to use letters to make MENU selections instead of numbers. Also, I cannot figure out how to keep the program running indefinitely,...
[no replies]
by ecr32
Defining Matrices with a function
 
For a university assignment I was asked to define 3 matrices for use in rotation matrices using functions, I'm unsure what that means so I'll post the question....
[no replies]
by Lucid1
while (is.get(c)) File not opening, console hangs
 
I am trying to read in a file containing 0's & 1's, 64 at a time to convert into a decimal. After executing my code, cout shows no values read and my console h...
[no replies]
Call .cpp files from a .cpp file
 
Can you call another .cpp file be called in another .cpp file I want to choose Single player or Multiplayer but not have a crap ton of code between the if el...
[3 replies] Last: You could code the multiplayer and singleplayer differently. then make... (by jgg2002)
Overloaded Operator and arguments passed by reference
 
Just spent about 12 hours sorting a huge program out for an assignment. One of the things that held me up was getting a runtime error whenever the arguments we...
[4 replies] Last: Also at line 11 of your original post, what happens if poly1.terms = 3... (by dhayden)
c++ writing individual characters from input to char array
 
I want to take a sentence or word and place the individual characters into an array of chars. i want to do this in c++ but i don't know how to divide the input...
[1 reply] : std::string is basically a container for individual chars. You can acc... (by Computergeek01)
help
 
Im trying to make an system like this Points are spaces ...X ..XXX .XXXXX ..XXX ...X #include <iostream> using namespace std; int main() { cout << "Ente...
[2 replies] Last: Start with a function that prints character ch out n times: void repe... (by dhayden)
by Sid123
Shortcut to brute force copy paste?
 
Hi, this is our first time creating a GUI as we have previously only used console applications. We have a lot of push buttons(81), and would like to read the te...
[2 replies] Last: Why so impatient? Perhaps you could add all those buttons to a QButt... (by keskiverto)
reading names
 
so i have to write a small text filter that filters through a file, b.list, and outputs each name (first and last) of each actor. The b.list file contains movie...
[3 replies] Last: Look at lines 8 and 9 of your first example (find and substr). Just ne... (by Chervil)
by Akrone
Problem with the do...while loop
 
Hey ! I want to do a loop that is not closed if the user don't type 1 or 2... This is my code : #include <iostream>; using namespace std; int m...
[6 replies] Last: Ok! Thanks for your time AbstactionAnon :) (by Akrone)
A question about console, games and begginer guides
 
So i want do make games in c++ (for now), but everywhere i go people tell me its a waste of time making games in console. My question is why? it's the most basi...
[4 replies] Last: My opinion, for what it's worth, this, http://www.amazon.com/Beginning... (by mgoetschius)
by csell
vector subscript out of range
 
I'm stuck on this error and cannot seem to find a way to fix it, i have narrowed where the error is coming from to the sortVec function, any help? #include <i...
[2 replies] Last: Thank you so much, its amazing how i could get stuck on one letter for... (by csell)
If statements with string values?
 
I'm trying to make a program where if the user types "Yes" a certain statement appears , and else another statement, but I don't get how to do it? I can't use b...
[3 replies] Last: = is the assignment operator. == is the equality operator. http://ww... (by AbstractionAnon)
by brad97
Help With Monthly Vehicle Expense Program
 
I'm trying to create a program that takes an input file that contains miles driven for the year, car miles per gallon, cost of gas per gallon, amount spent on ...
[2 replies] Last: Line 50: gasCostPerMonth is uninitialized. Line 56: You call Month... (by AbstractionAnon)
edited my program, still have 3 small errors i can't find
 
program2.cpp: In member function `void container::allocate()': program2.cpp:125: error: invalid types `int*[int*]' for array subscript program2.cpp: In member...
[8 replies] Last: I guess that you think too complicated: void container::allocate() { ... (by coder777)
February 2016 Pages: 1... 89101112... 46
  Archived months: [jan2016] [mar2016]

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