49,757 Topics

Member Avatar for
Member Avatar for nychick

Hi guys, I'm trying to write a function that could convert a lowercase string to uppercase. Not sure if I'm heading the right direction. Essentially the function [CODE]ToUpperString (char s[]);[/CODE] would convert everything in the string to the uppercase equivalent. Here's what I got so far: [CODE]void ToUpperString ( char …

Member Avatar for Rogierownage
1
907
Member Avatar for ngkevi1994

I am a beginner but my problem with this game is that when i enter east it said it going to north. here my code for my main and parser also when i enter a word then it quit the game so how do i make it stay open to …

Member Avatar for Lucaci Andrew
0
373
Member Avatar for destroyer333

So i believe i got my prefix working, now i'm trying to get my postfix working so that the class object happy should have its day increased by 1. Not sure whats wrong. Maybe the way it receives the month and day in the constructor? main #include <iostream> #include <string> …

Member Avatar for destroyer333
0
226
Member Avatar for Suzie999

Hi. I'm having some touble printing year. Here is the code where I expected an output of "Year: 2013" time_t tm; time(&tm); struct tm ts; errno_t err = localtime_s(&ts,&tm); cout << "Year:\t" << ts.tm_year << endl; But what I get is "Year: 113" Appreciate any help offered.

Member Avatar for Suzie999
0
169
Member Avatar for jt1250champ

I kept getting an segmentation fault, so I think I need to decrease memory usage but I am unsure of how. I am using the Sieve of Atkins to calculate prime numbers and then testing the primes against 600851475143 (Project Euler). Here is my code so far: #include <iostream> #include …

Member Avatar for rubberman
0
181
Member Avatar for aqzee

i have tried so much to understnd this problem but can't able to get it.. plxx tell me how it will b solve or atleast give me syntax.!! this is the header file that i had made.. // A 2-dimensional point class! // Coordinates are double-precision floating point. class Point …

Member Avatar for deceptikon
0
257
Member Avatar for nick.rechtien.5

Hey guys and gals. I'm looking for a little help here. I am throughly lost as to how to do this program. Keep in mind I am not asking for someone to do it.... although the though is crossing my mind lol. I'm just looking for pushes in the right …

Member Avatar for tinstaafl
0
505
Member Avatar for mudbubbleb

