49,761 Topics

Member Avatar for
Member Avatar for StrawberryChips

First off I'd like to say I'm a beginner in C++ (VB was my stronger point I think), so be gentle about how gigantic my code is. I've been working on a project for a class for a couple days now, it's not due for a couple days, but for …

Member Avatar for Agni
0
315
Member Avatar for blainer27

Hi, I'm currently in a C++ class and I have this one problem where you are supposed to try and create a calculator which will take the equation like this: (-insert equation here) = I can't seem to get it to work for the life of me! I was just …

Member Avatar for Salem
1
75
Member Avatar for toolbox03

I have a txt file of this format: 2 Jack S123 Y 1 Choco P0001 5.50 2 Jane S456 N 2 Rice P0002 10.00 2 Chicken P0004 7.50 1 how do i create the loop to store the data into 2 classes? my code for (int i = 0; i …

Member Avatar for VernonDozier
0
104
Member Avatar for hmaich

Hello all, I have a doubt concerning to overloaded operators. Does the compiler create new temporary object to the elements involved on the overloaded operation? E.g. Operator + overloaded. a = b + c; Does the compiler creat temporary object for b and c? See the following code and the …

Member Avatar for Duoas
0
112
Member Avatar for marcelomdsc

Hi I'm not really sure how to solve this, if a system supports ten digits of precision for floating-point numbers, what are the results for the following computations? a. 1.4E+12 + 100.0 b. 4.2E-8 + 100.0 c. 3.2E-5 + 3.2E+5 Thank You.

Member Avatar for marcelomdsc
0
71
Member Avatar for rigers

Problem 1a: Write a program that generate random text as follows: the uses chooses a max number of words it reads in a text file chooses a random word it prints the random word it then finds the next instance of that word in the file it selects the word …

Member Avatar for Ancient Dragon
0
96
Member Avatar for code12

Here is my code for the program. which I'm trying to complie...I just started testing it and was going through it step by step...but the first function whichI started testing is getAccountNumbers, but there are some issues with it, here's the code, it has Person file included in it, it …

Member Avatar for code12
0
233
Member Avatar for Jennifer84

How is it possible to delete all Rows from it´s contents in a dataGridView1 ? For example I have 10 Rows and 15 Columns with Information. Thanks...

Member Avatar for Jennifer84
0
113
Member Avatar for Jennifer84

How is it possible to programatically select Row 2 in a dataGridView. I know how to do it for a checkListBox like below but can´t find a member simular to this in the dataGridView. [code] checkListBox1->SelectedIndex = 2; [/code]

Member Avatar for Jennifer84
0
123
Member Avatar for Spagett912

I'm trying to translate the following code from C++ into Asembly language but am having trouble. I know that I have to make a cmp and one or more jmp. If any1 has sugguestions or tips thats great. Here's the C++ coding: [CODE] int x = 1 * 2; int …

Member Avatar for Spagett912
0
243
Member Avatar for 3m4d

Could sum1 plz help me undastand these Questions just wna no how it is done fank u 3. If DoSomething is a void function that takes an int expression as an argument, which of the following is an incorrect statement? (Assume all variables are int variables.) A) DoSomething(n); B) DoSomething(3*n …

Member Avatar for hammerhead
0
367
Member Avatar for BAEdwards

Hello all, I am submitting this post because I am having problems with implementing threads in my code and wonder if someone may be able to tell me what is going on! I am using Borland C++ Builder3 to create a GUI based application. This application contains a lengthly search …

Member Avatar for mitrmkar
0
270
Member Avatar for d.p.l

Hello, I'm a beginner programmer and I was looking to see if anyone has a book or online tutorial that they have either used or heard about that's any good. I've seen a lot of online tutorials but they seem to get a bit dodgy when talking about Arrays and …

Member Avatar for Nick Evan
0
70
Member Avatar for scream2ice

hi i have an n*n page (n is a power of 2) with an empty place in it, and i want to fill in this sqaure with right trominos (a tromino has an 'L' shape) i want to show the empty spaces with zeros and the ones filled with trominos …

Member Avatar for scream2ice
0
423
Member Avatar for daniel88

Hi guys, I am currently working on a practical for a first year computing subject. I am determined to work it out because I think it will really unlock pointers and dynamic memory allocation for me. Essentially, the task requires that I produce a program which, when prompted, will store …

Member Avatar for Radical Edward
0
131
Member Avatar for Jennifer84

Is it possible to Show a MessageBox or Something simular to a MessageBox that by it self will show for about 2 seconds so you doesn´t have to press OK. So what happens is that a "messageBox" will appear for about 2 seconds and the by itself dissapear ? (A …

Member Avatar for Radical Edward
0
192
Member Avatar for gljiva18

Hello my name is Boris and I need help with animation in C++ . I need to make a clock . My knovlege in c++ is not big enough and I cant find any one who could help me with that problem

Member Avatar for Salem
0
26
Member Avatar for Black Magic

Hey, I was just wondering what was the simplest way to "real" world type, like open wordpad and you could watch it actually typing, thanks in advance. (Hopefully the answer is not writing to file etc)

Member Avatar for William Hemsworth
0
134
Member Avatar for tharris7

Hi, I'm quite new to C++ so all help is appreciated. I have a program that makes a string of at least three characters. I want to be able to compare the string to a list of words (i.e. dictionary) in a separate file, and then output the string if …

Member Avatar for Nick Evan
0
192
Member Avatar for nabeelcool17

i have made an electricity bill program and wants to add graphics in it mean when it need input from user it writes in graphics............. so plz help me in making this....... [code]#include<stdio.h> #include<conio.h> #include<iostream.h> void main() { int unit=3; int reading,previous,current,consumed,bill; cout<<"enter your meter no"; cin>>reading; cout<<"enter previous redaing …

Member Avatar for nabeelcool17
0
89
Member Avatar for notbadday

I have problems to extract frames from mp4. I'd like extract frames to memory or hard disk in order to modify them before show them on the screen. Could anyone help me how to do this ? Thanks !

Member Avatar for Salem
0
80
Member Avatar for Black Magic

Hey, i was thinking these may help me if I made these little programs etc, but i've came to a situation, I've go no error but have to use [CODE]cin.get();[/CODE] twice, here's the whole program.. [code=c++]#include <iostream> using namespace std; int main() { system("title Simple use of if else if …

Member Avatar for Nick Evan
0
134
Member Avatar for Spagett912

A while ago i had requested help for a Marital and Federal tax program. Unfortunately I'm making this program for a particularly picky person. So I ended up having to remake it somewhat. If someone could take a look and help me with this that'd be cool. Here's what I …

Member Avatar for joshmo
0
151
Member Avatar for GigaCorp

ok i got past that part i posted about before, now im having some more trouble. i can add 2 patients easily to the file. then i try to display them. it displays the first one just fine, but the second it tries to display the first value in the …

Member Avatar for GigaCorp
0
138
Member Avatar for ardeth32

Hey guys. I have a project due in 2 weeks, so I have a little bit of time - but I have a lot of work to do, so I want to get this finished. I'm taking a C++ Data Structures class at my high school.. and we have a …

Member Avatar for vijayan121
0
100
Member Avatar for touqra
Member Avatar for Jennifer84

I wonder how it is possible to create a "Folder". I know how to create files like this. How could this be possible with ofstream. I am not sure if I find any members to ofstream that could be associated with "Folders" ? [code] ofstream OutFile1; OutFile1.open("C:\\File1.txt"); OutFile1; [/code]

Member Avatar for Jennifer84
0
103
Member Avatar for GigaCorp

i ended up doing it woithout that function. nov ive got a bigger issue,im trying to make a database of patients and i am working on writing 2 of 8 of the functions in the menu. displaypatients is supposed to display all the info for the patients 1 by 1, …

Member Avatar for VernonDozier
0
140
Member Avatar for n1337

As I've been reading various threads on this forum, it seems to me that a lot of people are advocates of vector data structures. Coming from C, I don't tend to use them a lot...I was just wondering if anyone could tell me how vectors are implemented (at the machine/memory …

Member Avatar for Ancient Dragon
0
94
Member Avatar for cynicalreality

Hello all, I'm having a bit of trouble with this program I'm working on. I have a base class, we'll call it Base, and two nearly identical Derived classes, only one of which is relevant. I created a pointer (Base *BP), and pointed it to Derived &DO. I need to …

Member Avatar for mitrmkar
0
159

The End.