My account: Login | Sign Up
Loading... 
<

C++ (Non Visual C++ Issues) | Forum profile

Forum profile page for C++ (Non Visual C++ Issues) on http://www.codeguru.com. This report page is the aggregated overview from a single forum: C++ (Non Visual C++ Issues), located on the Message Board at http://www.codeguru.com. This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period. Additional forum profile information for "C++ (Non Visual C++ Issues)" on the Message Board at http://www.codeguru.com is also shown in the following ways:

1) Latest Active Threads
2) Hot Threads for Last Week

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.

Site: CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions - C++ (Non Visual C++ Issues) (site profile, domain info codeguru.com)
Title: C++ (Non Visual C++ Issues)
Url: http://www.codeguru.com/forum/forumdisplay.php?...
Users activity: 38 posts per thread
Forum activity: 232 active threads during last week
 

Posting activity on C++ (Non Visual C++ Issues):

  Week Month 3 Months
Threads: 232 1,060 3,114
Post: 1,062 4,200 11,794
 

C++ (Non Visual C++ Issues) Posting activity graph:

Posts by:  day  week  month 

Top authors during last week:

Name Posts
Lindley 152
TheCPUWizard 148
ac3x 86
laserlight 56
Peter_APIIT 34
Salvadoravi 34
treuss 32
Paul McKenzie 32
Russco 26
exterminator 24
 

Latest active threads on C++ (Non Visual C++ Issues)::

CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions
Started 4 days, 10 hours ago (2008-11-17 00:58:00)  by ac3x
Hello! I have been searching Google for hours and can't seem to figure this out. I have the following the stuct which contains a lot of different values. Let's say that each struct is about 400 bytes. struct table_row { char name[255]; unsigned int id, status; ... etc. }; Now lets say I create an array of 100,000 pointers, each pointing to a struct allocated in ...
Thread:  Show this thread (82 posts)   Thread info: qSort: Pointers to Structs Size: 1,152 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "qSort: Pointers to Structs :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions
Started 1 week, 2 days ago (2008-11-11 17:12:00)  by KDRAM
hello i am trying to create a program for a assingment for my course and i cant see where i am going wrong. the program was written in Bloodshed Dev-C++ version 4.9.9.2. the program is meant to allow a user to either A) enter a name and have it saved into a text file or B) allow a user to retreave a name saved in that text document. it has a case switch to make the selection. ...
Thread:  Show this thread (17 posts)   Thread info: a N00B in need of some help Size: 3,166 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "a N00B in need of some help :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions
Started 2 days, 22 hours ago (2008-11-18 13:22:00)  by ulumulu
Good day Lets say I have Code: template <class T> void setMode (const std::vector &objParameters) { for(int i = 0; i < objParameters.size(); i++) { std::string str = objParameters[i]; std::cout<<str<<std::endl; } }; Why it still request to convert to string. As I understand string...
Thread:  Show this thread (11 posts)   Thread info: [RESOLVED] Show what's inside vector Size: 861 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "[RESOLVED] Show what's inside vector :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions
Started 3 days, 21 hours ago (2008-11-17 14:25:00)  by Salvadoravi
Hi Gurus, What is the preffered way to check if opening a file failed? I know about bad() but is there a better way, let's say one that I would actually know what was the failure ? Code: std::ofstream MyFile; MyFile.open("C:\\MyFile", std::ios_base::out | std::ios_base::out); if (MyFile.bad()) { // Failed to open the file } Using win32 CreateFile() make ...
Thread:  Show this thread (10 posts)   Thread info: Opening a file ? Size: 902 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Opening a file ? :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions
Started 4 days, 6 hours ago (2008-11-17 05:18:00)  by Graham
longs are integers. So are shorts and chars. It's all a matter of how many bytes the particular system uses for each. What I put above is quite easily generalisable to any size of integer (and to remove the intermediate string): Code: template <typename int_type> void func(int_type val) { for (int i = sizeof(val); i > 0; --i) { int shift = 8*(i-1); // 8-bit bytes assumed!...
Thread:  Show this thread (10 posts)   Thread info: Question about conversion Size: 783 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Question about conversion :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions
Started 3 days, 1 hour ago (2008-11-18 10:27:00)  by mop65715
Consider Code: # include <limits> # include <iostream> /* -------------------------------------------------- ----------------------------- | class maybe -------------------------------------------------- ----------------------------- */ class unit_test_maybe ; // forward declarion of unit_test_maybe class maybe { friend class unit_test_maybe ; int m_dummy ; ...
Thread:  Show this thread (6 posts)   Thread info: friend class confusion Size: 3,312 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "friend class confusion :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions
Started 3 days, 6 hours ago (2008-11-18 05:26:00)  by msmohanbabu
Hi i am a beginner in C++ .. could any one explained the Title code.? Then what is the function of ' Trace' in c++?. virtual void function(const void *args)=0; Thank you.
Thread:  Show this thread (4 posts)   Thread info: virtual void function(const void *args)=0; Size: 256 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "virtual void function(const void *args)=0; :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions
Started 6 days, 17 hours ago (2008-11-14 18:08:00)  by Salvadoravi
Hi Gurus, What is the standard (and safest) way to format a string ? TCHAR szMessage[1024]; ??????? (_T("My message is HRESULT=%ld"), hr); so the result will be: szMessage = message is HRESULT=1032 Many thanks!
Thread:  Show this thread (10 posts)   Thread info: How to format a string? Size: 324 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "How to format a string? :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions
Started 2 days, 22 hours ago (2008-11-18 13:07:00)  by Anuki
This year I'm getting a computer programming course in college. Since I've had some experience with programming I bought myself some books (Sam's Teach Yourself C++ and C++ For Mathematicians) to get ahead of class . But I find the way they teach c++ a bit strange. First of all they're using an outdated devc++ (4.970). And second, the code they use differs from what I've read in more recent...
Thread:  Show this thread (3 posts)   Thread info: Can someone shed some light on this :) Size: 2,144 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Can someone shed some light on this :) :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions
Started 2 days, 22 hours ago (2008-11-18 13:09:00)  by maitopoika
disregard I posted this on the wrong site.. My apologies!
Thread:  Show this thread (1 post)   Thread info: [RESOLVED] newbie.. help writing from a form to mySQL Size: 65 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "[RESOLVED] newbie.. help writing from a form to mySQL :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
 

