General C++ Programming - July 2008 (Page 6)

calculate heap memory
 
hi friends, I want to calculate the amount of heap memory at runtime at any point in the program. how do I do this?? do we have a function for it. Th...
[1 reply] : That is OS, hardware, and compiler dependent. On modern 32- and 64-bit... (by Duthomhas)
makfile general structure
 
Hi, I am currently building a makefile for my C++ project. I am trying to find a general structure for a makefile. Is there any documentation which explain ea...
[4 replies] Last: Many thanks for you quick responses. Highly appreciated Regards, ... (by alanmehio)
weird pointer problem
 
Hi I'm making a strategy game. It has over 500 lines so I won't put it here. There I have a const pointer. I check if it's null in two different functions and ...
[2 replies] Last: Another possibility is the way you are passing it around. Quite often... (by bnbertha)
by rkj
Enums
 
Hello. I'm having a problem using enum objects as non-type parameters in class templates. Consider the following code: enum Team { Chelsea, Real Ma...
[5 replies] Last: You cannot use scope-resolution on enumerated types. Only namespaces o... (by Zaita)
by karang
Get the printer object in C++
 
Hi I have searched so many articles(on MSDN or many other websites). I got a big examples. I didn't get any example that works properly. Is there any webs...
[3 replies] Last: http://www.cplusplus.com/forum/general/2992/ (by Zaita)
by k9mk2
RANDOM NAME?
 
I have tried to find out how to do this for a while now, what I want to make is a program that copys itself but the copied program has a random name and also I ...
[3 replies] Last: Use that name when you create the file. (by Duthomhas)
Quick Search in file handling
 
I made a project on telephone directory. I have used single class and my reading and writing in the file is done by fin.[write/read]((char*)&object,sizeof(ob...
[1 reply] : You can use some indexing to make it go faster. For example to know t... (by Mitsakos)
by kk84
Integer being display as weird char
 
Hi all, I have a prob, I store a user input to a variable, and then I display it. however it display weird char instead. Heres the code int Id cout << ...
[3 replies] Last: just to add to what Zaita has said. ld is not an int, it is a pointe... (by bnbertha)
by bulbus
error while reading text file using getline()
 
I am trying to run the following code (picked up from one of the examples on this site) on a windows m/c using the eclipse IDE. #include <iostream> #include...
[4 replies] Last: it could be bcus i hadnt saved the file, bcus i remember saving it whi... (by bulbus)
by karang
Problem in getting the printers settings
 
Hi I was trying the code written in the following URL http://support.microsoft.com/kb/117565 to get the information about the page size But when I ...
[1 reply] : The article that you are using is entitled How To Getting the Current... (by closed account z05DSL3A)
Printing enum name as string
 
Hi dears, Since sometime now I am thinking how can it be made possible to convert an enum name as a string, given the enum value. This is especially useful i...
[4 replies] Last: Instead of using an enum. Create another file called "Translations.h" ... (by Zaita)
by pekt2s
Database and other concerns
 
Hi all. Im currently doing sample bank transactions. I need to know how to create database? Im using borland 5.02 version. kindly pls help me. I do really need ...
[1 reply] : http://www.cplusplus.com/doc/ To create and use databases. Google ... (by Zaita)
how to do Simple Student Database in c++
 
Create a simple student database program. You are to have the following structures: struct Student{ char id ; char fname ; char mname ; char lname ; char ...
[4 replies] Last: Are you confused about something? How to write a certain method? ..or ... (by mikeb570)
Leading zeros
 
how do i keep the leading zeros for the second parameter in the code: variable.setData("joe smith", 00123, 3.4, "Comp Sci", "joe@myhouse.com"); also the 3rd p...
[1 reply] : #1) The literal 000123 is not the same thing as the integer literal 1... (by jsmith)
Compiler-Specific code
 
Hello, I was wondering if there is non-standard code in C++ supported by only some compilers, specifically something like this: #include "header1/head...
[3 replies] Last: The problem is often where your compiler's vendor (or your sysadmin) k... (by Duthomhas)
i must be missing some thing, (Eclipse)
 
I have Eclipse IDE for C/C++ Developers no plugins just got it and i can't seem to be able to type commands there no sub-window open for C++ I am ne...
[2 replies] Last: show links fo you program sorch (by leonardito)
learning C++
 
I am interested to learn C++ Programing. Thats why I asked some of my friend they suggest me to Read The book Teach yourself C++ By Herbert Schildt.and this i...
[18 replies] Last: for list of programming assignment and tutorial.. im using this one h... (by cplus2x)
by kotoro
need ideas for a data storage structure
 
I will be storing DNA sequence matches to organize data in a program, it HAS to be built piece by piece. What I'm currently thinking of doing is using a nes...
[1 reply] : If the deque is defined as containing the object rather than a pointer... (by bnbertha)
by karang
problem in winnt.h
 
Hi I have winnt.h header file in turbo C++. In this header file I am getting the error. "Fatal Winnt.h : Error Directive : You need to define a CONTE...
[12 replies] Last: Problem solved. Thanks for your patience and support :) Regards ... (by karang)
by karang
device interfacing in C++
 
Hi Is there any good tutorial of C++ that tells about how to interact with the printers in the network. Kindly advice Regards Karan Gupta
[5 replies] Last: Hi I am using Dev-C++. But while trying to run the project I am gett... (by karang)
July 2008 Pages: 1... 45678... 10
  Archived months: [jun2008] [aug2008]

This is an archived page. To post a new message, go to the current page.