48,985 Topics

Member Avatar for
Member Avatar for souphmars

i am inputting numbers as characters, then i need to change to their numeric value then add

Member Avatar for Narue
0
128
Member Avatar for dcving

This is what I have so far, I haven't corrected the input prompt display, nor the output display of the time into `HH:MM:SS`. Please give me any suggestions on the program. thanks! :mrgreen: /* Program definition: The program will ask for and read an elapsed time in the following format: …

Member Avatar for Narue
0
133
Member Avatar for smarkles

This is our assignment:An STL List Container that adds at least 5 elementes, display i order, and reverse. That part I've got. I'm still doing research on the write to, store ina file and read from a file. Any help would be appreciated. Thanks Smarkles. #include<iostream> using namespace std; #include<list> …

0
129
Member Avatar for Deiwos

Hi folks, I'm some difficulty getting my program to read in multiple data types off one like of data being input. The way it works is someone enters a name, age, and date of birth, and I then have to process this so that it'll read in these different data …

Member Avatar for Narue
0
93
Member Avatar for mahas

can any1 tellme how to access the sql file using c++. what i've to do is to take a sample file from oracle and one from access(a table having employee's personal info with different attribs,obviously) then i've to print them in c using standard format which i'l define in c++ …

0
65
Member Avatar for the b

ok I am required to write a program that reads text from one file and writes it to another. I can do that easily enough but the second file the text is wrote to is supposed to have no spaces in between the words. how do I do this? here …

Member Avatar for Narue
0
110
Member Avatar for blargage

Hello everyone, im glad i have come across this forum, im sure its going to be a lot of help for me! I have been reading through the forum here to try and find some help with a problem i am currently experiencing. My problem is that i am trying …

Member Avatar for blargage
0
128
Member Avatar for Calum

i'm using Dev C++, and when i write a program, it compiles it fine then when i execute it the program window closes after the program has finished. does anyone know how to keep the window open. im running on XP(SP2). i've tried right clicking on the .exe but theres …

Member Avatar for Calum
0
121
Member Avatar for N3wbi3C0d3r

Posted it in the wrong place, sorry;) Hello peoples, as you can tell by my name, ima newbie coder, and barely know the basic concept of a non object oriented scripting language comonly known as QBasic. I wanna learn advanced programming to make games, and random programs i may need …

Member Avatar for N3wbi3C0d3r
0
142
Member Avatar for bryan7890

i wrote in my prog #include <iostream> using namespace std; int main ( ) { int arraysize = 25; int a [arraysize] = { 2, 3, 5, 19, 4, 20, 35, 123, -3, 45, 82, 93, 62, 35, 29, 21, 19, 57, 35, 64, 62, 324, 242, 0, -3 } …

Member Avatar for bryan7890
0
97
Member Avatar for SyLk

sup guys im trying to implement a nested for loop for a 2 dimension array that initializes the array to the character '*'. but its just printing out garbage, i think im messing up on my syntax :sad:.....some help would be appreciated here is what i got so for: char …

Member Avatar for SyLk
0
134
Member Avatar for mr_mooz

Im trying to write a struct for a binary header of a sun raster file to a file on disk. i have a struct for the header data: [CODE] struct rasterfile { int ras_magic; int ras_width; int ras_height; int ras_depth; int ras_length; int ras_type; int ras_maptype; int ras_maplength; }; which …

0
75
Member Avatar for elianahendler

hi i have a C++ assiggment and have no clue how to do it! the instructions are : write a program that calculates the bill of a simple restaurant. on the menu there are only 3 things to order - orange juice, vegetable salad, pasta. it is possible to order …

Member Avatar for alc6379
0
99
Member Avatar for mahas

can anyone tell me whether i can access databases using c++ i want to access a file one in ms access and one in oracle file. have to make it in standard form using c++(ETL concept) is this possible and how to get connect to the respective data bases. thx …

0
104
Member Avatar for hfick

I am supposed to figure out what the output produced would be from this equation..can anyone help me and explain it to me char var1='s'; char var2='x'; char *ptr1, *ptr2; ptr1=&var2; *ptr2=*ptr1; cout << *ptr1 << " " < var2 << endl;

