49,761 Topics

Member Avatar for
Member Avatar for kama

Hello, I need to create a program that will read in a weight in kilograms and grams and will output the equivalent weight in pounds and ounces. I need to use 3 functions: for input, calculation, and output. I also need to have a loop that will let the user …

Member Avatar for anastacia
0
5K
Member Avatar for WrEcK

I'm a little lost here. I'm trying to read from a file named source.txt located in the same area as my program. If i could figure this out i could continue with the rest of the program. I'm just getting a blank screen so i know i'm way off heres …

Member Avatar for Raiders
0
146
Member Avatar for smartintelleng

[img]http://www.computersforpennies.com/error.gif[/img] testing wether this post works, trying to host the image from my site since i dont know how to do it using his form for threads [B]If the image shows, could you tell me what that debugging error means[/B]

Member Avatar for nvanevski
0
116
Member Avatar for Starlight620

I ran my C++ program and got these error messages. I have no idea what they mean. :?: Will somone please help. error LNK2019: unresolved external symbol "int __cdecl GetInformation(int,int,int,char (* const)[15],char (* const)[15],float * const,float * const,float * const,float * const,float * const)" (?GetInformation@@YAHHHHQAY0P@D0QAM1111@Z) referenced in function _main fatal …

Member Avatar for nvanevski
0
175
Member Avatar for blackbabydoll

This program is a word counter. But my logic is all messed up when it comes to the counting. I am not too sure on how about fixing it. The project compiles yet does not work properly. I still haven't figured yet how to count lines or characters properly. [code] …

Member Avatar for jwenting
0
106
Member Avatar for huria
Member Avatar for AllenN

New boy -easy question - doing a tutorial and the compile and run work but the only time I see the program partially running is when I put in a cin - I have looked but I cannot find how to put in a pause and allow me to see …

Member Avatar for vegaseat
0
181
Member Avatar for santa_barbarian

I am a java programmer trying to understand a c++ oddity that I ran into. My c++ program writes a few MB of data using ofstream. Just before the program ends I close the ofstream. However when the program terminates, the amount of free memory on my linux box has …

Member Avatar for santa_barbarian
0
179
Member Avatar for fatallah

[b]Round Robin Algorithm Simulation[/b] Hey there can anybody help me look for a copy or program a simulation of a Round Robin Algorithm... The program should accept the following from the user... 1) Quantum Time 2) Burst Time 3) Arrival Time 4) The number of Jobs.. If you can... please …

Member Avatar for alc6379
-1
258
Member Avatar for kitakits

Hey there can anybody help me look for a copy or program a simulation of a Round Robin Algorithm... The program should accept the following from the user... 1) Quantum Time 2) Burst Time 3) Arrival Time 4) The number of Jobs.. If you can... please help everyone else avail …

Member Avatar for alc6379
0
734
Member Avatar for wangstarr

Hi everyone, I have a project for my class. I have to write a function that accepts a c-string as an argument and returns the number of words contained in the string. For instance, if the string argument is "four score and seven years ago" the function would return the …

Member Avatar for varunrathi
0
311
Member Avatar for wangstarr

Hi, I'm supposed to create a program that does the following: A corporation has six divisions, each responsible for sales to different geographic locations. Design a divsales class that keeps the sales data for a division, with the following members: an array with four elements holding four quarters of sales …

Member Avatar for jwenting
0
563
Member Avatar for lilpil02

Hello everyone! I sure wish I would have known about this place befroe now, it would have saved some long nights. I am having probems with arrays. The situation is this read all the lines from a file and store it into an array. Once you do this, you have …

Member Avatar for lilpil02
0
170
Member Avatar for anastacia

[FONT=Arial Black]undefined[/FONT][SIZE=2]undefined[/SIZE] hi every body. well i am a new member and i hope that i am doing things the right way . well my problem is that i am a first year students and obvoisly i am studying c++. but i got an assignmet to do. i wrote the …

Member Avatar for acsinha
0
181
Member Avatar for hkb

hi, i'm working on an assignment for school, and i'm having a lot of problems when i try to compile it. one of the errors is about changing the functions into arrays and getting an error about pointers, and another is trying to get the right info to the right …

Member Avatar for Dave Sinkula
0
112
Member Avatar for gowswan

