Beginners - November 2013 (Page 62)

by wisner
listing classes
 
how do I go through the classes created? example: every time I run this line: Module * mod = new Module (); I create a new class .. I wonder how do ...
[3 replies] Last: Tranks giblit :) (by wisner)
How To make a tic-tat-toe game?
 
I need help making a tic-tat-toe game.
[4 replies] Last: Sure, a good way to keep statistics for a game of tic-tac-toe is to us... (by CplusplusAcolyte)
Display all values in a vector?/If statements negated
 
I'm having a bit of trouble here on how to display all values in a vector without going one at a time. Also, my if statements are being canceled out for some r...
[1 reply] : Only one if/else if block can be executed. If condition is met in one ... (by JockX)
passing an array to a header
 
I have been reading about headers but i am not understanding it when it comes to arrays. Of course i am doing it wrong but what is the best way or am i just ...
[2 replies] Last: thank you i got it now i have a new problem gonna work on it before i ... (by tony1420)
How to read string character by character?
 
I have a problem where I need to take a string input by the user and convert it into a series of words used to spell it out phonetically. For example: Enter ...
[3 replies] Last: Well it seems to have worked, having other unrelated (I think) problem... (by WillX47)
by dday9
Parse double
 
I'm currently trying to convert a string to a double. Right now all I'm doing is: double f; cin >> f; which is great... if the user enters in a doubl...
[2 replies] Last: I found a pretty sweet example online after searching stringstream and... (by dday9)
by Nefri
Check string, sum of bin
 
Hello, im beginner and i have problem with string and sum of two binary number in string. I need to change string2(retez2), when user input 2 bin numbers like:...
[12 replies] Last: You're welcome, glad you are making progress. In my code I used stri... (by Chervil)
Execute function if boolean is false for a certain time
 
Hello, I've searched this topic and all I've found is pages on the sleep() function. Basically I want my program to execute a function after a Boolean expressi...
[4 replies] Last: Thank you so much!! I can see how this works better. (by InitialD)
trouble converting code to class
 
i was trying to convert main2() 's example code to classes. However i am not sure why i am having trouble creating window in the class? #include <SFML/Window.h...
[4 replies] Last: i didnt know that you had to initialize it in the constructor and decl... (by metulburr)
C++ program help
 
Hello. I am very new to c++ and needed help with a code for my class. Here is the scenario. You are given an input file (say Lab8_P1_InputFile.txt) with th...
[4 replies] Last: @Toggy11 It's not a windows only thing. I believe some C++ standard li... (by Albatross)
For Loop if statment
 
What I am trying to get done is use the if statement in the for loop to test both of the arrays and see if they are equal to zero. I tried doing an if statement...
[1 reply] : Why does testZero take an int...? Furthermore, you probably want it to... (by Albatross)
Array counting letters
 
I need my array to count the number of letters in the file that the project opens. Then how would I go about printing that letter to see the total amount of tha...
[no replies]
by hilft
exception question
 
I do not understand why the output of my code is : Logic error: 0 Logic error: 1 Exception: Unknown exception Exception: 2 Something bad happened What I...
[2 replies] Last: oh I understand, I read about that in the previous chapter of my book ... (by hilft)
while loop w/ switch case defaults sends me to space
 
Hello everyone. I am new to this forum and this is my first post. (I know, redundant introduction.) I'm a noob to code in general, this is week 4 of class for ...
[1 reply] : Sorry for the waste of forum space. I just changed the if statement be... (by kustomphreak)
by blurz
Letter and Word Project Output Error
 
Hello, I was just finishing up a project and though it compiled I seem to be getting a logic error. What I am trying to do is write something similar to the wc ...
[2 replies] Last: I am having the same exact problem. Would you post the loop that you u... (by NewbieCode)
possible problem with pointers
 
In this code I have to check whether the number is triangle, square, pentagonal etc. (see project euler 61 problem). My function checks if a number is one of ...
[2 replies] Last: Dem nests.... (by ResidentBiscuit)
by sinash
while/if
 
this program takes 3 student names and some result ( 1 for passed, 2 for failed ) now I want the program to print number of passed and failed students... ...
[2 replies] Last: #include <iostream> #include <cmath> using namespace std; int ... (by JustinPLe)
Function not working...
 
According to the compiler, my variable is being used without being initialized. I've gone over my notes, but I can't seem to determine what the problem is. An...
[5 replies] Last: No problem :) (by MikeyBoy)
by Ax7
How come this does not work
 
Hi I tired posting yesterday but to no avail. This is a really simple code, but can someone help me understand why the cout in the first while loop is not being...
[11 replies] Last: Oh that's cool, thanks for giving it a shot sherre02. I'm just learnin... (by Ax7)
Expected unqualified-id
 
I cannot get this code to compile. Can someone please tell me what is wrong with it? Xcode says that the problem is an "Expected unqualified-id". #include <...
[3 replies] Last: Thanks very much. (by ldelsignore)
November 2013 Pages: 1... 6061626364... 80
  Archived months: [oct2013] [dec2013]

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