49,766 Topics

Member Avatar for
Member Avatar for Tauren

I am using VC++... I need to know how to add a header to the Application, Can someone Joe, or anyone else Give me Step By step on how to do it... Say I had a header called Bob.h and I wanted to add it to my application Tauren That …

Member Avatar for John A
0
129
Member Avatar for degamer106

This might seem like a silly question, but how do I read in a newline char, by itself, as input? For example, if I gave the user a choice to enter a string for a new filename, or let them just press ENTER for some other choice. forgot to add …

Member Avatar for WaltP
0
4K
Member Avatar for degamer106

If I have a dynimcally allocated array of objects and each of these objects contains a pointer to a string, when I use the 'delete' function to return memory, do I have to go through each array element and free each string individually or does the 'delete' take care of …

Member Avatar for Salem
0
129
Member Avatar for oolatin79

Hi guys/gals, I'm having a problem with a function that overloads the input stream. The problem is that the getline crashes on the second iteration of the while loop: [code] //overloaded input operator istream& operator>>(istream& is, vector<EmailHeader>& ehVec) { EmailHeader headerInput; cout << "Enter an email Header: Ctrl-D to quit" …

Member Avatar for Ancient Dragon
0
129
Member Avatar for Matt Tacular

i'm making a program in c++ that gets a binary number and converts it to an integer. But of coarse i've hit a snag, I need a way to store a binary number that's any length, then run through the number to see if a 2 or something is there, …

Member Avatar for Matt Tacular
0
88
Member Avatar for amirwan
Member Avatar for John A
0
108
Member Avatar for degamer106

So in my class we just finished covering the topic of constructors and destructors. Now, my teacher has given us a lab where we have to create these classes and each of them must have a ctor/dtor. The problem I'm running into is..well.. it would be easier to describe in …

Member Avatar for degamer106
0
375
Member Avatar for raydogg57

I need to make a program that asks the user to input a number of strings, and then outputs the string database. The program should maintain a string database where each record is a string. The program keeps reading strings that the user has typed, and inserts the string at …

Member Avatar for WaltP
0
547
Member Avatar for Rickenbacker360

Hello, I have an exam on wednesday and was given a practice exam but I'm having a little a bit of trouble. 8.What will be displayed on the screen after the following statements are executed in a C++ program? [code] [COLOR=#000000] int a=5, b=2, c=1, d=3;[/COLOR] [COLOR=#000000] int t;[/COLOR] [COLOR=#000000] …

Member Avatar for Rickenbacker360
0
119
Member Avatar for n.aggel

Hi, i have five{number is unimportant} independent objects{the purpose is to model sensors} and i want them to write sequentially{not in the same time}, some info to a file{all to the same file} and at screen... i was thinking to implement a fileWriter class, that will create the file...and then …

Member Avatar for John A
0
138
Member Avatar for n.aggel

hello to everyone, i have the followign problem: i need to get the system date-time and then i need a way to add minutes(!!) to this variable.... in particular i want to make a program{part of a another program} that will print on a file dates&times. The problem is that …

Member Avatar for n.aggel
0
153
Member Avatar for edzness

Can you help me on this project of mine? Here's the problem. It's a payroll system where the employee can [B]enter[/B] his/her record. After entering his/her record it will be stored in a file. If their might be changes the employee might want to change he/she can be able to …

Member Avatar for n.aggel
0
144
Member Avatar for JRM

Hello all, I know this is borderline off-topic, but then again QT4 is a C++ based program... I compiled QT4.1.1 on a fedora 4 OS. I finally got all the registration issues worked so that it works in it's native X11 form as an executable. However codeblocks is having trouble …

Member Avatar for n.aggel
0
354
Member Avatar for blackjack

I'm not that used to C++ and hoping that someone can help me out with the [b]const[/b] keyword. If I make a parameter to a function 'const' ,and then try to reference it, like: [code=c++] int some_func(const char* param){ char* ptr = param; ... } [/code] to do something with …

