General C++ Programming - May 2012 (Page 28)

Homework with files
 
I need to create a program that reads in records from a file directory of teachers and output that info. Each record consists of an id with 8 characters, a ful...
[1 reply] : you can contact at c_c_p_l_u_s_p_l_u_s._c_o_m please remove '_'. sorr... (by vipul0527)
What color text
 
I'm going to try to explain this without sounding like a total idiot. I'm not even sure if this is the language for this. If not and someone could point me in...
[3 replies] Last: I figured out a way to do it with javascript (by generaldave)
setting pointers to fixed values
 
I'm writing a program for an embedded application. There are several registers at fixed addresses, and I'd like to refer to those addresses symbolically. I t...
[2 replies] Last: Thanks, firedraco. Those access modifiers trip me up every time. I'll... (by mzimmers)
C++ Programming. Please Help!!!! (1,2)
 
Write a program that accepts a C-string input from a file and reverses the contents of the string. Your program should work by using two pointers. The head poin...
[24 replies] Last: Please Help!!!! Thanks so much. (by Stephanie I)
Constructor Problem
 
Hi, I have 2 classes: class Dict_Node { public: Dict_Node* parent ; char letter ; Dict_Node* children ; int childNum ; linklist* s...
[2 replies] Last: Thanks a lot:) (by john andre)
by Eyad
Input/Outpot
 
How can I print out, add or delete a specific data from a txt file? e.g. chicken: (chicken types, meals....etc) meat: ...... fish: ..... turkey: ..... and i w...
[2 replies] Last: ty (by Eyad)
Is there any point using boost::noncopyable?
 
Does anyone use this class? Is it worth the dependency just to save writing your own (few line) non copyable class? Perhaps the sensible thing is to use it only...
[4 replies] Last: I use it, in a pre-11 product. Gives obvious compiler errors when some... (by Cubbi)
build in error message for compile time
 
I would like to build in an error message which should be issued during compilation depending on the value of a variable. I have defined following class: c...
[3 replies] Last: thank you Peter, your proposal is a good way for my case. I have fur... (by alainstgt)
by bmwboi
Help with problem in my C++ book
 
Alright, so I just went through a chapter of my book, and started to do the practice problems, however, there are two that I just can't seem to figure out. Here...
[5 replies] Last: Probably because I don't understand operator overloading It looks ... (by codekiddy)
Object pointer
 
Hello, everyone! When creating an object of a class, how do I create a pointer to that object so that multiple other classes can access the same object (in thi...
[10 replies] Last: Oops, forgot that (stupid me)! The code is here: GameObject.h: #ifnde... (by Exispistis)
C++ AND OOP APPROACH
 
Please I need steps and even the full program on this EXERCISE: Write an Object Oriented Programming approach to calculate the CGPA of students in a school.
[no replies]
school management
 
anybody has school management program on c++........i need it alot with coding .....i am waiting for your reply
[no replies]
How to install and build cURL and libcurl
 
This Newbie is confused again. I Googled to find out where and how to install and build cURL and libcurl on my win7 64 bit c++ 2010 pro compiler and got the f...
[4 replies] Last: I goofed. I did build libcurl on my D: drive, but it ended up building... (by therry1)
by viliml
type_info weird output
 
in the reference page for type_info( http://www.cplusplus.com/reference/std/typeinfo/type_info/ ) they said that their example program would print out int is: ...
[8 replies] Last: I feel a headache when I see the codes Hehehe .. i have study more , i... (by Rorita)
Counting permutations
 
I want to calculate permutation of numbd-ers for example 4 is 1 + 1 + 1 + 1 and 1 + 2 + 1 and 1 + 1 + 2 and 2 + 1 + 1 and 3 + 1 and 1 + 3 so 6 different permu...
[6 replies] Last: IIRC is the biggest integer that is less than that number. Unnecessary... (by ne555)
by Rorita
I need Help code of classes and object
 
Write a program in C++ using Object Oriented Concept (Classes and Objects) for the following system. For this project, you need to write C++ console application...
[7 replies] Last: Kazekan : am agree with what u said, i tried but i can not complete th... (by Rorita)
Extracting hour,min,sec from imported timestamp
 
Hey everyone, I have a problem. My program needs to import an array of timestamps in the form 0:00:00 from a data file and extract the hour, the minute, and sec...
[no replies]
Saving to file
 
Hello, i have one problem which i cannot solve. I have class functions to read from a file bit by bit and "code" it, by inverting every third bit. I want to mak...
[3 replies] Last: bool readBit ( bool *bit ) { static unsigned char mask = 0x80; stat... (by ne555)
Server leaves the connections open
 
Hello everyone ! I have program and there is something wrong with it, i can't run my server immediately after closing it, it leaves some connection(zombies) ...
[no replies]
3x3 Matrix with non repeating numbers
 
I want a 3x3 matrix with digits 1 to 9 without any digits being repeated. So i coded as follows(using Borland 5.5 Compiler) :- #include <iostream.h> #inclu...
[2 replies] Last: vector<vector<int> > a(3); int x=1; for (int i=0; i<3; i++) { f... (by viliml)
May 2012 Pages: 1... 2627282930... 41
  Archived months: [apr2012] [jun2012]

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