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

C++ Program
 
I also need help understanding the following code instructions for C++. AgeConvert(); In this challenge you will create a C# method that calculates the user...
[1 reply] : Similar to your other post, it looks like this problem is asking you t... (by JayhawkZombie)
Having trouble assigning values to a dynamically alocated 2d array of string pointers
 
So I'm having trouble with assigning values to this array, here's my code: //Adventurer.cpp string item = "YEAH"; int rows = 50; int cols= 2; int Adventu...
[3 replies] Last: I haven't written my assignment operator yet, could this be the probl... (by cire)
Weird noise
 
I have two c++ projects. One is written using Wt framework and is a webpage with a server. Other is my own implementation of quadtree and physics engine using S...
[6 replies] Last: Yes. Made another project with SDL. I think it might be GPU Fan(Laptop... (by vastrolorde)
Linking structure variables to an dynamic array.
 
Well, I took my first com sci class two semesters ago and learned quite a bit, enough to know that I enjoyed programming. The following semester I enrolled in a...
[10 replies] Last: Thanks again Jayhawk! That helps a lot.. I think my issue was that the... (by newbcoding)
ping program!!
 
Hi all. I want to write pinger program.To send ping to a specific ip address.Are there any examples?
[3 replies] Last: For a Windows oriented answer, there is an extremely basic sample unde... (by Computergeek01)
carries_dependency and kill_dependency
 
I read some materials about them, but I can not understand them. who can illustrate them with simple language and simple example?
[1 reply] : Anthony Williams on [ ] http://stackoverflow.com/a/6411703\ (it has ... (by JLBorges)
how to read txt file in c++
 
Phone Number / Account ID Name Of Subscriber Contact Information plan 123456789 / acc1 chris ...
[2 replies] Last: ifstream allows you to open a file, then there are many ways to read t... (by SamuelAdams)
Division by a long long variable
 
Hi: I need to divide an integer by a long long variable (mslong in the following code), however it always produces zero as the result (ss will be out as zer...
[2 replies] Last: Like jlb said, integer division leaves no decimal/fractional portion l... (by JayhawkZombie)
Merging quadtree nodes
 
Im trying to implement dynamic quadtree. It is bit overkill but its for learning. I have set a minimum element count for nodes. If object count in a node fall...
[4 replies] Last: http://www.cplusplus.com/forum/general/195980/ (by vastrolorde)
Weird behaviour
 
Im trying to implement quadtree. I have mostofit done, it works to a degree, but then it crashes with nullptr error. After lots of debugging i have boiled it do...
[3 replies] Last: i found the mistake. Mistake was in the getObjectCount function. Inste... (by vastrolorde)
[Help] Getting trouble when following Lazy Foo's SDL setting up
 
Hello guys. At first I'm sorry about my english. It's not good. So I hope you wont be mad with it. Ok this my problem. Last night when I was trying follow Lazy ...
[6 replies] Last: You can build libSDL yourself if the appropriate version is not offere... (by mbozzi)
c# marshaling, returning vector from c++
 
hello, I want to return vector or something like that from c++ and use it in c#, only purpose is passing 50 integers to c# how can I do it? I have the followi...
[no replies]
Variable changes in array assignment for no reason?
 
I am trying to put an object into a vector like this: std::vector<Chunk> activeChunks = std::vector<Chunk>(9); activeChunks = Chunk(sf::Vector2f(pla...
[3 replies] Last: vector::emplace_back: Inserts a new element at the end of the vector,... (by keskiverto)
how to validate integer and not allow decimal, etc to input as integer
 
int num; do{ cout << "How many values ?"; cin >> num; cin.clear(); cin.ignore(); if (cin.fail()) { cout << " must interger !" << endl; cin...
[7 replies] Last: If it doesn't read as an integer then trap a spurious entry like 7yu b... (by closed account 48T7M4Gy)
Creating an output file using a variable in name
 
Most tutorials use ("myfile.txt") when creating an output file. I want to use an integer variable to automatic create a new output file for each cycle of t...
[2 replies] Last: Thank you kemort (by knestle)
by Ema86
How I can determine the size of string array?
 
Hi every one... I have the prototype std::vector<std::string> to_vector( std::string words ); I need to determine the size of words... How to do it...
[5 replies] Last: Thanks for your reply... (by Ema86)
by ZimCa
number in hexadecimal
 
I need help i wont to try something like this int a = 5; string hex = a << hex;
[9 replies] Last: Man its WORKS :DDDDDDDDDDD ty <3 (by ZimCa)
2-dimensional vector
 
Is there a way initialalizing a two dimensional matrix other than using an array?
[7 replies] Last: Put a note somewhere to check out Lisp at some point in the future :). (by mbozzi)
by Qub1
Exposing member objects of complex classes?
 
Hey all, I have been working on a project lately and in this project, I've decided to split up the application's functionality into separate classes which hand...
[13 replies] Last: I've noticed that your objects don't represent real objects -- they're... (by mbozzi)
SFML Draw Issue
 
Hey guys, I seem to be having an issue when trying to draw Buttons on to the screen. I have the button class stored as a vector pointer. below is the code for ...
[7 replies] Last: Found my problem. It was an idiotic mistake in the Button header file.... (by Tarkan1857)
August 2016 Pages: 1... 45678... 12
  Archived months: [jul2016] [sep2016]

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