473,799 Members | 2,935 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.
1
1,462
thread by: Shisha Girl | last post Mar 2 '06 by: mlimber
http://groups.google.com/group/Hookah-Lovers Join the hookah-lovers group forum for all the best insider info on smoking hookahs. Shisha Girl
1
1,474
thread by: Raghu | last post Mar 2 '06 by: mlimber
Hello all, I need small help regarding the diffrences of .obj files . what is the difference in the .obj files in the following two cases apart from teh names of the variables and functions? 1) the .obj file created when x.c is compiled noramlly as a "C" file? 2) the .obj file created when x.c is forced to be treated as CPP file by using...
6
2,122
thread by: funmachine | last post Mar 2 '06 by: Daniel T.
Hi there, everyone! I'm a student studying computer animation. But alas, in order to graduate I have to take a programming class and it's kicking my butt. I have two projects left to write (and believe me, to some of the veterans out there, it'll be a piece of cake) one of which takes a character array and capitalizes where necessary - eg....
0
373
thread by: are.ehibou.com | last post Mar 2 '06 by: are.ehibou.com
Just started my blog. http://are.ehibou.com
4
1,683
thread by: key9 | last post Mar 2 '06 by: key9
Hi All simple question: 1.==================================== { int* p_1 = new int(); }; //will p1 leak?
2
3,936
thread by: Fred Zwarts | last post Mar 2 '06 by: Rolf Magnus
Consider the following code: // Start of code class MyException_t { public: // Default constructor.
1
2,608
thread by: SKP | last post Mar 2 '06 by: Rolf Magnus
Hi, I am trying do a basic liked list program, where i am adding nodes at the end. Adding part is fine, but removing part is not working. Here is the code: --------- #include<string> class List { struct node {
8
1,691
thread by: Yong W | last post Mar 2 '06 by: Greg
if A and B are Class type, what's mean about the next sentence? " int A::*B::*pMember; " And how to use this pointer ? we assume A and B's definition is: class A { int a;
3
2,787
thread by: Water Cooler v2 | last post Mar 2 '06 by: Carlos J. Quintero [VB MVP]
How does one use a .pdb file that contains debug symbols for a project. It contains binary data. How do I use it to diagnose the application?
1
1,686
thread by: Frank-René Schäfer | last post Mar 2 '06 by: Neelesh Bodas
Imagine: void my_func(int x) { cerr << "int"; } void my_func(double x) {cerr << "double"; } template <typename T> void some_other_function(T some_f) { some_f(1); } int main(int, char**) {
4
4,862
thread by: wqyuwss | last post Mar 2 '06 by: wqyuwss
Hi, We have several core dumps in our product. These core dump can be reproduced in the same place. That is system function call std::basic_istream<char,std::char_traits<char>>::getline. The result of pstack for the core dump is > pstack core | c++filt
3
2,289
thread by: bite me if you can... | last post Mar 2 '06 by: SM Ryan
The man page of fork() says that the file descriptor are shared by parent process & childern processes, so any operation of file descriptor will affect them both. But why the behavior of FILE doesn't like file descriptors? This is my program, the result of operation of file descriptor is ideal, but result of operation of FILE is amazing......
2
1,592
thread by: Rafał Maj Raf256 | last post Mar 2 '06 by: Rafał Maj Raf256
Test case: #include <boost/shared_ptr.hpp> using namespace boost; template <typename typ1> class cData { public: template <typename T> T As() { } // As };
2
6,239
thread by: bite me if you can... | last post Mar 2 '06 by: Keith Thompson
The prototype of mmap() is: void * mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset); The second argument len is used to tell mmap() how many bytes I want to map. My question is: If len that i give to mmap() is larger than the size of mapping file, and some data are wrote to these exceeding speces, where are these...
0
1,335
thread by: Shisha Girl | last post Mar 2 '06 by: Shisha Girl
http://groups.google.com/group/Hookah-Lovers Shisha Girl invites you to our hookah forum to et all the insiders info on the hookah and where to buy the best shisha tobacco as well as the great discussions. Shisha Girl
4
1,743
thread by: Mirek Fidler | last post Mar 2 '06 by: Randy Howard
http://upp.sourceforge.net/ Ultimate++ 602 was released. Ultimate++ is a radical and innovative C++ platform whose number one priority is programmer productivity. In this respect, U++ competes with popular scripting languages while preserving C/C++ runtime characteristics. U++ 602 highlights: Library
3
1,997
thread by: utab | last post Mar 2 '06 by: benben
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 <<...
3
1,785
thread by: # include | last post Mar 2 '06 by: Keith Thompson
you can construct stack in easy way in C as following #include<stdio.h> # define MaxStack 10 int top=0; void clearstack(int stack); int emptystack(int stack); int fullstack(int stack); void pushstack(int stack,int newelements); void popstack(int stack,int *element);
1
3,579
thread by: Brian Hall | last post Mar 2 '06 by: Alf P. Steinbach
I have both mingw and cygwin on a Windows machine. I have installed Eclipse, with the CDT, and written a 'Hello World' test program. I would like Eclipse to use the mingw complier but looking through the project's settings Eclipse seems to have created its own PATH variable with c:/cygwin/bin ahead of a suitable path to the mingw binaries....
10
2,988
thread by: sk | last post Mar 2 '06 by: Old Wolf
Hi everyone, I'm kind of new to C programming, so I thought that a newsgroup would be the best place to ask a question about this. I'm trying to write a small program that displays a menu and has the user input a value(int). I'm only using getchar and printf to make things simple. I have the menu printing part down pretty well, but I'm...
25
11,394
thread by: Allie | last post Mar 2 '06 by: Flash Gordon
How would I go about sorting this structure by title? typedef struct { char author; char title; char code; int hold; int loan; } LIBRARY;
3
3,210
thread by: jamihuq | last post Mar 2 '06 by: Alf P. Steinbach
Hello all, I have a question. Does the concept of call by reference exist in C like it does in C++? And if so, can someone give me an example. Thanks Jami
3
6,678
thread by: Plissken.s | last post Mar 2 '06 by: Jay_Nabonne
I have a segmentation fault in the following line using dynamic_cast, but I can't figure out what's wrong with this. i appreciate if someone can help. I make sure pm is NOT a null pointer as I step thru the debugger? Is there some compiler options I need to enable/not disable in order for dynamic_cast to work? bool...
4
1,861
thread by: dreadrocksean | last post Mar 2 '06 by: Alf P. Steinbach
the subject is a bit misleading. this is my situation: right now i have my "Gig" database (im a musician) in FMPro. i want this online so heres what i do now: 1/ i manually run a simple script in FMPro that exports the database to a file named, say, "gig_export.txt". 2/ i run a small c++ app that i wrote. it automatically imports the...
13
2,355
thread by: david ullua | last post Mar 1 '06 by: pete
Hi, In Expand.c of BSD system, I met the following codes, the expression (column & 07) if used to compare variable column and 7, if column<=7, it returns true, else false. It use (column & 07) rather than (column<=7), thus it brings me a question, does bit operation always work more efficiently than math operation? How about plus without...

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.