Member Avatar for John A
0
114
Member Avatar for iaaan

Hey, i am trying to search an array of surnames. I am entering in a surname, and if that surname is in the array, i want to to bring out all other details for that surname that are stored in a structure. At the moment, i have this working for …

Member Avatar for iaaan
0
93
Member Avatar for spry

can someone tell me if they know any API's to view a remote desktop in vc++.

Member Avatar for Dani
0
73
Member Avatar for Birhane

Please i kind of need a quick help on how to plot polynomial graphs using c++.

Member Avatar for pty
0
56
Member Avatar for Matt Tacular

I would like to make my program grab an integer from the user (binary) and convert it to a normal number, I plan to do this manually but I need to know how to do something first: If the user enters, for example, 10110101 I need to be able to …

Member Avatar for Matt Tacular
0
80
Member Avatar for bigben09

Can anyone right a C++ program that does this? To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-5626 can be show as GET LOAN. In some cases, to make a telephone number meaningful, companies might …

Member Avatar for bigben09
0
3K
Member Avatar for Mediamixerj

Okay I've just started learning c++ in college but I'm stuck on a bit of what to do to get the program to read from an file with floats. I've got floats like 38.5 33.6 44.45 42.86. I am told to read these floats ("temperatures") in the program. I start …

Member Avatar for John A
0
199
Member Avatar for SHWOO

The assignment is to write a C++ function using "pointer notation" that will write out the elements of an array of int in reverse order. The problem I'm having is with the sortAscend function and what the parameters should be to accept an array. I'm getting an error cause I'm …

Member Avatar for SHWOO
-1
198
Member Avatar for tatumkay

just started c++ class.... we use the absolute c++ book after starting to read this book i decided to buy c++ for dummies and borrowed a book titled object oriented programming with c++ (book is from india written in english) i still have no idea where to start on these …

Member Avatar for Ravalon
0
171
Member Avatar for Elfshadow

I started learning C++ as my first language. But some of the OOP stuff gives me trouble. I know C is a widely used language like C++ and has about the same syntax but isn't OOP.I have tried some basic C so i have not got parts that are different …

Member Avatar for Elfshadow
0
130
Member Avatar for Matt Tacular
Member Avatar for ~s.o.s~
0
90
Member Avatar for Xzantose

I was wondering if it is possible to make a gui program in C++ without[COLOR=black] a toolkit, and if so are there any tutorials or books that I can read:?: [/COLOR] [COLOR=black] [/COLOR]

Member Avatar for blacklight
0
144
Member Avatar for revenge2

hello there, im new here and i want to start learning c++. I have a few books and tutorials however i could use some help with other tutorials and resources.. So basicly what i want to learn right now is how to make gui programms in c++. I know that …

Member Avatar for Ancient Dragon
0
120
Member Avatar for KalebG

I'm 2 months into a vB.net class at my school and starting to grasp an understanding of programming. I would like to begin with C or C++ after my vB.net class is done or close to it. The point of this topic is to ask for any recomendatios you all …

Member Avatar for John A
0
113
Member Avatar for Rickenbacker360

Hey again I need a little help with this assignment. What I'm supposed to do is have a user enter a positive integer and then the program should tell the user all the prime numbers before the number the user entered. However, with my program when I enter 22 for …

Member Avatar for vegaseat
0
228
Member Avatar for abhinav.sharma

I'm new to these concepts but a derived class cannot access private members of the base class because they are simply not accessible externally. But what if I define the derived class in a friend function to the base class. will the private members of the base class be successfully …

Member Avatar for abhinav.sharma
0
240
Member Avatar for rwagnes

Hi, I have visual studio 2005 C++ Express Edition Installed. The instructions I have to create a library file are as follows: 1. Create a project 2. Add Header Files to the project 3. Change the Configuration Type on the Properties Menu to Static Library (lib) 4. Still in the …

Member Avatar for rwagnes
0
174

The End.