Beginners - October 2014 (Page 49)

by Jocke
Problem with my code [Help Requested]
Hello! I'm experiencing an issue with my code below. What happens, is that after the user enter an account name, all the cout are being ran, and then the p...
Oct 11, 2014 at 2:14pm
[3 replies] Last: You're very welcome I'm happy to help :) (by megatron 0)
Dynamic Array
Hello, I'm trying to create a dynamic array of random numbers from 1 to c. I input b&c into main, but cut this down to make it easier to read. I'm trying to use...
Oct 11, 2014 at 1:27pm
[6 replies] Last: Yeah, I might be missing something but I can't see the point of creati... (by closed account 48T7M4Gy)
Error C4430 Missing Type Specifier
testbed.h(10): error C2143: syntax error : missing ';' before '*' testbed.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support...
Oct 11, 2014 at 12:37pm
[4 replies] Last: Hi, If SelectionAlgorithm is a class, then it should have its decl... (by TheIdeasMan)
How to write a better specification for a class?
Hey guys, I don't see people do it so much on here, but I'm sure many of you have done it at least a few times and I know it can be done better than this. ...
Oct 11, 2014 at 11:30am
[1 reply] : It is fine, but I suggest to look up Doxygen. It is useful tool for au... (by MiiNiPaa)
Help with re-running a simple programme
Hi, could someone tell me what is wrong here? Everything works, except each answer has the last answer added onto it. The programme is supposed to add the squar...
Oct 11, 2014 at 10:41am
[3 replies] Last: EDIT: sorry, I forgot to put the last line in the function. Thanks kin... (by johnsmith111)
Java Forum
Hello everyone. I'm a huge fan of Cplusplus.com I have learned alot from here. But now a days I'm learning Java. So I want to know that is there any website ...
Oct 11, 2014 at 9:55am
[1 reply] : First link I could find: http://www.javaprogrammingforums.com/ Good l... (by megatron 0)
by skkwan
Please help to correct my mistake !
Please help me to correct my mistake! i don't really know to use class, but i tried, appreciate that u correct my mistake. Thanks ! #include <iostream>...
Oct 11, 2014 at 9:21am
[6 replies] Last: Hi guys, i made some change on my code, but it's still have problem. F... (by skkwan)
Creating a frequency distribution
Hello, my homework assignment has me create a program that finds all numbers in an array that show up exactly 5 times. I am trying to solve this issue by mak...
Oct 11, 2014 at 9:17am
[6 replies] Last: Plus a little formatting #include <iostream> using namespace std; ... (by Duthomhas)
Array and parameters
hello everyone... i'm trying to call my cumputation in PRELIM ,MIDTERM , FINAL in my code but I don't know if there's something in my parameters.. it's just sh...
Oct 11, 2014 at 9:00am
[2 replies] Last: thank you so much.... my code is better now... (by Abenoja)
Why cannot I find a number by regular expression?
Hello Why cannot I find a number by regular expression? #include <regex> #include <string> #include <iostream> int main() { std::string st...
Oct 11, 2014 at 7:26am
[2 replies] Last: Thank you very much! It works now! #include <regex> #include <stri... (by Observer)
scanf is not storing inputed numbers
Hello! I wrote a looping program that will calculate resistance based on color input. Lets say I run it the first time and get a resistance value calculated,...
Oct 11, 2014 at 6:38am
[7 replies] Last: Hi, Just some small matters of style: When using scanf, always check... (by TheIdeasMan)
Lowest and Highest value
Hi guys, in the program that I have, the user has entered 4 different numbers. I am looking for something that will give me what the highest and lowest value is...
Oct 11, 2014 at 5:20am
[2 replies] Last: You can store the input into an array, and sort the array. (by liuyang)
by Myna
Create a lottery program
Write a program that will produce 5 unique random numbers between 1 and 50, inclusive. You must prevent duplicate numbers in each run, so figure out how to d...
Oct 11, 2014 at 4:41am
[19 replies] Last: The idea is to make an array of all possible choices [1, 2, 3, 4, ...... (by liuyang)
New to the boards and to C++
currently working on a problem that I just do not understand. so far C++ has been smooth, until I hit the loop part. I am just not getting it. Question: ...
Oct 11, 2014 at 4:02am
[3 replies] Last: this worked when I added the line "using namespace std;" the cout fu... (by closed account 1CfG1hU5)
Parking Program
I have a program where a parking garage charges 6 dollars for 3 hours. for extra hours, they charge an extra 2.50. for a 24 hour period they charge 35 dollars. ...
Oct 11, 2014 at 3:32am
[1 reply] : Your problem probably lie int his line: else if (hOurs >= 3) You hav... (by TheKingOfTyrants)
Compiler error
hey this is a code written by one of my friend.It has a lot of errors and i am yet to debug them..however there is one type of error that i do not understand. ...
Oct 11, 2014 at 3:30am
[2 replies] Last: that worked....thank you.. (by sohom154)
counter with specific if statement
Hello Everyone, How can I make an if statement to do something when 1 has been added to that integer variable. I'm using some variables as my game's win counte...
Oct 11, 2014 at 2:16am
[3 replies] Last: Something like if(prev_tie + 1 == tie) ? (by Zhuge)
C++ T/F questions
Questions : answer True (T) or False (F) #1: An identifier can be any sequence of digits, letters, and the underscore character. #2: You can use the functio...
Oct 11, 2014 at 12:21am
[1 reply] : What are your guesses and why do you think them? (by Ganado)
by davez
Problem with 0
Good day guys how can i display the 0 when i enter a number like 00005? #include <iostream> using namespace std; int main() { int num; cin>>num;//0...
Oct 10, 2014 at 10:01pm
[2 replies] Last: As there is no difference between 5 and 00006 cars LOL. Only for use... (by Duthomhas)
Get rid of empty line in QTreeWidget
I have created a QTreeWidget and filled it. When i delete an item from the tree,an empty line moves down to the end of the tree. When i then add to the tree...
Oct 10, 2014 at 9:39pm
[no replies]
October 2014 Pages: 1... 4748495051... 70
  Archived months: [sep2014] [nov2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.