General C++ Programming - August 2014 (Page 6)

amount transfer function cant work
 
#include <iostream> #include <iomanip> #include <fstream> #include <cstring> #include<string> using namespace std; //Data Type typedef struct { ...
[no replies]
Initializing a static field as a template object
 
I need a static hash table to keep track of all objects of a particular type that are instantiated in a Qt application but I have never used a template class as...
[2 replies] Last: The template arguments should be specified the same way as in the head... (by Peter87)
Basic question: How can I avoid getters and setters?
 
I have a class CreateDxf that writes DXF entity codes (line, circle etc) to a text file. Now I want to add dimension entity also. The dimension entity shall ha...
[1 reply] : I searched the net and got this link. http://stackoverflow.com/questio... (by abhishekm71)
Building a Multicast Packet - memcpy casting issues
 
Hi, I am just getting back in to C++ after 10 years not doing any, contributing to an open source project. I'm adding in some functionality and am hitting a ro...
[9 replies] Last: Just a quick thanks to you all for your assistance. I have got it all ... (by trolley01)
by geng07
Help with parsing a file
 
Requirements in filtering the text file. GRATEFUL TO HAVE YOUR SUGGESTIONS 1. first my professor required me NOT to change the MAIN function(because he made ...
[no replies]
loading
 
https://vendetta2015.files.wordpress.com/2014/08/untitled.png Could someone help me to produce this program?
[1 reply] : There are so many ways you could do this, which library are you going ... (by giblit)
Guysss help me please
 
#include<iostream> #include<windows.h> #include<string> #include<iomanip> #include <conio.h> #include<stdlib.h> using namespace std; int main () { ...
[9 replies] Last: Thank you very much for this (by vendetta2014)
Obtaining pointers to represent each branch in a hierarchy
 
My program has a large version of this, where every leaf class is singleton, and pointers of the base class to represent each possible path are stored in a map ...
[7 replies] Last: Ok, even though some may be questioning my design to begin with, I nev... (by prestokeys)
Array data and decimal information
 
Hello, I joined this forum today and for past 10 days or so am using the valuable information related to c++ from the tutorials(I started learning the langu...
[3 replies] Last: If you have no follow-up questions on this topic then yes, mark it as ... (by Chervil)
Regular Expressions not working
 
Hi, I have this bit of code that I found here: https://www.youtube.com/watch?v=v_8rdQjOuxw and at first regex would work, but then when I hit " " it wouldn't....
[2 replies] Last: Any input from the video. For example typing "ab" into the program sh... (by crimsonzero2)
by soranz
class basics
 
Hi ! I'm trying to build a class that will use the std::tr1::lognormal_distribution class but I'm having trouble putting it all together in my new class...how s...
[2 replies] Last: Thanks Peter :D (by soranz)
Urgent...Need someone to write a program for this
 
You are required to write a program for a Used Car Dealer company. In the system you need to maintain the cars’ inventory and details. Each car in the compa...
[1 reply] : Need someone to write a program for this Unless that someone is you ... (by Computergeek01)
by poteto
Deleting a iterator inside a double loop :S
 
So yea... I know that if I erase a value inside an iterator, it becomes invalidated, and this is how you would normally fix it: for(std::vector<int>::iterator...
[6 replies] Last: > this is how you would normally fix it: One would normally use the e... (by JLBorges)
help| chars array
 
i need to get from the user array of chars and fix the spaces example: " Hello world " to "Hello world" before and after - no spaces...
[1 reply] : Please try to write the code yourself first. (by dhayden)
by dev05
Statement not appearing at the right place
 
Hi I have an issue with my codes as according to what I created the fitness level have to appear right after I enter the time take to 3 miles. However it only a...
[6 replies] Last: What must I do in order to have place to store five entries (by dev05)
by xoxos
3d soft engine - is my rotation correct?
 
writing my own 3d rendering engine and, after finishing my triangle rasterizing algo i noticed something unusual - i'm using windows timer() for the framerate ...
[2 replies] Last: helios tyvm for saving me hours of semi-conscious labour, you're very ... (by xoxos)
Indentation (1,2)
 
Do we have shortcut key for indentation?
[23 replies] Last: The name change from myesolar -> rasd threw me off a bit. (by LB)
How can I approach a problem?
 
Hi, I've been learning c++ for some time, I'm familiar with the synatx and that stuff. But I find it really difficult to start writting a program from scracth b...
[1 reply] : Well, no method exists to solve polynomials of degree 5 and up, so no ... (by helios)
by paupav
From where to start project
 
I was trying to figure out this project, but I don't know where to start because it looks to me like whole program is "entangled". Do programers first create he...
[1 reply] : Here is link of the project: https://github.com/LaurentGomila/SFML/wik... (by paupav)
multithreading: easiest way to modify shared object
 
class MyOwner { ... int m_count; bool b_locked; }; class MyObject { ... MyOwner* m_owner; void UpdateCount(){ if (!m_owne...
[5 replies] Last: Thank you both very much! I will use std::atomic. (by Jsplinter)
August 2014 Pages: 1... 45678... 25
  Archived months: [jul2014] [sep2014]

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