Beginners - April 2016 (Page 37)

TIC TAC TOE. HELP!!
 
When you choose a number to mark, it always prints out that someone is the winner. Even if it is the first move of the game. However, the game does not end unti...
[3 replies] Last: When you choose a number to mark, it always prints out that someone ... (by Moschops)
Reading Different Commands in Order from Single String
 
NOTE: The solution cannot be arrays. It is apparently supposed to only include string operators/functions (such as find()) and counter-controlled/sentinel-cont...
[3 replies] Last: What I'm suggesting will work, you just have to fill in the rest of th... (by dhayden)
by m0bb1n
mac address generator help!
 
Hello, I am trying to make an executable that will randomize MAC addresses. I have been stuck on making the correct format with the colons. I want it to be...
[3 replies] Last: Ahh, fun! #include <iostream> #include <iomanip> #include <random> #i... (by keskiverto)
Function help
 
Hi I am having a lot of trouble with this code. The object is: In shopping for a new house, you must consider several factors. In this problem the initial cos...
[2 replies] Last: At line 27, calcTax is the name of a function, not a variable. You ca... (by MikeyBoy)
Ch4.Q1.Drill
 
Please explain how I can filter the "|" character value and terminate. I think the rest of the code is right, but filter a non int type such as '|' makes no sen...
[2 replies] Last: You could have continued discussion in the previous thread: http://www... (by keskiverto)
For all students
 
Hi students, recently I found a site which explains all things about IT: http://www.tutorialspoint.com/index.htm happy codin' ^^
[no replies]
by ratfus
Weird program crash
 
Why does my code keep crashing, when I enter a character or any number greater than 33x33? Shouldn't the NOT cmd (!) prevent it from happening; it's very stran...
[3 replies] Last: Hi, I think you have missed the point with the first warning: use &&... (by TheIdeasMan)
Loop Help -- Averaging numbers
 
Hey everyone. I've got this program here that averages student test scores. Right now it only calculates average score per student. I want it to do that AND cal...
[1 reply] : just like you would on paper. Everytime you get a average for a studen... (by SamuelAdams)
by Nyapp
Is this a good tutorial?
 
http://www.greenteapress.com/thinkcpp/ I want to start reading the above book alongside the website I use to learn C++ (www.learncpp.com). My main concern is i...
[1 reply] : what works for you wont' work for every one else and vise versa. Read ... (by SamuelAdams)
by Nyapp
what is a runtime library
 
What is the difference between the C++ Standard Library and the C++ Standard Runtime Library?
[no replies]
uninitialized local variable error
 
Hey guys im having 2 errors within my code and im not sure what im doing wrong. i get these 2 errors: warning C4700: uninitialized local variable 'meters' use...
[8 replies] Last: You're the man chicofeo! understood what you said at first and fixed m... (by undecked0)
How to read a file line by line without the getline function? (1,2)
 
Hello, so I am trying to read a .txt file with this information: Ann Perkins 217 Lowell Drive Pawnee IN 47408 3 4.2 Ron Swanson 3657 White Bridge R...
[22 replies] Last: Are all of your values in the getline function? whenever I had it as:... (by cpchang10491)
Linked List Function Implementations
 
I tried to create an insert function to add an item, a remove function to remove one item, and a remove all function to remove all nodes. I am not sure how to g...
[no replies]
Encryption program/char arrays
 
I'm not sure why I keep getting garbage values when I run the program. My prompt states: "The program should read a line of text into a c-string (array of char...
[2 replies] Last: char evens ; char odds ; These are what you output, and they are ... (by Moschops)
Help with Simple Calculator
 
I'm supposed to check for dividing by 0, but every time I try to get it to say error can't divide by 0, it just crashes again it's super simple. about the 3r...
[1 reply] : This code doesn't compile, so I don't know what code you're actually u... (by Moschops)
How to erase element from one vector and pass this erased value to a new vector
 
hi, I am trying to figure out how to eliminate one element in one vector and then pass this value to another vector. In the assignment, there are 5 players whe...
[6 replies] Last: Thanks man for your response again. The times cards are passed are ind... (by nikgun1984)
TIC TAC TOE. HELP!!!
 
I am new to c++ and i just started working on a tic tac toe game.I put the playerturn variable before my primary loop but it still only inputs the 'X' character...
[3 replies] Last: First of all ,before your main do/while loop , you have a declared var... (by jj09786)
Drill #1 Chapter 4 (Programming Principles..)
 
*Below is a an exercise that I am practicing on. Does my code make sense? 1. Write a program that consists of a while-loop that (each time around the loop) r...
[3 replies] Last: Read: http://www.cplusplus.com/reference/istream/istream/operator%3E%3... (by keskiverto)
by Reis
C++ Composition & confusion
 
Hey there, When doing some composition tutorials, I came across the following: class People { public: People(Birthday &bo) : dateOfBirth(bo)...
[3 replies] Last: Thanks, I understand now! (by Reis)
flashing barre
 
when I start my program, it compile without any problem but it schould teste all the possibities from 0000 to 9999 with a counter. When I ask to show the posibi...
[no replies]
April 2016 Pages: 1... 3536373839... 43
  Archived months: [mar2016] [may2016]

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