473,787 Members | 2,932 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.
21
4,201
thread by: utab | last post Mar 1 '06 by: Gavin Deane
Hi there, Is there a way to convert a double value to a string. I know that there is fcvt() but I think this function is not a part of the standard library. I want sth from the standard if possible. The thing I am trying to do is to convert a double value to a string with 8 elements. 8 is fixed because of the files I work with. I will...
0
2,176
thread by: John | last post Mar 1 '06 by: John
EXECryptor Software Copy Protection and License Management System is updated to version 2.3.7 News: · Now all license type can use trial restrictions function. To set a trial period you can use current date or the application release date. Binding to application release date allows to generate the serial numbers valid for all software...
2
1,754
thread by: dex | last post Mar 1 '06 by: Greg
hi, i am just trying to implement Iterator pattern in C++, I just stuck up with how to use interfaces, Please help me in how to use interfaces in C++, Can i use abstract base class instead of interfaces? thanks,
0
2,719
thread by: Arne Gemsa | last post Mar 1 '06 by: Arne Gemsa
Hi, does anybody know, how I can get the serial from a SD-Card under Windows? I´ve tried it with WMI but the serial field of the struct is empty. Regards, Arne
12
3,284
thread by: gooch | last post Mar 1 '06 by: Christian Bau
I originally posted the following code in a group discussing threads but after further research I think I have a c question about the code. I know there are a couple of non standard c includes here and the POSIX stuff is non standard but this is how I stumbled onto this question. #include <INTEGRITY.h> #include <stdlib.h> #include...
3
1,581
thread by: Jordan Taylor | last post Mar 1 '06 by: Neelesh Bodas
Hi, can anyone suggest how the compiler will decide which bar() to invoke when we call d.dio()? I am getting the following output: B foo B bar but is there a situation when the same code can print B foo D bar
1
1,550
thread by: uiblog | last post Mar 1 '06 by: CBFalconer
Hi, The User Interface Community is a new message board for discussions about design, human-computer interactions, patterns, usability... Please have a look at it and let me know what you think. http://community.user-interface.org/ Cheers, Marco
4
2,204
thread by: coinjo | last post Mar 1 '06 by: red floyd
Can anyone tell me where to find the code which these built in functions work on?
3
2,778
thread by: Karl | last post Mar 1 '06 by: Greg
Hey everyone! So I'm trying to write a library which mimics the Java API using C++ (http://sf.net/projects/jalp4cpp). I've got some stuff done, but I can't get the following code to work properly: class String; class Exception {
0
287
thread by: VisionQuest | last post Mar 1 '06 by: VisionQuest
FREE newsletter from recruiter of 20 years! Feel like your resume is one of thousands? Don't know if your cover letter should be short or long? Wondering how to ace that interview? Successful recruiter of 20 years tells you what recruiters and employers look for. Learn how to stand out from the crowd, be an "A" candidate, tell a good...
13
5,054
thread by: Steve Edwards | last post Mar 1 '06 by: Kai-Uwe Bux
Hi, Given a map: typedef map<long, string, greater<long> > mapOfFreq; Is there a quicker way to find the rank (i.e. index) of the elememt that has the long value of x? At the moment I'm iterating through the map and keeping count of when I hit it.
16
5,168
thread by: Lilith | last post Mar 1 '06 by: Jerry Coffin
I'm working on a simple piece of code under VC++ 6.0. I've got a char Buffer array into which I copy the contents of an MFC control. The string is properly nul terminated. I use strcat (Buffer, "\r\n") to append a carriage return\line feed to the string before outputting it to a display where I can monitor what's being exchanged with...
33
2,592
thread by: Protoman | last post Mar 1 '06 by: adolfo.dimare
Which is better for general-purpose programming, C or C++? My friend says C++, but I'm not sure. Please enlighten me. Thanks!!!!!
7
5,213
thread by: Freyr | last post Feb 28 '06 by: Jerry Coffin
Hello, I'm taking an independant course in C++, and one of my questions asks to use the following algorithm to deturmine the factors of any given number: -- Initialize a counter at 2 So Long as long as the counter is less than or equal to the number if the counter divides the number evenly display the counter
9
2,667
thread by: alan | last post Feb 28 '06 by: Howard
Hello, can somebody help me with this self written rtrim function? i do always get a access violation on the line where i want to terminate the string: str = '\0'; why can't i acces this specific position? void rtrim(char *str) { for( int i=strlen(str)-1; i>= 0; i-- ) {
13
31,067
thread by: jamihuq | last post Feb 28 '06 by: jamihuq
Can someone please tell me what I am doing wrong. I wrote this static inline function to test another function and I am getting errors which make no sense to me. thanks Jami /* test2.h */ static inline unsigned int test3(unsigned int aValue)
4
2,344
thread by: copx | last post Feb 28 '06 by: Keith Thompson
I wonder how portable the exact width types defined by stdint.h are. I guess target platforms are not required to actually have all those types, right? What happens in that case?
5
1,741
thread by: lars.uffmann | last post Feb 28 '06 by: Roland Pibinger
Okay, I guess the answer is "yes". But where can I find it? I was thinking of something like php.net, just for c++. Preferably some documentation that refers to the same standards that the gnu c++ compiler does (I'm using g++ V3.3.5 under Suse Linux 9.3). In this specific case I wanna know the easiest way how to convert an integer into a...
0
1,760
thread by: julianlzb87 | last post Feb 28 '06 by: julianlzb87
Illuminated manuscripts, 13 volumes http://ptlslzb87.blogspot.com/
1
6,789
thread by: khaleel.alyasini | last post Feb 28 '06 by: Victor Bazarov
Hi, I am a student currently working on a project that requires discrete cosine transform program. It would be much better if the program consists of the whole image compression schemes i.e. DCT transform, quantization and coding. Does anyone have any sources on this? I would be grateful if anyone can email me to the above address. Thanks...
1
5,667
thread by: Plissken.s | last post Feb 28 '06 by: Artie Gold
Hi I have a problem which result in a "corrupted double-linked list error", I would need some help in trouble shot this one: Here is a stack track: Thread (Suspended: Signal 'SIGABRT' received. Description: Aborted.) 15 __kernel_vsyscall() 0xb7f25402 14 raise() 0x00646118 13 abort() 0x00647888
1
2,006
thread by: kathy | last post Feb 28 '06 by: Victor Bazarov
I have code: std::stringstream sStream; double pi = 3.14159; .... sStream << pi; //????????????? std::str = sStream.str(); //I want str show the scientific format.
0
1,411
thread by: uiblog | last post Feb 28 '06 by: uiblog
Hi everybody, The User Interface Community is a new message board for discussions about design, human-computer interactions, patterns, usability... Please have a look at it and let me know what you think. http://community.user-interface.org/ Cheers, Marco
1
1,837
thread by: Mladen Adamovic | last post Feb 28 '06 by: Victor Bazarov
Why is memory safe that function allocate inner object and return its result? That inner object is destroyed when function come to the "return" statement. Is default copy contructor doing some job? Can somebody explain me what exactly is happening in the following code when it invoke boo myres=calculateSomething(12); #include <iostream>...
9
1,984
thread by: Grant Schoep | last post Feb 28 '06 by: CBFalconer
I recently inherited some older C code and saw something I haven't really seen before. I noticed it as it fails to compile at my home computer, as it has a newer (4.x vs 3.x ) gcc compiler. Its a private function, inside a function. Something like this. void myFunc(...) { static void myPrivateFunc(...) { }

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.