General C++ Programming - June 2011 (Page 14)

Linker problems with class template and member function specialization
 
Hi, I am new to template programming and the problem I am having, might really be trivial! In any case, I am trying to set up a class template with a special...
[4 replies] Last: The idea wasn't to make it inline but to define it in a source file (a... (by ne555)
name search not functioning in filestream
 
ok, here is the new code i made there is a problem here, i cant seem to display a particular information block of a person in the search area, here is the code...
[no replies]
filestream not working here
 
i have this code and everything works except for my void remove function here is the code: can someone help me find where i go wrong? thanks #include<iostre...
[1 reply] : Any chance of formatting your code? There's quite a lot of it and it'... (by kbw)
Friendship and inheritance
 
Hi! I could use some help with inheritance and friendship. I have the following classes: class B { private: //... A bunch of functions here ...
[7 replies] Last: I took the public methods route you suggested, thank you! (by Bobruisk)
by timmy
constructors
 
#include<iostream> #include<conio.h> using namespace std ; class time { public: int hour,min; time(int); }; time::ti...
[3 replies] Last: How about this? I suspect you're including the time function, either v... (by Moschops)
boost
 
hello all.. recently i joined a s/w firm for summer training.project is on c++ with boost library.i don't know anything about boost even how to install,wheth...
[3 replies] Last: Assuming you're on Windows, google for boostpro computing. They have i... (by kev82)
by timmy
major problem in file handling
 
#include<iostream> #include<conio.h> #include<fstream> #include<string> using namespace std; int main() { ofstream myfile ; string name ; i...
[1 reply] : You could use a stringstream: #include <sstream> //... for(i=0; i<... (by m4ster r0shi)
boost::regex example runs error throwing an instance of 'std::bad_alloc'
 
Here is the example - #include <cstdlib> #include <stdlib.h> #include <boost/regex.hpp> #include <string> #include <iostream> using namespace std; using nam...
[no replies]
by timmy
object serialization
 
may i get a simple example of object serialization and deserialization?for eg-i want to write data of 5 students in a same txt document using file handling and ...
[no replies]
Passing an LAPACK (Fortran linear algebra library) function a pointer to double rather than an array of doubles
 
Hey guys, I'm hoping one of you can help me out with this. F.Y.I. The problem might be solvable with just the first paragraph and first code block, so...
[no replies]
Casting Issue
 
This is for some avr code and I'm not sure if this is a normal error (this is C code). These are all my types. typedef struct { void * Sharedmem; ...
[1 reply] : You need multiple lines to perform the cast. String* s = (String*)(... (by jsmith)
Future value question
 
I am new to C++ and worked hours on this today. I need to calculate the future value. Can anyone check this out and see what I am doing wrong? For some reason m...
[9 replies] Last: I think one thread is plenty: http://www.cplusplus.com/forum/beginner... (by shacktar)
by timmy
recursive functions
 
may i plz get some new good problems on recursive functions?
[11 replies] Last: [quote=moorecm][A good example of recursion] is any kind of hierarchic... (by Mathhead200)
by timmy
time
 
plz tell me how can i add a clock in my c++ program?i want it to tick at the top of my output..
[2 replies] Last: A header as the other poster said would be a good place to start. To ... (by jrozkov)
by kayman
pointer question
 
I'm having a problem understanding the difference between these two pointers: ndpt->gConcentration nd ->gConcentration I know the second is a pointer arr...
[1 reply] : If you have a double asterisk, it means you have a pointer to a pointe... (by Disch)
Storage binding and deallocation
 
I'm doing a study guide for my programming class and here is one of the questions. I don't really know how to answer it. Storage bindings. In C++ how do you ...
[1 reply] : "storage" refers to using memory. a. How do you create a variable tha... (by Duthomhas)
string to array of numbers
 
hi. i'm sure this has been asked before, but i haven't been able to find this, so i'll just ask. i'd like to be able to read a line in input with cin, a lin...
[5 replies] Last: It depends on how many lines the user may input before terminating. I ... (by Duthomhas)
static Create function
 
class Base{ private: Base(int arg){ GlobalVariable.BaseVector.append(this);} public: static Base& Create(int arg){ ...
[13 replies] Last: [quote=L B]So, by using a #define statement instead of doing it in the... (by m4ster r0shi)
Any good summer camps for beginner C++?
 
Hey I was trying to look around online but I was having trouble finding any good summer classes for C++ in the AZ scottsdale/pheonix area. Does anyone know any ...
[2 replies] Last: thanks im looking for that too :) (by zaqwerty)
by timmy
file handling
 
i am making a program which takes care of all the details of a student using file handling.is it advisable to use different files for different student?i mean d...
[1 reply] : Both methods have been employed. However, I recommend you to using a s... (by Duthomhas)
June 2011 Pages: 1... 1213141516... 28
  Archived months: [may2011] [jul2011]

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