General C++ Programming (Page 2)

by A991ES
College problem
Is anyone willing to help me solve (and explain) a few problems that I have for homework in C++? ...
[17 replies] Last: soooooo, I'm kind of finished, but there's no output. Not sure where I... (by A991ES)
Calling a Base class constructor from a derived class.
Hi everyone, I'm just a beginner so don't judge me. I have searched on Google before I came here but...
[5 replies] Last: Okay, thanks everyone. I've completed it. :) (by klimentije33)
NT36 Error
When I try to submit a post, it keeps on showing NT36 error. Is it my browser or the site? ...
[2 replies] Last: Safari, Yosemite (by csstudent123)
DO LOOP Problem
Hello, this program is supposed to receive a numbers from the user to figure out a fast way to solve...
[6 replies] Last: thanks a ton @R23MJ (by mjamesball9)
by R23MJ
Setting up SFML Android project?
I realize this isn't the SFML Forums, but help over there is hard to come by. I asked a question yes...
[2 replies] Last: See, building SFML was the easy part. The second part is where I am co... (by R23MJ)
hash table chaining
Hi, i have a project where i should read an input.txt that contains a x node, the neighboor y and th...
[1 reply] : I'm not sure why you need a hash table. Do your nodes have names attac... (by Duoas)
Days difference between two dates using boost::date_time
Are there any APIs available in boost::date_time to get the number of days between two dates that is...
[1 reply] : 501 days. I presume you are talking about discounting weekends and p... (by Duoas)
File I/O help
if my text document starts with (example) 4 letters, I write 5 letters to the file it will only disp...
[5 replies] Last: It's ok. I did it for you. :) #include <iostream> #include <fstream> ... (by jasonwynn10)
How to use a JSON parser to read and handle data from a .json file?
I've included jsoncpp ( ) in my project, but I have a...
[3 replies] Last: Wait now I got it. I'm not sure why the OP on stack overflow was using... (by wh1t3crayon)
Network Programming With Shared Data Storage
A short introduction: A vector of structs shall be provided by a server via network. Clients store...
[2 replies] Last: My main goal is availability for the clients and the integrity of the ... (by stefan65)
How to access a specific line in a file
How do I read only a specific line in a txt file and save the number in the next line in a variable?
[3 replies] Last: The above code should assist you then, what all have you tried. I cann... (by R23MJ)
by Aaa000
'std::out_of_range' error
Hi, I'm a beginner with C++ and don't know much about it. I compiled the following codes without err...
[1 reply] : Please use code tags when posting code. You need to be careful about ... (by jlb)
Passing Objects As Function Parameters
My research has not helped me solve this one. edge.h: class Edge { private: Vertex start; Ver...
[3 replies] Last: There is another solution to your particular problem. Your Edge class... (by andywestken)
Does boost include in this web site ?
Boost said he has been included in C++11 standard. Does boost include in this web site ?
[1 reply] : Boost as such is not included in the C++11 standard. It is a large col... (by keskiverto)
Clarification on magic numbers
Hello, I`m interested maybe at some point implementing a hashing function, but before that I need...
[1 reply] : The meaning of keyword static in C++ does depend on context. C has a ... (by keskiverto)
breaking out of a while loop without using break
So I'm in the middle of writing a program and stumbled upon something. Here's a sample code of my q...
[8 replies] Last: Is there any way I can break out of the loop without having to use an... (by andywestken)
How to compare data in one column and count the same
I have a simple trouble. I need to compare data in column in my .dat file and count the number of id...
[1 reply] : Man that is not really helpful. Try to post the code so we can see whe... (by Momothegreat)
Dynamic 2d arrays of objects allocate in desired index
Hi. I have this short game I am designing. It has an Organism class, an ant class and a bug class. O...
[4 replies] Last: thanks! it is working now (by csstudent123)
Random function inside of a character array
I'm working on a very basic snake game, and am in need of some help. In my loop I am and trying to r...
[3 replies] Last: it gives me a red line under the asterisk when I do it like that (by ArtisticMess)
by HMinNC
Help needed - TIC TAC TOE Game
Hi, I am new to programming. I wrote this code to play TIC TAC TOE. IT works on my computer and s...
[4 replies] Last: Thank you for your help. I really appreciate it. Holly (by HMinNC)
Pages: 1234... 46
  Archived months: [mar2015]

Cannot post in this page. To post a new message, go to the first page.