General C++ Programming - December 2014 (Page 19)

by k18522
Need help with void function to calculate payroll
 
The purpose of this code is to calculate a pagecheck for intered hours and overtime for any hours over 40! This is what I have so far! #include<ios...
[1 reply] : Did you even compile your work? This is such a mess. Anyway, please un... (by tanezavm)
Question on parsing a text file
 
Hi, I have a question please. I'm parsing a text file, and I'd like to detect when a certain Compilation Condition - i.e. #ifdef - begins. The challenge ...
[2 replies] Last: There are many ways to kill a chicken. You have your own ways too. Try... (by tanezavm)
by Jt253
Making Program involving Pointers
 
Hey guys, New to this forum I need some help on how to make this program as I am new in the C++ world Write following functions makingArray: this func...
[1 reply] : There a section in the tutorials that explains pointers and arrays whi... (by Callum5042)
by afk
how to read file
 
/* p3a processes a logfile (passed as string parameter logFilename) * and generates a std::vector of std::string where each element is a non-empty *...
[1 reply] : std::vector<std::string> p3a(const std::string & logFilename) { ... (by tanezavm)
Need help with my sumnumbers program!
 
#include <iostream> #include <cstdlib> #include <iomanip> using namespace std; int sumNumbers(int num, int &sum, bool send); void dispavg(double average)...
[3 replies] Last: thanks guys i appreciate it, I was going nuts trying to figure it out.... (by Joeystacks)
by cpp224
move a whole figure horizontally or diagonally
 
i want to move a pattern like this with function gotoxy() * ** *** **** actually the first star moves horizontally and diagonally but i want to move the w...
[no replies]
Threading (Join and Detach)
 
Hello out there, i program a multiclient instant messager server to improve my knowledge in using sockets and threads. At time i have for each client a thread,...
[8 replies] Last: Wow, thank you for this very good help :) I don't understand this 3 wa... (by Pyrdacor)
Understanding a ray tracer
 
Hello, I am trying to learn how to put together a basic ray tracer which can model spheres and planes. I have an example ray tracer which I am currently pullin...
[no replies]
Floating value from character array
 
How to exract a floating value from a character array in separate variables . Example : multiply 7.5 with 2 Out put : 7.5 , 2
[1 reply] : Use strtok to break the input string into words/token. Then try to use... (by tanezavm)
Switch Classwork?
 
I am supposed to be writing a program that will say what a user inputted number is (low odd, low even, etc.), but I do not know how. Here is my code so far: ...
[2 replies] Last: [quote=AbstractionAnon] If you reach line 12, num will never be 1 or 3... (by TheUnholy)
Web Screen Scraper
 
I’m trying to write a screen scraper to get the Dividend information from a Morning Star page, URL: http://quotes.morningstar.com/fund/fbiox/f?t=FBIOX ...
[no replies]
Need help setting up Open GL
 
Hi everyone, While I've been programming for several years, I've never done any kind of graphics before, and I was looking to start on OpenGL. After findi...
[no replies]
Review my Source Code On Finding the Mode
 
I was doing a side project from my textbook about finding the mode, which is the number that occurs most often in a sequence of numbers. I racked my brain on th...
[4 replies] Last: Wow, thanks a lot guys! I don't think I've learned many of the concept... (by MarkyMark)
by davtk8
Limit size of string (arrays and c-style strings)
 
Hi, how do I tell the if statement to output this error message 'exceeded the maximum amount of characters' that has its characters stored in an array using c-s...
[2 replies] Last: Use this code below: if (cin.fail()) { cout << "Exceeded the m... (by tanezavm)
Input/Output
 
So I've been working on an assignment for a class, and I was receiving help from a grad student and he said my program looked good and to turn it in. However, t...
[1 reply] : Did you try to compile it yourself? Because it is not compiling. You n... (by MiiNiPaa)
cpp Assignment help
 
In this assignment you will be modeling a part of simple banking system. In this system, there are two classes, Customer and Account which are related to each o...
[12 replies] Last: cout << "Name: " << temp.getName() << "\nAge: " << temp.getAge() << e... (by doug4)
by Zunain
Unhandled Exception Error.. please help
 
//cant find what is wrong with the code.. please help guys.. it gives some //unhandled exception error #include<iostream> #include"conio.h" using nam...
[6 replies] Last: Exchange Line 71 and 72. It is a wrong logic if you don't exchange the... (by tanezavm)
Need help with my array program
 
Add a program that declares two arrays of 5 integers each. Provide one function to load one array with random numbers from 1 to 25, another to fill the other ar...
[2 replies] Last: thanks man! helped me alot (by Joeystacks)
Visual C++ ListBox manipulation
 
Hello, I'm a C++ coder, usually with puTTy (Unix). I'm building a program in Visual Studios, with C++ language. I've built two clesses, one for 'item' and...
[no replies]
segmentation fault (core dumped)
 
Hi, i run ubuntu 14.04LTS 64-bit this i what i get when i try to compile this program: // GLEW #define GLEW_STATIC #include <GL/glew.h> // GLFW #include...
[1 reply] : #include <iostream> using namespace std; // GLEW #define GLEW_STATI... (by kam hagh)
December 2014 Pages: 1... 1718192021... 31
  Archived months: [nov2014] [jan2015]

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