General C++ Programming - October 2013 (Page 18)

Use a non-function member into a class
 
Hello, friends I need help. I mount a function (parameter - numeric vector; returns a string). However, this same function is used in several classes. To...
[6 replies] Last: I really don't understand the problem here. @OP: ¿what are the issues... (by ne555)
by Xion18
Help on Amazing Clock
 
Hello guys, I did the first part of creating a amazing clock, that allows user to input the time. And whatever time they input they get an event or not. Here is...
[3 replies] Last: Ah yes thank you, forgot to read the entire string, i was more focus o... (by Xion18)
by deleyd
C++ syntax: A* a; aclass&
 
I do C and C#. I have a few questions about C++ syntax related to classes. friend class VehState; void changeState (VehState* newState); // { mStat...
[2 replies] Last: Does VehState* mean variable newState is "a pointer to an instance of... (by Cubbi)
How would I modify this function...
 
My professor (for a c++ class) is using this bit of code in.get(foo, MAX_CHAR, ';'); while (!in.eof()) { in.get(); //remove field seperator ';...
[4 replies] Last: Small digression: professor is a she not a he. I think I need a lit... (by Bdanielz)
by leo24
Graphs
 
The connected undirected graph without loops and multiple edges is given. You are allowed to remove the edges from it. Obtain a tree fr...
[1 reply] : You could use any spanning tree algorithm, for example, Kruslal: #in... (by Cubbi)
by K13ran
Read all pixels from bitmap into one big array
 
Hi, I need to be able to take a bitmap e.g. "untitled.bmp" (bit depth: 24) and loop through every pixel from top left to bottom right and find the rgb (or hex)...
[1 reply] : It might pay to research the bitmap file format (by bmw)
Friend function concept
 
am getting an error while executing this program the is as follows 1.member partition::parts is inaccessible 2.member partition::n is inaccessible 3.all priv...
[2 replies] Last: still it is not working its saying member declared at lline 8 is inacc... (by raviraj459)
class project
 
hi , i have a project to be done in 2 days .. i understood everything except one point first this is the project "Problem Description: The General Distribu...
[2 replies] Last: I'm really sorry but can you explain more ? or Is there any other w... (by rawhaki)
by leo24
Graphs
 
Q.No.4 The oriented weighted graph is given. Find the shortest path from the vertex s to the vertex f. Specifications Input The first line contains ...
[no replies]
by leo24
Graphs (depth first search)
 
Hi.here is a question I got for assignment.I am stuck in this for hours and couldnt come up with any logic.Any help will be highly appreciated.Thanks Depth-F...
[no replies]
std::fstream Logger class
 
I like to consider myself to be a decent c++ programmer, but this seems like it should be such a simple error (and of course, I can't fix it.) My aim is to bui...
[1 reply] : I didn't look very close but... if (g_log = NULL) = is assignment.... (by Disch)
Difference in functions when attached to an object
 
My question is why when I attach this function to an object, it produces a different result? If I attach div() to goose, it produces 4 as the value of alpha, bu...
[5 replies] Last: In main2.cpp, line 15 invokes div on a different object than that sp... (by cire)
Need help finishing part 1 of my school assignment with perfect numbers.
 
Find the perfect numbers between a starting value and a finishing value entered by the users. Display the results to the screen. YOU MUST DESIGN YOUR SOLUTION W...
[no replies]
Debug Assertion Fail
 
I'm am unsure where this problem is. It says line 1440, but i do not know where that is and what the issue is. #include <iostream> #include <iomanip> #incl...
[5 replies] Last: Please use code tags: [co de] Your code [/co de] See: http://www.cp... (by coder777)
Modified maze problem
 
There is a matrix which contains white cells(represented as 1) , black cells(represented as 0) and only one gray cell(represented as 2), need to go from (0,0) t...
[3 replies] Last: First of all, you should use the code format to embrace your code, so ... (by Yueeng)
control structures
 
Can anyone help me to write a program that will prompt and read 5 numbers. Then the program should print numbers that are larger than 80.
[1 reply] : Try to do that yourself or you'll never learn. Post some code and ask ... (by closed account S6k9GNh0)
Compiling and linking
 
Is it possible to compile two files separately and then link them to create an executable ? If yes, how to do it ? This was my crude effort to do it File : dri...
[3 replies] Last: There are more than one way to create object files (the things contain... (by Duthomhas)
by Yueeng
problem with STL list iterator
 
Hello guys, i've been stucking on this for over an hour and i tried to use other STL like vector, but it's still the same question here. // the assign par...
[3 replies] Last: @tipaye Thanks for your reply, it turns out that the problem is that... (by Yueeng)
by razr
Including headers: base class and derived class
 
Hi, I am working on OOD in C++ and have just started to learn about classes and inheritance. So far I could follow the tutorial and my programs have compiled a...
[5 replies] Last: You're welcome. Yes, #pragma once is another way of doing it, if yo... (by MikeyBoy)
How can I pass a void function as a parameter
 
Hi, How can I pass a function as a parameter? I have a class that I'm trying to reuse and one of the methods in this class need to take three parameters...
[9 replies] Last: > structs http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/to... (by JLBorges)
October 2013 Pages: 1... 1617181920... 46
  Archived months: [sep2013] [nov2013]

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