Member Avatar for Narue
0
161
Member Avatar for Midnight Skulke

I have design two program and both have errors on it. the first is supposed to handle queue on integer, double, string and date. I have done for integer and double. When I compile it there was error on it. If you can just help me debug it and i …

Member Avatar for Narue
0
226
Member Avatar for NAjAM AHMeD

hello! i am a brand new user to this site ihope that my experence with this site would be better than previous ones, i am studying BS(computer science), recently i had trouble with a program that ihave made well that thing is that its is complete and working as well …

Member Avatar for Narue
0
118
Member Avatar for manoj9_5

i am little bit confuse with dynamic polymorphism can any body help me out

0
71
Member Avatar for lvdude

Hi all, First off, I'm relatively new to the world of C/C++. I've taken some courses in University years ago and haven't used it much since. What brings me back is the following dilema I have: I've built an application using National Instruments LabVIEW ([url]www.ni.com[/url]). For those not familiar its …

Member Avatar for lvdude
0
199
Member Avatar for m-soft

Hello I have a number from maximum 255 digits. I must compute the cube root of this number with 10 decimals. Time of execution is 1 second Could you help me ? 10x

Member Avatar for vegaseat
0
137
Member Avatar for NitrousGT

I think I know how to initialize the program, but i am doing a self learner and i am not sure how to begin or what to initialize. If anyone has any ideas please help me out. Here is a problem if you dont have the book... C++ HOW TO …

Member Avatar for alc6379
0
347
Member Avatar for Waskar

Hi to every one :cheesy: (I'll say it once: forgive my bad english :sad: ) I have a question!!! Is there any way to get information aboute Dial-tone PHISICALLY presense without performing a call dail?????!!!!! I've write a code, in vc++, to make connections over 16 Comm Ports (throw a …

Member Avatar for Waskar
0
256
Member Avatar for hill0ster

#include <iostream> #include <cstring> using namespace std; bool equalStrings (char[], char[]); //given here but must complete // on midterm int main() { char str1[80]; char str2[80]; cout << "Enter your first string: " << endl; cin.getline(str1); cout << "Enter your second string: " << endl; cin.getline(str2); if (equalStrings (str1, str2) …

Member Avatar for Narue
0
134
Member Avatar for Beau

this is a little question is microsoft visual C++ the same as any other C++ programing tool? and if it nearly the same is there any little differences wat are they and what do you recommend?

Member Avatar for Narue
0
170
Member Avatar for quasimof

We are supposed to write a program which asks for the month, date, and yr and then outputs the day of that date. **input:** Month: 7 // This is July Day: 4 Year: 1776 **output:** July 4, 1776 was on a Thursday Formula: day = (r + [2.6m - .2] …

Member Avatar for ZuK
0
555
Member Avatar for Tomas Lopez

I have to write this program that prompts the user for the size of the tiles in inches and the number of rooms to be input. It should then input the dimensionsfor each room, and output the tiles needed for that room. After the last room is input, the program …

Member Avatar for jwstickley
0
154
Member Avatar for kwongchungying

hello, i have been stuggling with c++, i need to compile the following files but it never works always tell me the redefinition error i have tried both g++ and visual c++ but i can't make it work, i wish anybody can tell me why here are my codes please …

Member Avatar for Ejaz
0
281
Member Avatar for Young Teck 06

Need a little help here. Seems as if whenever I run the program, it closes before showing the results. Here is the code below: [code] // // Program to convert temperature from Celsius degree // units into Fahrenheit degree units: // Fahrenheit = Celsius * (212 - 32)/100 + 12 …

Member Avatar for Young Teck 06
0
113
Member Avatar for bryan7890

Write a complete program that creates an array of characters, 3 times the size of ASCII table and itinializes the contents of the array to correcponding ACSII values; when end of ACSII table is reached, you should loop back to the beggining and start again. Print the contents of the …

Member Avatar for bryan7890
0
129
Member Avatar for GoldenGreg007

i can't figure out how to solve this error, i've searched online, but any solutions i've found use terms that are beyond me (as i am still a beginner at C++)..so it's been a little tricky to crack this. basically all i'm trying to do here is find the length …

Member Avatar for GoldenGreg007
1
145

The End.