Beginners - October 2014 (Page 31)

Problem with my programming book
 
Hello, I'm studying C++ with the book : programming priciples and practice using C++, my problem is that the exercises requires to use tools not shown yet by th...
[7 replies] Last: This is the easiest book for beginners: https://drive.google.com/file/... (by anup30)
store low hex and high hex in char array
 
Hi, I have a data. i want to make 1000 packet of it, every packet has an id. Packet id is in hex and in two parts, hex_high & hex_low and need to store at fixed...
[11 replies] Last: ab = 1010 1011 = - 85 //↑sign bit cd = 1100 1101 = - 51 //↑... (by MiiNiPaa)
by cuni10
Problem with pointer array
 
I am writing two classes named 'Set' and 'Element' and I want to write a method that makes Set store an object of Element. Here is my code: main.cpp #...
[2 replies] Last: Thank you very much! I spent many days trying to figure this out. (by cuni10)
Need to stop the loop at a certain point
 
I have an Array where 10 people eats pancakes. I want to stop the input when the last person have eaten but it needs Another input to stop the loop and I cant f...
[3 replies] Last: Try moving the cin >> input on line 18 to the first line inside the ... (by Alrededor)
by akai09
please help with yes or no program
 
hey guys i need help with my code. i need help with yes or no question. here is my code. what i need help is only 'y' or 'n' should work. when i enter 'y' than...
[2 replies] Last: #include <iostream> using namespace std; int main() { int curren... (by akai09)
Not reading 0x20!
 
Hello all I'm reading a binary file and some of the value are incorrect. Please help! Here's the relevant code #include <iostream> #include <fstream>...
[2 replies] Last: Ahh thank you! It's working fine now. It's small quirks like that, tha... (by Angeljruiz)
c++ rando number generator help
 
Write your question here. hello , i am a beginner to c++ and new to this forum and i need help with this code. i am trying to make a random number generator wit...
[2 replies] Last: thank you @shadowCODE it worked perfectly . it would be good if i coul... (by xxgixxx)
by St4be
Functions inside while loop; random outputs?
 
Hi. I have this project for school. I thought I had the idea of functions understood but the responses I'm getting from the console seem completely random. It's...
[5 replies] Last: Ok, I got it done. Thanks alot guys for your help. I will probably be ... (by St4be)
by lmm131
Binary i/o vs Stream i/o
 
What is the difference between binary i/o and stream i/o?
[1 reply] : Within the context of C++ (and C, for that matter), binary I/O is a us... (by Cubbi)
My BlackJack Program
 
Hello everyone! Check out my cool little blackjack game I programmed myself :) Please comment your feedback and changes I should make... Thank you! P.S. Anyone ...
[2 replies] Last: Any idea how I can implement a double down feature? (by coltehrman)
Does where I put the * symbol matter?
 
While watching C++ tutorials I've noticed that when using pointers or references the same people will use multiple different manners of declaring pointers/refer...
[11 replies] Last: I too consider int * x, y; problem a C language flaw. Even more, i ... (by MiiNiPaa)
by Ganado
Conditional member initialization
 
Is there a way to still effectively use the member initialization list when there's if-statements inside your constructor? I am doubtful but thought I'd ask any...
[3 replies] Last: you can use the ternary operator like so class Thing { public: ... (by jaded7)
Multiple conditions in while loop for char variable.
 
I have a while loop whose purpose is to check if the variable letter is equal to some letters, such as in, #include <iostream> #include <iomanip> using namsp...
[4 replies] Last: This might help clear things up for you. http://stackoverflow.com/que... (by mobotus)
Could I improve this code?
 
Could I improve this code with references or pointers? Is it even possible to use reference or pointer in this case? int humanTurn(const char table , cha...
[8 replies] Last: With all the talk about which passing method is faster and whatnot, it... (by Esslercuffi)
by HelenI
Round Up..Help me!!
 
Hey guys... I'm trying to solve an exercise that i have to round up a number and give the error too. I'm allowed to round up the decimal digit or the hundred...
[1 reply] : http://www.cplusplus.com/forum/beginner/3600/ (by shadowCODE)
First Tic Tac Toe
 
I am attempting to write a Tic Tac Toe program and this is my starting code. Any pointer on how to get this going? I can not get the function getGameState to w...
[9 replies] Last: Any time you find yourself writing similar code over and and over, ste... (by dhayden)
Wind Speed Flight Simulator Assignment Help.
 
Hi guys, a beginner here. I'm supposed to make a program by midnight and I am stuck on this one part. Basically, I need to, "Generate a table that contains...
[12 replies] Last: Yup, that actually worked! I had to turn in my assignment with the ti... (by shindosu)
Dynamically sized array of struct
 
Hi there, I am VERY new to C++ and had a question on how to make an array of structures where the size is determined by user input. I've been reading around an...
[5 replies] Last: And it works! Thank you so much. (by banksters)
Data with Class
 
After "test.add1();" in main, the value of a is 4, but I hope it to be 5 by using class Interger. Please help me ! class Interger{ private: int data...
[2 replies] Last: In case it still isn't clear... In main you make an int called a . Y... (by Ganado)
help with if statement/loop
 
I am doing this RNG code for a project, I have it almost all the way finished, but am having an issue with one last thing. I need to know how to put the fo...
[4 replies] Last: You are correct. Anyway, here's a link to something that does in fact... (by Renthalkx97)
October 2014 Pages: 1... 2930313233... 70
  Archived months: [sep2014] [nov2014]

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