General C++ Programming - September 2013 (Page 19)

by Ltp
A simple Queue problem but I cannot fix this
 
#include<iostream> using namespace std; class Queue{ private: int *queue; int q; int front; int rear; public: Qu...
[3 replies] Last: A couple of other things. 1. When enqueuing, you should insert onto t... (by doug4)
What exactly is threading? What to learn next?
 
Hi, LeafyCircuits here! I was wondering what threading is in C++. I've done some research and I guess the idea is to have separate process that run parallel to...
[14 replies] Last: L B said: You should avoid using asm blocks at all costs. Wel... (by LeafyCircuits)
by Snaksa
Text file to binary file
 
Hi! I want to convert a text file into binary file. I should create the text file by myself. I also use a structure for the components: struct Data { ...
[12 replies] Last: Ok. Thanks a lot for the example :) (by Snaksa)
parsing time in command line arguments
 
hey guys, thnks for your help last time but my professor just increased the problem by saying the time value should be passed as command line arguments can an...
[10 replies] Last: Learn to format your code, then it's easier to comment on. http://www.... (by SamuelAdams)
Need Help about APPCRASH
 
Hi friends, i have some problems with my "package unpacker tool" i'm begginer with C++ i hope someone can help me i m usin Visual Studio 2005 Codes. //...
[6 replies] Last: Good luck to you then. (by Computergeek01)
need help on jumble word HELP PLEASE
 
everything works it just how am i repeat for the next word not exiting the program. // Word Jumble // The classic word jumble game where the player can ask ...
[1 reply] : You just need another while block that says "while running" then have... (by Computergeek01)
How to initialise in main for my program?
 
#include <vector> template <typename T> class Vector { private: int _size; //Slots used. int _capacity; //Total capacity. T *_store; //To store th...
[2 replies] Last: I see thanks. For others who may view this: Just needed to do this: ... (by helpstudent)
by dildur
Need help with C++ triangle problem, simple hopefully
 
Hello Trying to code this C++ program, in which it will let me know if the point is within this triangle or not - http://imgur.com/vOdbffL Need help with the ...
[2 replies] Last: Hi, You will get the easy solutions for the different triangles progr... (by samcpp)
Version Numbers for Programs and Projects
 
Hi all, Just a curious question When you are creating a project or program, how do you number your versions? Like when you release it, it becomes v1.0, am...
[1 reply] : It is up to the developer, although typically, the developers follow a... (by closed account jwkNwA7f)
by DeMuRe
Gratuity Calculator
 
Hi! I feel this may sound stupid to all of you, but I'm needing some help with some homework. The assignment is to create a gratuity calculator. The instructi...
[1 reply] : The instructions state that the class should have ONE class member cal... (by ajh32)
Help moving my bool function from my .h to .cpp file (1,2)
 
Hey guys. I've got kind of a silly question here so bear with me. I've got a bool function in my .h but when I try and put it in my .cpp my program doesn't comp...
[23 replies] Last: No... Because that is as good as return servers ; . You stated the re... (by Daleth)
subscript requires array or pointer type
 
I keep getting this error any tips? Error 1 error C2109: subscript requires array or pointer type #include <iostream> using namespace std; void me...
[2 replies] Last: You're also computing the mean incorrectly. You're computing the mean ... (by thebeto1of)
2 for loops in a single program?
 
I have to make my program display days 1-30 along side numbers increasing by 5 each day beginning with 6 on the first day. I wrote 2 for loops on separate tabs ...
[10 replies] Last: Yes! That's what I was looking for. Thank you. Here is the final piec... (by cire)
How to define a data structure to satisfy this?
 
A easy questions, maybe, for you guys. I want to define a class, which will have two members, for example, vaporPressureStatus and vaporPressure enum v...
[3 replies] Last: If it is just 'may or may not be set', std::optional<> (C++14) or b... (by JLBorges)
C++ Program that calculates commute cost.. how do I fix this error? details below.
 
"if you run the program you will notice that it ignores the amount of daily tolls and parkingfees. This should be quite simple, multiplying x times parkingfee e...
[1 reply] : if you run the program you will notice that it ignores the amount of ... (by AbstractionAnon)
Get weird numbers when finding the sum
 
Just posted a different problem earlier today but now its something else. when I try to find the sum of the array I get random numbers that are obviously wrong ...
[2 replies] Last: Your array has a size of 25, and you did not initialize any of the ele... (by Daleth)
What is this thing?
 
i know about these comments //single line comment /* several line comment */ but what is this ///is this a comment? if it is a comment ...
[3 replies] Last: comment (by rex1200)
having an input issue with my program
 
this program is for hw. however, Im not asking for someone to do my hw for me i just need a little help. I'm having an issue with the input of the employee name...
[2 replies] Last: i did try inputing that line and still recieving the same errors. and ... (by John752)
Division Algorithm
 
Ok, I have this homework for class due next week and I was trying to get a jump start and I can't seem to figure out why I keep getting the wrong answers. B...
[no replies]
by azike
Pls help debug
 
#include<cmath> #include<iostream> #include<iomanip> const float t = 0; const float K = 25 ; const float S0 = 25 ; const float T = 1 ; const float d = 0....
[1 reply] : #include<cmath> #include<iostream> #include<iomanip> const float t =... (by Chriscpp)
September 2013 Pages: 1... 1718192021... 36
  Archived months: [aug2013] [oct2013]

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