Beginners - June 2015 (Page 5)

wages calculator- C++
 
Task: Wage Calculation Employees working for XX Company are grouped into 2 categories, Management and Floor Workers. Normal working hours are 40 hours p...
[4 replies] Last: I HAVE DONE IT [/ #include <iostream> #include <stdlib.h> us... (by avinsnarayan)
how to automatically declare a variable in a loop without having to manually do it
 
I am using a menu for the user that uses the numbers 1 and 0 to either enter a name or end the program. I am trying to store a person's name into the a string c...
[7 replies] Last: > Ok see that's the confusing part, arrays only with work characters i... (by JLBorges)
Help Please.....
 
My Program is supposed output recommended calorie Intake if Over or Underweight, works fine if overweight but the calorie intake is way to low for someone under...
[3 replies] Last: Im not seeing what im missing with in the code i was given these formu... (by Jamie Workman)
Ternary Operators
 
I'm using Microsoft Visual Studio as my IDE, and I have this build error from my compiler saying that the max is undeclared. However, in my textbook they just d...
[2 replies] Last: Okay, thanks Shawn Lau. (by GreenTea1984)
Beginning of a blackjack game
 
This is the beginning of a blackjack game. The very beginning. All it does is create a dealing shoe,fills it, outputs that, shuffles the shoe, outputs that, ref...
[14 replies] Last: Lines 8-18: Consider using enums instead of defines. That's a good ... (by shawnlau)
by Kalist
How to learn c++ libraries?
 
Am I the only one that finds it extremely boring watching youtube tutorials on how to code? I personally find it more satisfactory and fun to acquire the knowle...
[2 replies] Last: Just stick to whatever level you are capable of. If you want to do adv... (by CodeWriter)
Array Count
 
How do I determine the number of elements in an array and how do I initialize double* jack_high if necessary? // C20.cpp #include "std_lib_facilities.h" do...
[2 replies] Last: Thank you very much MiiNiPaa. The coding is an assignment to learn ab... (by phztfte1)
Good book to start C++ in Visual Studio
 
Hey there, I wanted to know if Ivor Horton's Beginning Visual C++ 2013 (Wrox Beginning Guides) is a good book to start learning c++ in visual studio. I have nev...
[3 replies] Last: Find this: https://thefinancialengineer.net/wp-content/uploads/2015/0... (by shawnlau)
Pi estimation problem
 
Write your question here. //Mathematician Gottfried Wilhelm Leibnitz wrote this equation to estimate pi, pi = sqrt(12)*(1-(1/(3*3)+(1/(5*3^2)-(1/(7*3^3))+G , w...
[3 replies] Last: You seem to be closing all of your loops when they should not be close... (by giblit)
Code semantics
 
I'm just curious which way of writing this code looks better to you. It's a simple function to determine if a string ends in ".txt", and I rewrote the function ...
[3 replies] Last: bool isTxt(string fileName) { boost::path p(fileName); return... (by MiiNiPaa)
Reading txt file,convert values to array, select certain values to sum
 
Write your question here. How can I get C++ place values from a txt file to a 2X8 array with the & being text values and the rest numerical. txt files lo...
[1 reply] : I am a beginner so this isn't propably the best way but I would do som... (by progleo)
missing character when reading from a text file
 
Hello everyone, part of my program is supposed to read from a text file into two arrays. Text file looks like this: CD334455 U 100 BC223344 U 10 AB112233 A 1...
[4 replies] Last: Thank you everyone for your response. These smaller issues seem to mak... (by jpanther)
If-Else Statement not working correctly
 
Hello So recently I got back into programming with C++ in Visual Studio 2013 Express. I am just a beginner, so I searched up some easy exercises and started ...
[10 replies] Last: Ok, that made it work. This was my first time using this forum and it ... (by Nathan7378)
Code::Blocks 13.12
 
Why does this work? #include <iostream> #include <string> #include <fstream> #include <limits> #include "fcreate.h" std::fstream& GotoLine(std::fstream& fi...
[4 replies] Last: Yes, but I have no problem anymore I un-installed c::b and installed i... (by progleo)
trouble with makefile
 
Hi, I'm having a bit of trouble making a makefile. So I was wondering if someone can point out what I'm doing wrong... This happens when I try to compile on m...
[4 replies] Last: Heh, I didn't look closely enough at your makefile. There are a numbe... (by Duthomhas)
by h4ever
Copying string in Visual Studio
 
When I started to learn C/C++ I started in Code::Blocks IDE. I was used to possibility to configure item in Watch panel so that I can see null character at the ...
[13 replies] Last: So I simulated the paste action and got here: trig_data = static_c... (by h4ever)
I don't understand why I need to enter input twice
 
Could some one help me understand why my program keeps requiring me to enter my input twice? This is the part that's causing the error. int NumericalMen...
[no replies]
by berkxz
do while problem, please help
 
Hi! I want to know what's my mistake in my code but in myself, i know, I haven't done anything wrong. So here's my question about the || operator, please see my...
[3 replies] Last: What i thought here is, if x is intered the bigger X will be flushed, ... (by berkxz)
by mindoo
socket programming Client and Server bugs
 
Hey everyone, I'm following this tutorial over at msdn : https://msdn.microsoft.com/en-us/library/windows/desktop/ms737629%28v=vs.85%29.aspx And I've come ...
[8 replies] Last: Hi, I solved the error. All I did was change the port and it worked. T... (by mindoo)
Why does my while loop end early?
 
The trouble loop: while( anyShipOnGrid(wanderShip) ) { cout << "\n\nPress enter to start next phase, moving each ship 50 units." << endl...
[2 replies] Last: I'm an idiot. Thank you. (by curious noob)
June 2015 Pages: 1... 34567... 32
  Archived months: [may2015] [jul2015]

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