Forum: C++ 31 Days Ago |
| Replies: 1 Views: 202 I have an function in which I want to make a copy of an object.
ClassBase
{
public:
Tblk myTblk;
private:
}; |
Forum: C++ 34 Days Ago |
| Replies: 1 Views: 181 Hi,
I have a simple question on trying to set shared ptr to NULL.
I get an error(binary '=': no operator found which takes a right hand operand of type 'int') when I do this...
typedef... |
Forum: C++ Oct 29th, 2009 |
| Replies: 0 Views: 209 Hi,
I am trying to understand the concept of clone with respect to making a deep copy of an object. The class Bmapfile is an abstract class in which other subclasses will inherit from. I am not... |
Forum: C++ Aug 26th, 2009 |
| Replies: 2 Views: 366 Hi,
I was just wondering how to convert a vector<string> to vector<int>. I am using the transform function from <algorithm> but I am not sure what the format is.
vector <string > string;... |
Forum: C++ Jun 24th, 2009 |
| Replies: 2 Views: 264 Hi,
I was curious if I could return a vector from a virtual function. I keep getting an error for this.
Class A
{
public:
virtual vector<int> getSomeStuff();
private: |
Forum: C++ Jun 20th, 2009 |
| Replies: 0 Views: 292 Hi,
I am struggling with the best way to twiddle a large number of bits.
What I have is a large amount of binary files(~100) in my directory that I need to do post processing on. I want to... |
Forum: C++ Jun 18th, 2009 |
| Replies: 11 Views: 741 ARgghh. Thank you Dave. Somehow my binary file seems not to be binary anymore. You are right. Maybe it got changed somehow when I kept modifying the extensions.
One question I had though is on... |
Forum: C++ Jun 18th, 2009 |
| Replies: 11 Views: 741 Hi,
I tried all the above examples but for some reason do not get the right value. I should have stated that I am using a binary file and opened up the file in VIM and changed the file with the... |
Forum: C++ Jun 18th, 2009 |
| Replies: 11 Views: 741 Hi,
I am a newbie to C++ and want to know how to parse thru a binary file. I am having some trouble with some simple code.
I have a sample binary file(test.bdb) that has "0069 0045 0089 0090"... |
Forum: C++ Apr 14th, 2009 |
| Replies: 5 Views: 566 Is there anything that is free that I can use? I saw Install shield is pretty expensive. |
Forum: C++ Apr 14th, 2009 |
| Replies: 5 Views: 566 Hi,
I am new to Visual Studio 2005 and wanted to package up my code into a .EXE file. I also have other code not specific to Visual Studio that I want to package(LabWindows CVI). Can anyone give... |
Forum: C++ Nov 19th, 2008 |
| Replies: 2 Views: 859 Hi,
I am writing output to a file and am using ostream. I wanted to format my output and not sure how to do it.
Here is some simple code.
int var1;
int var2;
ofstream out("blah.txt");... |
Forum: C++ Nov 4th, 2008 |
| Replies: 0 Views: 1,026 Hi ,
I am trying to use a Boost shared ptr with a map template. I have a bunch of subclasses that will be derived from class TestSuperClass. I will then used a shared_ptr to point to the class... |
Forum: C++ Nov 1st, 2008 |
| Replies: 2 Views: 504 Hi,
I am trying to parse a txt file in C++. I usually use perl to parse thru text files but need to do it in c++.
Here is my text file.
NAME BITMAPVBIREFE
MESSAGE VirginBitMapiIrefE... |
Forum: C++ Oct 25th, 2008 |
| Replies: 5 Views: 609 I actually created a copy constructor, so I wouldn't have that exact problem that you mentioned. I dont know if the issue is with the copy constructor that I used. I probably should just try this by... |
Forum: C++ Oct 24th, 2008 |
| Replies: 5 Views: 609 Hi,
I keep getting an error in Visual Studio C++. I am trying to create a copy constructor but keep getting this error.
"Windows has triggered a breakpoint in test.exe.
This may be due to a... |
Forum: C++ Oct 9th, 2008 |
| Replies: 5 Views: 900 I was trying to get an element from the Structure by assigning it a pointer to the structure. I was wondering why I couldn't just include the structure within the public part of the class definition.... |
Forum: C++ Oct 9th, 2008 |
| Replies: 5 Views: 900 I am a little confused with class scope. Lets say that you have a class.
//file.h
struct B
{
int BB;
char CC; |
Forum: C++ Oct 8th, 2008 |
| Replies: 3 Views: 593 If I have a bunch of structures defined within a class header file but outside the scope of the class how would I set a SETTER function to change the values.
struct VoltageValues
{
... |
Forum: C++ Oct 8th, 2008 |
| Replies: 7 Views: 1,964 I have another question.
class TblkArray
{
public:
TblkArray();
~TblkArray();
struct VoltageValues *getVoltageValues();
void setVoltageValues(struct... |
Forum: C++ Oct 8th, 2008 |
| Replies: 7 Views: 1,964 Ahh, thank you very much Ark for your clear explanation. I understand now. |
Forum: C++ Oct 8th, 2008 |
| Replies: 7 Views: 1,964 Thank you for your reply Ancient Dragon. This may be a very stupid question but why do I have to use the scope resolution operator in the Class. Since I am using the function within the namespace of... |
Forum: C++ Oct 7th, 2008 |
| Replies: 7 Views: 1,964 Hi,
I am new to C++ and trying to write a function that returns a pointer to a structure.
I have a header file as follows.
class Blah
{
public:
struct Values *getValues(); |
Forum: C++ Jul 13th, 2008 |
| Replies: 4 Views: 449 My company will pay for course so they want to train us in a week rather then us have to take a 3 month community college course. Just an introduction to C++ in a 5 days. I found on google that... |
Forum: C++ Jul 13th, 2008 |
| Replies: 4 Views: 449 Hi,
I was wondering if anyone knew of a good 5 day C++ class in the bay area or southern california. My company is looking to send a few of us to a week long training. The only one that I found... |