General C++ Programming (Page 30)

How to do seperate declarartion and definition of member variables, static member variables and static functions.
Hi ppl :), How can we declare and define static class data members separately in .h and respectiv...
[5 replies] Last: Is there a we do not need to include animal.h, cat.h, dog.h in the an... (by doug4)
How this code works
#include <iostream> using namespace std; class Test { public: Test() { cout << "Hello ...
[4 replies] Last: The constructor of the class will be called when the object is created... (by coder777)
Is this possible to preform with c++?
Basically Im taking a data structures class, and we're only 3 weeks in. I am more seasoned than I am...
[1 reply] : whether or not its even possible to do what he wants using c++ yes,... (by gunnerfunner)
Passing actual variables to a function
I discovered the windows thread function recently and I saw that it can take actual variables and tr...
[8 replies] Last: You can create a struct/class to store your variables and pass that to... (by integralfx)
not able to insert pointer into map<char,trnode*>
#include <map> #include <cstring> #include <cstdlib> #include <iostream> using namespace std...
[1 reply] : The problem is this: temp1 = (trnode*)malloc(sizeof(trnode)); You ... (by coder777)
Any way to create an ifstream within an ifstream?
Hi! I've been tinkering around with .GRP files from back in the day. GRP files store content in them...
[3 replies] Last: I keep hearing about mmap, though I never get around to looking deeper... (by newbieg)
by iiiiii
Implementation of Hashing
Need help in writing the code. I'm posting the Lab description and code I've done so far. Purpos...
[1 reply] : What does 'not running properly' mean? You will read beyond the the e... (by coder777)
by iiiiii
Hashing program showing (lldb) in Xcode
Hi everyone, I'm working on c++ code for implementing the hashing but when I run the code it is show...
[1 reply] : Maybe this might help: (by coder777)
Can anyone translate this C code to C++? Code for Program that performs add, edit, delete, display and search date from file.
#include <stdio.h> #include <conio.h> struct biodata{ int recno,age; char name ,...
[1 reply] : Can anyone translate this C code to C++? Code for Program that perfor... (by Mantorr22)
by iiiiii
Hi everyone, I need some help in homework lab Purpose: Use Hashing Techniques Create a ADT to ...
[1 reply] : What is the question you had? "Help" is a little vague as to what yo... (by jonnin)
How to open .exe or .cpp programs from a main .cpp program?
Alright, so I know many people have asked this before. I am trying to make a program that will open ...
[2 replies] Last: it might work better for executables to use "start path\\programname.e... (by jonnin)
Erase any element from the list while iterating
How can I remove any element from the list while iterating? std::list<std::string> l; l.push...
[6 replies] Last: #include <algorithm> template < typename SEQ, typename X, typename Y... (by JLBorges)
by jowhi9
Maze Paths
My program simulates a standard maze. After it runs, you would be asked the maze’s size; by enter...
[no replies]
function to draw a diamond
I need to do this. Finally, you will draw the diamond using a programmer-defined function that ac...
[2 replies] Last: Please, do not double posts... twice :-) (by Enoizat)
code snippets? Correct?
Snippets create objects below, but I am not sure I know what I am doing completely. Could someone pl...
[4 replies] Last: If I don't, what happens to my ctor values? Do they not get loaded?Ar... (by gunnerfunner)
Analyse a beam (Part 3)
//------------------------------------ // CALCULATION OF MOMENTS ALONG BEAM //--...
[3 replies] Last: @dhayden Thank you for your comments, particularly the last bit of cod... (by RNBW)
struct template in function template
Hello People, I want to use a function template which returns a structure template. The situation ...
[2 replies] Last: Thanks Cubbi. Yes, you are right, I should have used v .resize(column... (by dariodem)
Get audio input volume
Hi everyone, i already found this article: That reg...
[no replies]
Need Help Converting Strings from an Array into a char array (1-D).
Name | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |Total -----------------------------------------...
[7 replies] Last: You might want to check with them... Could be a good move as the exe... (by kemort)
by LongDo
Class and Object
I have some problems with my homework Consider the following definition of the class myClass <clas...
[1 reply] : struct A { static int i ; static int foo() { return i ; } }; int A::... (by JLBorges)
Pages: 1... 2829303132... 34
  Archived months: [feb2017]

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