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

by AMDA10
class access modifiers
 
Hi, While reading about inheritance, I came to know the format is like this: class [derived class name here] :: access modifier [Base class name here] { ...
[13 replies] Last: struct A { void f(){} }; struct B : private A // Change to prote... (by Peter87)
Adding elements to map
 
How can i add elements to map while program is running. I tied and insert but both give access violation. std::map<std::string, std::string> links; ...
[2 replies] Last: Fixed it... I forgot to initialize the albumscontroller. So i was call... (by vastrolorde)
Hash Table Bug
 
I have been trying to fix a bug in a hash table and can't seem to figure out the issue. I get to the point with a table that looks like this: hash 0: hash 1: ...
[3 replies] Last: Thanks for all your help everyone, I appreciate it! (by closed account oEwqX9L8)
by fila
error in traversal of all of path in binary tree
 
Hi all; The matrix paths determine the path index i meeting the node number j. I have written the following code for traversing all of the paths in a binary ...
[2 replies] Last: Hi I have edited the sending version in above. My problem is reset of ... (by fila)
Sales record keeping system
 
An Insurance company has asked you to develop a record-keeping system to manage the different types of insurance sales made by the various types of employees wo...
[1 reply] : Hi, Well, best place is at the point where you realise this isn't a ho... (by Naughty Albatross)
splitting string based on length
 
Hello, im not sure where to post this - im a beginner but this is a not a easy issue. I need to write something that passes a value from one program to a...
[2 replies] Last: To test the length of the string http://www.cplusplus.com/reference/st... (by ne555)
by dalde7
cpp on jGRASP doesn't work
 
Hi, I have installed jGRASP ON MY Linux 14.04 and I compile a hello_world.cpp and it is ok. When I can run the hello_world it doesn't run and there is this er...
[no replies]
by Vena
Ising 2D with Metropolis Algorithm
 
Hi at the moment i am writing my Bachelor theses about Montecarlo simulation for the 2D Ising Model with the Metropolis algorithm. But my code does´t work....
[4 replies] Last: the analytical results are behind the measurements in the program. th... (by Vena)
by mmgis
Difference
 
Dear all, Can some body explain the difference between Basemap* basemap and Basemap *basemap Thanks in advance
[14 replies] Last: Whenever something can be done in two ways, someone will be confused.... (by closed account 48T7M4Gy)
calling string between two terminals
 
Hi, I would like to put a string in one terminal and call it from another. how would i put this "string x = "hello world";" line in one terminal and print i...
[5 replies] Last: One of the simpliest way for interprocess commincation is to use a SQL... (by closed account 48bpfSEw)
Crash idk why
 
I dont kno why this program crashes. help #include <iostream> #include <cstring> using namespace std; string rez = {"aaa","aab","aba","abb","aba","baa","bab"};...
[4 replies] Last: Your loop is running out of bounds. The last element in inc and rez... (by Peter87)
a code to calculate the cost
 
Hello, You can post it in the Job section if you want someone to do it entirely for you. You can send me a PM message. Good luck :)
[1 reply] : ok thank u :D (by syika1999)
by prc27
Best way to setup multiple files?
 
I'm looking for some help in how to setup something. I have some programs where I call a function defined in a separate cpp file (call it the library function) ...
[4 replies] Last: Thanks for the replies. AbstractionAnon your solution worked. It was ... (by prc27)
Opening Applications
 
Two things: 1- system() is BAD, I get that. How could I open wordpad without: system("notepad.exe salesReport.dat"); 2- Can I open wordpad i...
[7 replies] Last: @Thomas1965 Sorry for the late reply! The fundamental issue is that ... (by mbozzi)
Strings comparison
 
Hi, I'm working on a Win app that opens another Win app with additional arguments. The thing is that I don't want a user to be able to open the 2nd one without...
[7 replies] Last: Duoas, thanks for advice. I'll follow it. In the end, it was the prob... (by mtweeman)
Using string containing variable path
 
So, lets say I have an int at "Vars.MyVars.Ints.TheInt", but I only have the 'path' saves as a string but I need to be able to send it to functions so they can ...
[5 replies] Last: Instead of "0x12345678" I need to use the Variable path like "Vars.My... (by dhayden)
BIG QUESTION... DESTRUCTOR ISSUE
 
Hi Everyone, So I've finally gotten my code to work for the most part without any issue. I've used a bunch of Accessor methods to help with interacting with ...
[3 replies] Last: Nevermind, Thanks SO MUCH> I just realized the reason it just crash af... (by TheCodingOne)
Couldn't rename or delete file
 
I tried to write a Program to Insert Information of an Item to an existing Binary File. But something is fishy. The Compiler shows NO ERROR. The New Records ...
[no replies]
how to call this method
 
Hi, I've split the code into 2 pieces. However I've failed to call the SetDate function. How do I call a method that's a part of a class but put outside of it?...
[7 replies] Last: @TheIdeasMan, et al Recently have been introduced to c++11 uniform in... (by technologist)
What will happen to C++ when Bjarne Stroustrup retires?
 
Hi guys, Because C++ is not owned by anyone (unlike Java, C#, etc) what will happen to C++ when Bjarne Stroustrup retires? Will some one else take work on the ...
[8 replies] Last: The main reason I use C++ is that it will continue on after Bjarne Str... (by freddie1)
August 2016 Pages: 1... 9101112
  Archived months: [jul2016] [sep2016]

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