sir, ihave a doubt on converting a inputed decimel number to a octal number will u help me?

Member Avatar for Dave Sinkula
0
118
Member Avatar for hopeolicious

It is error free but it just doesnt cout for the user to continue or discontinue and it does now stop [code] #include <iostream.h> #include <stdlib.h> #include "simmons.h" #include <fstream.h> const int MAXCHARS = 500; char st_line[MAXCHARS]; char ch_option; int i_va; int i_ve; int i_vi; int i_vo; int i_vu; int …

Member Avatar for jwenting
0
120
Member Avatar for jaeSun

is it just me or am i stupid? (save the comments har har) im using C++ to pull in a character from a file ... (going character by character) how do i check for a line feed, or return? [code]<img src="http://image.jpg" <-- return alt="image" height="100" width="100 />[/code] ive checked for …

Member Avatar for jwenting
0
161
Member Avatar for docetes

hello i was wondering if somebody could help me. I'm having problems with the validation of the below code. When i run it, it seems to get stuck in the loop. The compiler i'm using is Borland C++ 5.02 Any sugestions would be greatly appreciated Dave #include <stdio.h> #include <stdlib.h …

Member Avatar for jwenting
0
157
Member Avatar for MitchellH

Im learning to write a DLL in Win32 C++ and I've found that its pretty straightforward :) I just have a few questions: 1.) Do I have to have a DllMain function? 2.) Why do some functions look like this: [code] void _stdCall bla() { ... } [/code] And some …

Member Avatar for neuronco
-1
243
Member Avatar for Faramba

if: static char s2[]="Catbert"; static char s3[]= "Ratbert"; what is the vvalue of strcmp(s2, s3)<0 "Please explain"

Member Avatar for Dave Sinkula
0
181
Member Avatar for Faramba

Please help me with this: Declare an integer array named "scores" to contain 50 elements. & Generate a code (a loop) that will initialize every element in the array from the above declaration("scores") to the value 75.

Member Avatar for jwenting
0
145
Member Avatar for Guppy25

I have to identify which element in the array the highest and lowest numbers are. I have finished the rest of the project but you can see that i need help with the element position. Here's what i have and thank you, thank you, thank you #include <iostream.h> #include"apvector.h"//didn't inclue …

Member Avatar for frrossk
-1
117
Member Avatar for dontcare

This program displays the information of an input file containing dates and strings, the output is in the following form On day, January 1, 1800 The first day begins. [number of days since 1/1/1800; (1)]. My problem is implementing a correct switch statement to display the Day of the week. …

Member Avatar for dontcare
0
109
Member Avatar for Extreme

Hey can any1 figure out wat is wrong in this program...after i compiled it and executed the program ....I inputed the value of n...but after that it does not show the output...Can any1 help me plz..!! The program which I wrote is below:: #include<iostream.h> int sumofdigits(int n) { int sum=0, …

Member Avatar for Extreme
0
95
Member Avatar for Faramba

Are the following array declarations valid, if not why?: "i'm confused!" const int SIZE=4; void main() { int a[SIZE]= {0,2,4,6}; static int b[SIZE]={0,2,4,6,8}; int x[SIZE-5]; int d[SIZE*2]; . . . . . . }

Member Avatar for Richard Wong
0
105
Member Avatar for lostinthespiral

I'm having some real problems with a code that is supposed to find Fibonacci numbers using recursive, iterative, and optimized recursive techniques. I keep on getting this really strange error though: "fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) Please choose the technical Support command on the …

Member Avatar for lostinthespiral
0
237
Member Avatar for rmerchan
Member Avatar for prog-bman
0
74
Member Avatar for Faramba

How does the following print?: #include <iostream.h> #include <string.h> void main() { char s[50]; strcpy (s, "What "); strcat (s, "does this " ); strcat (s, "do?"); cout << s << endl; } Can you explain?

Member Avatar for Dave Sinkula
0
79
Member Avatar for boujibabe

I have this assignment that requires a program that will initialize an array of charcters to ABCDE and allow you to shift in a circular fashion, those characters to the right any number of places you specify.The shifting shoud be done in the `functino shift()` but all printouts should be …

Member Avatar for boujibabe
-1
203

The End.