Hot threads for last week on C++ (Non Visual C++ Issues)::

C++ (Non Visual C++ Issues)
Started 4 days, 10 hours ago (2008-11-17 00:58:00)  by ac3x
Hello! I have been searching Google for hours and can't seem to figure this out. I have the following the stuct which contains a lot of different values. Let's say that each struct is about 400 bytes. struct table_row { char name[255]; unsigned int id, status; ... etc. }; Now lets say I create an array of 100,000 pointers, each pointing to a struct allocated in ...
Thread:  Show this thread (82 posts)   Thread info: qSort: Pointers to Structs Size: 1,152 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "qSort: Pointers to Structs :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
C++ (Non Visual C++ Issues)
Started 4 days, 6 hours ago (2008-11-17 05:14:00)  by laserlight
Personally, I find it easier to derive from std::logic_error or std::runtime_error and their derived classes instead of directly deriving from std::exception since it makes specifying the (default) error message somewhat easier. Besides, it also gives a better hint of what kind of exception you are defining.
Thread:  Show this thread (21 post)   Thread info: Using std::exception() to throw my Size: 309 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Using std::exception() to throw my "own' exceptions :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
C++ (Non Visual C++ Issues)
Started 1 week, 1 day ago (2008-11-13 02:04:00)  by galapogos
Hi, May I know how to initialize a large constant array? I'm trying to do so by the following code: Code: const unsigned char tempary[1024]; memset(tempary, 0x5a, 1024); This compiles and runs perfectly, but when I run PC-Lint on it, it gives me a warning. How do I get rid of the warning w/o suppressing it? I'm involved in the project and one of the project requirements is 0 ...
Thread:  Show this thread (16 posts)   Thread info: Initializing a large constant array Size: 737 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Initializing a large constant array :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
C++ (Non Visual C++ Issues)
Started 4 days ago (2008-11-17 11:10:00)  by cooperised
Hi, I'm having difficulty finding a way to implement part of a matrix library I'm writing. Here's a distilled version of the code, to demonstrate the problem: Code: class Vector { public: virtual Vector *getTranspose() = 0; } class RowVector : public Vector { public: virtual ColumnVector *getTranspose(); } class ColumnVector : public Vector { public: ...
Thread:  Show this thread (16 posts)   Thread info: [RESOLVED] Forward declarations and covariate return types Size: 1,731 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "[RESOLVED] Forward declarations and covariate return types :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
C++ (Non Visual C++ Issues)
overload matrix - 30 new posts
Started 1 week ago (2008-11-13 11:52:00)  by satekazumi
how to overload using operator+ with matrix example i enter in a1,a2,a3,a4 format then i enter another in b1,b2,b3,b4 format how to use operator+ to add this 2 together Code: #include <iostream> using namespace std; class matrix { public: matrix operator+(matrix); matrix(); matrix(int,int,int,int,int,int,int,int); friend ...
Thread:  Show this thread (15 posts)   Thread info: overload matrix Size: 2,585 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "overload matrix :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
C++ (Non Visual C++ Issues)
Started 1 week ago (2008-11-14 08:55:00)  by gammaman
I am mainly a java programmer trying to learn some other languages. Does C++ have any built in data structures like java does? Which pre-processor directive are they located in? How do I use them?
Thread:  Show this thread (15 posts)   Thread info: question about data structures Size: 198 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "question about data structures :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
C++ (Non Visual C++ Issues)
Started 1 week, 1 day ago (2008-11-13 02:26:00)  by umen
Hello all is there any way to handle creation and general handling of directories and files in c++ ? ( with out external libraries ) or maybe pure C ? Thanks
Thread:  Show this thread (14 posts)   Thread info: how to handle directories and files cross platform way Size: 192 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "how to handle directories and files cross platform way :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
C++ (Non Visual C++ Issues)
Started 6 days, 19 hours ago (2008-11-14 16:13:00)  by Lindley
I know that using auto_ptr in a *general* way inside a vector is bad. However, I am curious whether it might be acceptable in a vector which is never expected to be resized or copied. It seems like such a use should be fine.... My notion is: 1) Clear the vector whenever its size is to change. 2) Resize it. We should have a bunch of empty auto_ptrs. 3) Assign new'd pointers to some of them....
Thread:  Show this thread (11 posts)   Thread info: Use of auto_ptr in a vector Size: 616 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Use of auto_ptr in a vector :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
C++ (Non Visual C++ Issues)
Started 1 week ago (2008-11-13 16:55:00)  by manfromohio
Hi I am newbie to C++. I have a problem with compiling my code. I installed the GSL library from Gnuwin32 in its default location (C:\Program Files\) and tried to compile a sample program form the GNU help manual. Although the code itself is not the problem, I have pasted it below. It seems like my Borland C++ compiler is unable to read the header files. HTML Code: #include <...
Thread:  Show this thread (11 posts)   Thread info: Header files not being read Size: 1,511 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Header files not being read :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."
C++ (Non Visual C++ Issues)
Started 1 week ago (2008-11-13 16:54:00)  by hwttdz
So I've never really learned much about compilers, and I was a little surprised to find the executables produced by these two code bits differ. Do they differ in a significant way? I always assumed the compiler treated the operator functions like most other functions. Is there some tool I can use on a linux box to examine in some way how they differ, i.e. is it only a few locations in the code...
Thread:  Show this thread (11 posts)   Thread info: How do these executables differ Size: 2,338 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "How do these executables differ :: C++ (Non Visual C++ Issues) :: CodeGuru Forums - A Developer.com Community for C+..."