473,544 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C / C++ Forum

C / C++ programming language - Get answers to questions about compilers, visual C++, templates, namespaces, classes, data structures, OOP (object-oriented programming), inheritance, data types, exceptions, Standard Template Library (STL) and the C Standard Library.
2
1,161
thread by: AnOvercomer02 | last post Jul 23 '05 by: Ioannis Vranos
Hi. What is the best way to learn C++? None of the local schools near me teach any courses on the topic. Thanks. -- Cody Houston AnOvercomer02@webtv.net
2
1,835
thread by: lmo863 | last post Jul 23 '05 by: red floyd
Hi, I was wondering if any of you know what an easier way to turn matlab code into c++. I have had a look on the internet and Mathtools.com used to do a program called matcom, but it no longer exists, neither do any links to it within the site. Does anyone know if matcom is still available, or if there is any other software that will do...
2
1,685
thread by: pit3k | last post Jul 23 '05 by: sadhu
How can I call non-const member function of a member of a class in one of it's const qualified member function so that a compiler won't complain? Here's the code: bool otl_stream::eof(); class MyClass { otl_stream m_otl_stream; public:
2
1,110
thread by: cyberfire451 | last post Jul 23 '05 by: cyberfire451
I'm fairly new to C++ and have a question. I'm wodering if there is a way to only read a certain column within a file. For example: I have a file with this structured format, (it's just a text file) David Politzer X A to test a value I want to read in the X and not the rest. Any help would be appreciated. Note this is for and entry...
2
1,248
thread by: uuk007 | last post Jul 23 '05 by: uuk007
Hi, I am very new to C/C++ Programming... Please let me explain what the following code will do. #define Check(CN,VC) \ static void CN ## _save(WSDserialize*,void* ){} \
2
1,035
thread by: Gernot Frisch | last post Jul 23 '05 by: Karl Heinz Buchegger
class A { struct DATA { std::vector<std::string> descriptions, units; std::vector<double> values; std::string type, name; } elalin; }
2
1,948
thread by: DANIEL BEAULIEU J | last post Jul 23 '05 by: Andreas Wachowski
Basically i am a student taking an operating systems course which is c++ intensive. Familiar with Java, and so not so familiar with memory management. Looking for suggestions of exercises or web resources to help me become familiar with pointers and referencing etc. Thank you.
2
2,939
thread by: semi | last post Jul 23 '05 by: semi
I am pretty new to using C++ and I can't figure this out. I have class PTM that starts a thread. There is an array of structure to be shared between PTM class and thread function. For some reason, string data gets lost when it gets to the thread function. ---------- in PTM.h ---------- using namespace std;
2
1,326
thread by: msudalai | last post Jul 23 '05 by: EventHelix.com
Hi All, In C++, all the objects of a single class having separate data members. While all those objects are sharing a single copy of the member function. If it is the case where these member functions will be stored? whether it's on the text section of the process memory? Can any one explain this, how it works?
2
2,686
thread by: WahJava | last post Jul 23 '05 by: WahJava
Hi developers, I'm running GCC (GNU C/C++ Compiler shipped with Fedora Core 2). I've written a program using IOStream classes, in which I'm reading files in ios::binary mode. I'm using read() method (exact signature not remembered) of the std::istream class ? When I'm reading the value in objects attribute (member variable), the read fails,...
2
2,956
thread by: cppsks | last post Jul 23 '05 by: Andrey Tarasevich
namespace test { static const int num = 10; const int num2 = 20; } What exactly is the difference here? Which is preferred (if both mean the same)?
2
2,394
thread by: Barry Hynes | last post Jul 23 '05 by: barman
G'Day folks, Have been working on this problem for quite some time and still no farther ahead. :( Here is my problem...bare with me i am very green :) I have to implement a Safe List, that is derived from the STL class List and uses exception handling.
2
9,297
thread by: greyham | last post Jul 23 '05 by: Jerry Coffin
This is a beginner question but is there a better way to do this? I have an array of unsigned shorts and need to convert it into a string array with the numbers separated by spaces. I've started to make an intermediate string of characters that represents the digits. Am I on the right track? I know java so there must be a simple way in C++...
2
2,026
thread by: chirag | last post Jul 23 '05 by: Thomas Matthews
hi i am writing the following function . but does not seem to put the code in sequence. it does not compile. its kind of messed up. please help me improve it. thanks. void addToEndOfLinkedList(Node * &head) // Reads a series of integers from the keyboard (ending with -1) and // appends them to the end of the linked list pointed to by head. ...
2
1,539
thread by: PointNot | last post Jul 23 '05 by: rossum
I'm coding in Dev C++ by bloodshed my questions are.... I want to learn to create GUI windows interfaces, can I do it in here. I've never learned the visual aspect of C++ yet, and would like to learn, any good sites to help me out. THanks
2
1,151
thread by: salvo | last post Jul 23 '05 by: salvo
Hi, I made a little program in C++, which initially displayed its data to the standard output with the cout object. Now that I added a little graphic interface with gtk+, I'd like to keep the class code as indipendent as possible. This way, I could leave both version, graphic and not. In the graphic version, every object would output its...
2
1,167
thread by: Sonia | last post Jul 23 '05 by: Karl Heinz Buchegger
I have come across this solution to a tic tac toe game. It basically checks who won the game: Is there a better more efficient way of testing if the tic tac toe has been won/lost or is over? Thanks in advance, ========================== function User_Won : boolean if (takenx (1) = true and takenx (2) = true and takenx (3) = true) and...
2
2,001
thread by: TogaKangaroo | last post Jul 23 '05 by: Ioannis Vranos
Hi, I'm trying to get intimate with my new copy of the .NET Pro developing environment, specifically C++ Visual Studio. I have a book (VC++ in 21 days) that I am going through following their examples. However the book treats the MS VC++ 6.0 environment and I...as I mentioned am learning .NET. It hasn't been too large a problem so far, I'm...
2
1,595
thread by: Shalafi | last post Jul 23 '05 by: Ben Pfaff
Hi, I've modified an old library, flip (fuzzy logic stuff), to work with new gcc compiler, I've made operation like substituting #include <strstream.h> with #include <strstream> and inserted where useful "using std::str..". And i've modified the makefile to add the install and the uninstall target. Now i'd like to use autotools and automake...
2
2,351
thread by: Steve | last post Jul 23 '05 by: Victor Bazarov
I don't get it. In Codewarrior for Mac OS 9.4, numeric_limits<unsigned char>::digits10 == 2. Unless I don't understand it properly (most likely!) I thought digits10 was supposed to represent the number of digits (in base 10) a value of this type needs. In that case, shouldn't digits10 be 3 for an unsigned char (i.e. 255 can be represented...
2
26,918
thread by: Juhan Voolaid | last post Jul 23 '05 by: Ron Natalie
Hi I'm having hard time finding a way to convert: std::string input="10.5"; to float input2; help is appreciated, Juhan Voolaid.
2
1,324
thread by: gao_bolin | last post Jul 23 '05 by: adbarnet
I have the following situation: class A { public: virtual ~A() {} }; template < typename T > class B : public A
2
2,223
thread by: rasbury | last post Jul 23 '05 by: David Hilsee
If I were to include in the definition of a string class the following operators: class String { public: // ... operator const char *() const; // conversion to C-style string char operator(size_t i) const; // character indexing // ... };
2
3,027
thread by: ronny | last post Jul 23 '05 by: ronny
Can anyone tell me why the following code works fine using an array. <snip> double xVal; // array mxArray *X = NULL; //MatLab mxArrays
2
985
thread by: elena | last post Jul 23 '05 by: elena
I'm a Java/C++ developer who is also studying psychology. I'm looking at an attribute called "cognitive style" right now, and I'd like to get some responses that measure it using a sample of software developers. I can go to my friends, however it occured to me it might be interesting to post in a newsgroup to get a more diverse and random...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.