49,761 Topics

Member Avatar for
Member Avatar for amirwan
Member Avatar for John A
0
107
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
374
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
537
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
118
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
135
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
152
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
141
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
352
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
112
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
92
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
70
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
53
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
78
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
198
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
170
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
129
Member Avatar for Matt Tacular
Member Avatar for ~s.o.s~
0
89
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
142
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
119
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
107
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
227
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
237
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
164
Member Avatar for lotsofsloths

[CODE] //The ATM Mahcine #include <iostream> using namespace std; int main (const int) { int cash; int bank; int choice2; int choice3; char choice1; cout << "please enter amoount of $ in bank: "; cin >> bank; cout << "please enter amount of $ in cash(hand/wallet): "; cin >> cash; …

Member Avatar for John A
0
124
Member Avatar for smallpau1

[code=c] #include <iostream> #include <string> #include <cmath> #include <iomanip> using namespace std; double power(double b, double p); void main(void){ int base = 0, power = 0, result = 0; cout << "Programmed by ." << endl << endl; cin >> base; cout << " ^ "; cin >> power; result …

Member Avatar for Salem
0
119
Member Avatar for edy_ml

Hai guys My name Eddy, I'm HND Software Engineering at TATI, Malaysia, this is my 1st year of study, i need help ! somene can change below source code to templete by using C++ source code please help ... this is the source code: ----------------------------------------------------------------------------------- [code=cplusplus] #include<iostream> using namespace std; …

Member Avatar for WaltP
0
154
Member Avatar for megabutt

Hi folks, from a newly created executable I am getting an "unhandled win32 exception" each time I run it. I don't even know how to begin to evaluate this error. Pls help. Debugger error dialog: Unhandled exception at 0x7831c5c2 in ATV.exe: 0xC0000005: Access violation reading location 0x00000000. Thanks in advance

Member Avatar for megabutt
0
106
Member Avatar for Aia

I don't visit any other forum but the C and C++, so I don't know if there's a different place where I can make this comment. However, I'm going to go ahead and say. I would like to give a public and loud THANK YOU! to this people: [COLOR=Blue]Mr.WaltP Mr.Ravalon …

Member Avatar for ~s.o.s~
6
132

The End.