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.
2
6,502
thread by: jhasse | last post Mar 1 '06 by: BobR
How can I create spaces with the create_directory() function?? When i use this boost::filesystem::create_directory("bla bla"); it throws. When I user boost::filesystem::create_directory("blabla"); it works, but i need a space. How can i do it?
1
1,541
thread by: Marek Franke | last post Mar 1 '06 by: mlimber
Hello, I have written a small program which creates a small object from a class: --------------- #include "Object.hpp" Object obj; obj.init(); std::cout << obj.no << std::endl; ---------------
1
10,734
thread by: khaleel.alyasini | last post Mar 1 '06 by: mlimber
Hello sirs & madams, I'm currently working on DCT compression algorithm as my project. My knowledge on C++ and DSP is rather weak/moderate. I was wondering if any could help me and teach me the guidelines of DCT image compression. Basically, this is my coding in C++ on extracting pixels values from a RAW image file. It has errors, anyone...
12
2,292
thread by: manochavishal | last post Mar 1 '06 by: Keith Thompson
Hi, I am having strange problem in my Program. I cannot paste the whole program as it is huge so just pasting the lines i think are necessary. I am passing a integer array pointer to a function. **********
2
1,729
thread by: utab | last post Mar 1 '06 by: utab
Hi, there Assume that I have three vectors x,y and z that has the same number of elements. Can I use a common iterator for these three. I did it with iterx, itery and iterz but the thing I wondered was: in a for loop you can write array elements by using the same index such as; for (int i = 0 ; i!=10; ++i ) cout << x << y << z <<...
5
2,366
thread by: Will | last post Mar 1 '06 by: Tomás
Hi, I'm linking into a library that has a global constant with the same name as one in my application. My references to the constant are being linked to the value in the library instead of the one in my source file. Both constants are extern so I'm assuming it's undefined which value I get. Obviously this is one of the reasons why...
7
2,383
thread by: Tomás | last post Mar 1 '06 by: Fei Liu
I have a Graphical User Interface program and I'm working with numbers written in base-10. Is there a better way than the following to get the digit value? unsigned GetDigitValue( char const c ) { switch ( c ) { case '0': return 0;
7
1,919
thread by: tron.thomas | last post Mar 1 '06 by: wkaras
Please consider the following code: class Abstract { public: virtual ~Abstract() {} virtual void Method() = 0; }; class Concrete : public virtual Abstract
1
1,704
thread by: Tomás | last post Mar 1 '06 by: peter koch
Is the numerical value for a wide character the same as it is for a normal character, by which I mean: 'a' == static_cast< char > ( L'a' ); '7' == static_cast< char > ( L'7' ); 'k' == static_cast< char > ( L'k' ); 'w' == static_cast< char > ( L'w' );
3
10,353
thread by: maigork | last post Mar 1 '06 by: void * clvrmnky()
C All-In-One Desk Reference For Dummies.pdf if it exist can anyone tell me where i can dovnload it? Thank you verry much!!!!
11
2,127
thread by: manochavishal | last post Mar 1 '06 by: Default User
Hi, Can anyone recommend Book on C which covers all the advanced topics. Looking for the most advanced book on C. i have gone thru Expert C Programming. Something on those lines with multi threading and algorithms. Cheers Vishal
4
1,626
thread by: Allerdyce.John | last post Mar 1 '06 by: Victor Bazarov
Hi, I have 2 classes: class A { public: A(); A(int i); };
1
2,032
thread by: shyam | last post Mar 1 '06 by: Alf P. Steinbach
Hi All Does ofstream.close() ever fail? If yes then how do i ckeck for it? Also ,suppose i have a open() call and a cloas() call inside the same try catch block how do i differentiate between wheather its an file opening error or file closing error?
22
2,849
thread by: SF | last post Mar 1 '06 by: Walter Roberson
Hello All, In a windows C learning project I am wokring on I use the system function to run a command, I want to suck the results into a vairable. The system function seems to only return an int. I would like to know how could this is done? I can see only one way currently and I know that there must be a better method. Right now I would be...
2
3,839
thread by: jai | last post Mar 1 '06 by: hall
I want a c++ program to convert an array of pixel values into a 8-bit BMP file.i want the detail of how to write a common color palette for creating a 8-bit BMP file.
4
2,744
thread by: Deephay | last post Mar 1 '06 by: braveconf
Greetings all, How can I get the filenames in the current directory? I am working under linux, g++ compiler. TIA. Deephay
11
332
thread by: questions? | last post Mar 1 '06 by: Thad Smith
I am curious about whether I should do this say I want to calculate dot product of two matrix(4X4,fixed) I do two ways 1) void dot_product(double A , double B, double result){ blah blah }
1
1,611
thread by: Jean-pierre Martineau | last post Mar 1 '06 by: Phlip
how implement design pattern in style of object oriented programming in c ? I think it could be simulate Object oriented by subtitute heritance style by agregation style. what you think about that ?
2
2,124
thread by: Rob_S | last post Mar 1 '06 by: Michiel.Salters
I have a program which saves time stamped files into time stamped directories. When I want to read these files, I get the current date and check for the existence of the directory using.... while (!(_chdir(dirname)) == 0) {reduce the directory name (time) and check again} This method quickly finds the last directory but I don't know...
2
3,031
thread by: jai | last post Mar 1 '06 by: Rolf Magnus
c++ code to include color palette for writing a 8- bit BMP file
8
1,586
thread by: jamihuq | last post Mar 1 '06 by: pemo
Hello all, I just wondering if the following is supported in C: inline char* myfunc(unsigned int aLen, char *aFormat, ...) Thanks Jami
1
1,741
thread by: Alex | last post Mar 1 '06 by: Alex
Hello, I'm working in VS 6.0. During the debuging output console gave me line like this (there are 17 of them, all of them belong to folder include in VC98): :\program files\microsoft visual studio\vc98\include\new(36) : error C2059: syntax error : 'constant' c:\program files\microsoft visual studio\vc98\include\new(36) : error C2091:...
27
1,818
thread by: free2cric | last post Mar 1 '06 by: free2cric
Hi, I have declared pointer of pointers **a; so In a loop I assign a block to a pointer and put a value in it and then I want to print these values. My following program doesnt work. Also How to do same program with int *a; (array of pointers). Any help would really help.
30
1,846
thread by: manochavishal | last post Mar 1 '06 by: manochavishal
HI int *p; *p = 4; char * msg; *msg = 'c'; printf("msg is %s",msg);
3
4,308
thread by: shell6 | last post Mar 1 '06 by: MaRKoV
I get a few errors building a prog with _beginthread. I have done the proper compile options and included libcmt.lib in linking, but I still get these errors: libcimtd.lib(streamb.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z) libcimtd.lib(iostrini.obj)...

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.