I am looking to finish up this program for class. I'm lost when it comes to arrays and I've read all the course work, the book, etc. The question is how do you increase an array element at the position? using namespace std; int main() { int quantity[4][5], warehouse, product; …

Member Avatar for vmanes
0
144
Member Avatar for Kromgol

I've checked through the newest C++ Primer a bit, but it doesn't feel like it fits me that much seeing as I would like it to have more focus on exercises (or something that progresses from a small program to a bigger and more advanced program, you catch my drift) …

Member Avatar for gezhagn
0
185
Member Avatar for noor_iz9

How can I write a C++ program that defines three 1D arrays with 19 elements in each array. The arrays will be used to store temperatures in degrees F, degrees C, and Kelvin and Use a loop to initialize the array with degrees F values to 32, 42, 52, …, …

Member Avatar for rubberman
0
140
Member Avatar for Thundermunch

Hi i've been working on a piece of homework we're I've been asked to implement a 2d grid in opengl and extend Dijkstra's algorithm to A star, so far i've been able to get the 2d grid running with Dijkstra's algorithm with not too many problems but my current extenstion …

Member Avatar for mike_2000_17
0
297
Member Avatar for chrispitt

What is Abstract Class? And what are the difference between Abstract Class and Abstract Method?

Member Avatar for deceptikon
0
141
Member Avatar for fmasroor

Where can I find iostream.h ON THE INTERNET basically, I know how to use iostream.h, but I need to download it. I am not going to download a new compiler. I do not need any tips on how to include it in my program. Just where to find it. I …

Member Avatar for Schol-R-LEA
0
25K
Member Avatar for lee.martin.568847

program does not work: Assignment: In the sport of diving, seven judges award a score between 0 and 10, where each score may be a floating-point value. The highest and lowest scores are thrown out and the remaining scores are added together. The sum is then multiplied by the degree …

Member Avatar for lee.martin.568847
0
1K
Member Avatar for lee.martin.568847

Write a for-loop statement that displays numbers from 1 to 10 in each line. Use Counter as a counter variable

Member Avatar for lee.martin.568847
-2
70
Member Avatar for btrme

I tried to save my record to wave file with using portaudio library.The samples are saved in recordedSamples array and I tried to add headers of wave file.I am doing something wrong.So,could you please rectify this ?? Thankss...Here is my code : int main(void) { PaStreamParameters inputParameters, outputParameters; PaStream* stream; …

0
386
Member Avatar for hamsa.mohd

i am trying to a c++ program that will determine if two circles intersect each other. the input will be <x,y> coordinates for the center of each circle followed by the radius of each circle. the output will state whether the circles overlap, don't overlap or tangential(touch each other at …

Member Avatar for Moschops
0
81
Member Avatar for Suzie999

Hi. First I apologize if in wrong section of forum for this question, but I will eventually be working in C++. I don't know where to start on this project, so my terms will most likely be wrong. The idea is to partially hash an executable file, that part of …

Member Avatar for Moschops
0
165
Member Avatar for obwogo

i need help with a c++ code for a prefix calculator using stack... doin basic math functions i.e.(+ , - , *, and /) .. my email add is carl_obwogo@yahoo.co.uk

Member Avatar for rubberman
0
46
Member Avatar for russendel

[Click Here](http://answers.yahoo.com/question/index;_ylt=AlQJPiETIJOaaftERf6r1l7sy6IX;_ylv=3?qid=20130507233149AAQXvZ6) answer this please...

Member Avatar for rubberman
0
122
Member Avatar for SpottyBlue

I was in the library's multimedia room to do my assignment, but all PCs don't have Visual Studio and other smiliar programs. So I wrtie the code on Notepad for the question: > Design a solution that will determine and display the fewest number of ringgit and coins in change …

Member Avatar for tinstaafl
0
1K
Member Avatar for Labdabeta

Hello, I am making a number of libraries to help me with my projects and I am torn between two approaches. I will show you what each looks like. I have no idea which would be considered 'better' in general. Locals: #ifndef SOME_GUARD #define SOME_GUARD VERSION_NUMBER #ifdef __cplusplus extern "C" …

Member Avatar for mike_2000_17
0
223
Member Avatar for gobiking

Hello, I have been trying to figure out how to make an array work with a calculator that uses up to 100 different inputs to calculate sum, difference, standard deviation min max etc. When I try to compile the code I get (error: no match for 'operator<<' on line 64 …

Member Avatar for gobiking
0
3K
Member Avatar for elattar

I need to make program that calculate multiplication of matrice i made it in main now i need to make it in functions would anybody hepl me with my problem that is my code #include <iostream> using namespace std; #include <cstdlib> void fn(int **arr) { } void fn2 (int **arr2){ …

Member Avatar for elattar
0
170
Member Avatar for nomorelogic

i would like to have the ability to tell the player they cannot go that way if the exit does not exist the rooms are in a text file that is read in, i know i should use a if function but dont know where to put it, any help …

Member Avatar for spuriousgeek
0
277
Member Avatar for kortneycoles

Hello all! I'm new to the forum and need some help. I finished most of the code already but I am stuck now. I'm trying to create a program that shows the interst and payment on a loan. I want to add som code that will sum the amount of …

Member Avatar for kortneycoles
0
171
Member Avatar for robert.speciale

I have a void function that takes data from an ifstream, reads the first value, (which is an ID #), and compares that value against the ID# info from an array of records. If it's invalid, the rest of the line is ignored. If it's valid, it adds the hours …

Member Avatar for robert.speciale
0
237
Member Avatar for hammy2013

The full structure of a C++ program to compare two strings and check whether they are equal

Member Avatar for ddanbe
-1
125
Member Avatar for ha1206570

Hi every one i have project and i need your help !! this is the project you can look http://store2.up-00.com/Apr13/Ddd93410.png http://store2.up-00.com/Apr13/9HA93410.png

Member Avatar for Ancient Dragon
0
171
Member Avatar for SpottyBlue

Can someone help me with this? This is part of my first assignment. I am quite new to programming. > A company wants to transmit data over the telephone, but they are concerned that their phones are tapped. All of their data are transmitted as four-digit integers. They wanted you …

Member Avatar for Moschops
0
498

The End.