Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF C Language


minloc / maxloc in C++   

Hi! I'm writing because I can't find any algorithm like fortran's MINLOC/ MAXLOC in the C++ stl (or in boost for that matter). Am I being stupid and missing one? Or else, I was wondering whether there was a particular ... Continue Reading
Views : 23
Monday 26th of November 2012

a pointer to a derived class problem  

hello all, having a problem with derived classes. i'll show by pseudo code example. first the base class and derived classes: class Shape { // base class for all shapes public: virtual void Draw() {// draw code here} }; class ... Continue Reading
Views : 73
Monday 26th of November 2012

help with file I/O  

Hi, I'm new to C++, and I want to open a file, go through it line by line and pull out specific things on each line. I've written a test bit of code to try to do this. For some ... Continue Reading
Views : 84
Monday 26th of November 2012

Reg. Function Templates  

Hi, In the following code, we have created a template function, We expected the output to display "A::A()" and "B::B()" but we are getting both as "B::B()". class A { public: A() { cout$PHXLESS$PHXLESSendl$PHXLESS$PHXLESS"A::A()"; } }; class B { public:... Continue Reading
Views : 58
Monday 26th of November 2012

How to make inline work  

Hi, group First, I write same cases I've already known, I don't concern that specific compiler really do inline or not. Please check them if they are right, and add the cases I miss 1. // a.h inline void f() ... Continue Reading
Views : 110
Monday 26th of November 2012

Looking for a C/C++ header to XML file converter  

Does anyone know of a good one? Can you point me in the right direction... Continue Reading
Views : 91
Monday 26th of November 2012

Smart pointer and thread programming  

Hi, In multi-thread programming, if I using smart pointers to store pointers to the same dynamically allocated objects, can memory leak be avoided? For example, two threads share the same dynamically allocated objects using smart pointer. The reference to the ... Continue Reading
Views : 86
Monday 26th of November 2012

Parsing c++ with typename-tagging  

... Continue Reading
Views : 47
Monday 26th of November 2012

=utf-8B4peY4peY4pa6U2F0ZWxsaXRlIFRWIG9uIHlvdXIgUEMgLSBXYXRjaCBpdCBGUkVFIE5vd+KXhOKXmOKXmA===  

Watch Satellite TV On Your Computer Without Paying Monthly Fees... ??? Save 1000's of $$$ over many years on cable and satellite bills. ??? Watch all your favorite shows on your Computer from anywhere in the World! ??? Plus Get ... Continue Reading
Views : 12
Monday 26th of November 2012

Re: Conspiracies Revealed!  

$PHXLESSconspiracy.black4$PHXGREAT wrote in message news:1186424404.655608.262110@d55g2000hsg.googlegroups.com... $PHXGREAT http://nasaconspiracy.net/conspiracy - Find out who really shot JFK!, $PHXGREAT learn how they faked the lunar landing, see what they are putting in $PHXGREAT our milk to... Continue Reading
Views : 62
Monday 26th of November 2012

Tired of modifying "resource.h"  

In a win32 project I have several compile errors for the resource *.rc. The first fews errors look like this error RC2144 : PRIMARY LANGUAGE ID not a number error RC2135 : file not found: MAIN_MENU error RC2164 : unexpected ... Continue Reading
Views : 87
Monday 26th of November 2012

C# calling C++ error (instruction at referenced memory could not be read)  

Hi, I have a C# assembly that is calling directly into C++ unmanaged code. Everything is working fine but at the very end of the process I get an application error, which says: "The instruction at (hexNumber) referenced memory at ... Continue Reading
Views : 476
Monday 26th of November 2012

template and NULL  

Hi guys, I've simple function template $PHXLESStypename T$PHXGREAT void testNull( T a ) { } and code that use it { testNull ( NULL ); }; gcc deduce type T as int in that case. And give me "passing NULL ... Continue Reading
Views : 107
Monday 26th of November 2012

How to implement the virtual constructor behavour in C++  

Hi, I know that in C++, there is no virtual constructor. But is there any way to implement it by using the virtual function? For example: We have a base class Shape, its constructor holds a string to indicate what ... Continue Reading
Views : 70
Monday 26th of November 2012

recursiveness on template member function of a template class  

Hi all, I am trying to do that, but it does not compile. I am not even sure this is possible. I have read somewhere that specialization inside a template class is not without specializing the class itself, but couldn't ... Continue Reading
Views : 177
Monday 26th of November 2012

.dll in VC++ 6  

Hey, We have a spectrometer. There is sofware we use to access one channel at a time but it does not send commands to acquire and display two channels of data. There is a library of C modules that can ... Continue Reading
Views : 24
Monday 26th of November 2012

2 basic questions about types and strings  

Hello, first of all I have a question about types: When I have a method like this... TYPE getStringValue() { string str = "test"; return str; } ....TYPE can't be "string" because "string" is no basic type. I made some ... Continue Reading
Views : 146
Monday 26th of November 2012

C++ Feature Help  

hi All, 1. Can I declare some of template functions into a class? a concrete class, not the template class. 2. How do I do the function pointer in C++? Since that function pointer is able to aceess any the ... Continue Reading
Views : 31
Monday 26th of November 2012

C++ programmings  

http://computer-programmings.blogspot.com... Continue Reading
Views : 44
Monday 26th of November 2012

Address of a member function  

hi, I searched in the groups here but didnt find any post answering my question. My question is I need the address of the member function in the same class. Is there anyway to go about it other than making ... Continue Reading
Views : 99
Monday 26th of November 2012

STL container class memory allocation  

Hello, I have a question on memory allocation for containers. I know what happens when I ask for a container of a certain size or when the container grows to accommodate new elements. The question I had is what does ... Continue Reading
Views : 73
Monday 26th of November 2012

I dunno  

I need help... Continue Reading
Views : 67
Monday 26th of November 2012

New Microsoft Windows (Windows DS) look here  

http://www.pennergame.de/ref.php?uid=4762 http://www.pennergame.de/ref.php?uid=5572... Continue Reading
Views : 59
Monday 26th of November 2012

=utf-8B4pa6RU5KT1kgZnJlZSBzYXRlbGxpdGUgdHYgb24geW91ciBwY+KXhA===  

The New Way To Enjoy Satellite TV on your PC! ??? Watch all your favorite shows on your Computer from anywhere in the World! ??? Save 1000's of $$$ over many years on cable and satellite bills ??? Plus Get ... Continue Reading
Views : 16
Sunday 25th of November 2012

* VC++ MFC Contractor Needed in Phoenix  

A+ Client needs a Visual C++ Developer with MFC for a contract position in Phoenix, Arizona area (Gilbert). ??? Hourly rate is the $50-$60 per hour range. ??? (And per diem..but local candidates are preferred) Description: The Developer performs the ... Continue Reading
Views : 23
Sunday 25th of November 2012

Interview question.  

Name two cases where you MUST use initialization list as opposed to assignment in constructors.... Continue Reading
Views : 118
Sunday 25th of November 2012

Re-usable singleton class that can construct pointers to objects with non-trivial constructors  

As the topic says, I wanted to make a re-usable singleton class that could create pointers to objects with non-trivial constructors. I came up with this: #ifndef SINGLETON_HPP #define SINGLETON_HPP template$PHXLESStypename T$PHXGREAT struct DefaultCreatorFunctor { T * operator()() const { ... Continue Reading
Views : 198
Sunday 25th of November 2012

looking for an allocator class  

Does anybody have a good allocator class for allocating lots of small objects in chunks ? Preferably one that is thread safe - or one that can be easily made thread safe - I can add the locking myself. Basically ... Continue Reading
Views : 151
Sunday 25th of November 2012

Get content from web file  

Hello Programmers, I try to get my application to work but i have a question! How can i get content from a file from http. Eg. http://test.com/text.txt $PHXLESS-- in this file i have for example a city name "Copenhagen" this ... Continue Reading
Views : 170
Sunday 25th of November 2012

help please - newbie learning c++  

I'm learning c++ and i can't build this example from a book: //file GradeBook.h #include $PHXLESSstring$PHXGREAT using std::string; class GradeBook { public: GradeBook( string ); void setCourseName( string ); string getCourseName(); void displayMessage(); private: string courseName; ... Continue Reading
Views : 201
Sunday 25th of November 2012