General C++ Programming - April 2011 (Page 35)

A little bit confused... - Functions - ...
 
I try to make this work and after put it into a class, but i cant find out where i got mistakes... i know they exist... please help me find out ... thanks in a...
[6 replies] Last: i is never used. You should receive a warning about this along the l... (by closed account zb0S216C)
I need to convert this program into object oriented programming (Reward)
 
I need help to convert this program into three files (object oriented programming). I am having trouble putting it into three files and somehow, I got many erro...
[1 reply] : The program that is downloadable is already OOP. The question, why th... (by Azagaros)
[size] cxx0030 error expression cannot be evaluated HELP!!!
 
when I compile and run it, the first input and any input with the same ID works, however if I ]try a new input the program breaks right after the add() function...
[2 replies] Last: Thank you!!! I stepped through the functions that are used and it tur... (by bretttheturner)
Functions:beginner
 
Cant get my function "giveDays" to give me the remaining days using the modulus. # include <iostream> # include <cmath> using namespace std; void giveWe...
[7 replies] Last: Getting back to the question at hand: You're assigning a value to a v... (by jlamothe)
Linked list wont set the right value /HELP!
 
//when I run the code, everything works for the first input, but when it comes to the second the addOperator() function sets the value to " " instead ofwhat it ...
[4 replies] Last: that simplifies a lot, thank you ;P (by bretttheturner)
by h9uest
hash_map: insert and its order
 
Hi, I've got 4 questions about C++ hash_map in "ext/hash_map": 1. Trying to access a non-existent key will introduce insertion, won't it? For example, I kno...
[2 replies] Last: @m4ster r0shi: Thanks for the reply. It's very helpful. (by h9uest)
by sotbs
Getting specific data from file and calculating them
 
Im trying out program this problem: We, the instructors of CSI course, would like to know how well male and female students perform in test 1. You receive a f...
[4 replies] Last: im not trying to get you to do it i just need the required information... (by sotbs)
by Rwolfe
Need help with Syntax when compiling...!
 
#include <iostream> #include <iomanip> using namespace std; // function prototypes string getDate(int month, int day, int year); string getMonth(int mont...
[2 replies] Last: first error was using string with out #include <string> (by Azagaros)
Works before I save as, then fails please help!!!
 
I saved a copy of each of the resource files to my desktop, and my compiler flipped out Im getting 80 errors that don't make any sense Error 25 error C2065...
[1 reply] : Can you check in the place where you stored all your files to make sur... (by Azagaros)
Help with linked list - for google science fair
 
I have been using a linked list but when a function is supposed to return the character string it always has a runtime error and breaks because it doesn't work...
[6 replies] Last: #ifndef KLIST_H #define KLIST_H #include "kNode.h" #include "Thing... (by bretttheturner)
Declaring Array of Pointers structs type
 
There is no error while compiling but there is a run time error anyone knows why? #include<iostream> using namespace std; struct StrCar{ char RegCode ; ...
[5 replies] Last: clear explanation... pointers are little bit complicated for starting ... (by behzadkh)
by drw
bit arrays
 
Hi, I'm trying to write this program where there is: (1) a greeting (2) make columns (3) have a stored text file input into the program automatically ...
[1 reply] : (1) a greeting (2) make columns (3) have a stored text file input int... (by closed account zb0S216C)
by jackie
Array of Student Record
 
I'm trying to Write a program, to allow users to Enter Student Records into an Array and means of Selection Sort from the Array. I am trying to sort by the Stud...
[5 replies] Last: The Loop is Working Well allowing me to add 10 Students, just wonder... (by jackie)
by zeC
Encryption and Decryption
 
Question: A company wants to transmit data over the telephone. All of their data is transmitted as 4-digit integers. You will write a program that encrypts a...
[4 replies] Last: sorry for bad english .. i try to fix !! #include <stdio.h> #include... (by caki)
Converting Char to Int Problem (1,2)
 
case 1-9 work fine, but 10 screws up. I know it's because of incorrect char to int conversion, but I don't know how to fix it. Help? Thanks! #include <i...
[25 replies] Last: makes sense, thx alot! :D (by timmah1493)
by Zap
Inconsistant Errors and Crashes
 
so, the program is meant to run a simulation of food supplies to an island with a variable amount of villages. (if you need the specific details i can provide a...
[4 replies] Last: [quote=ne555] //runs the simulation for (int d=0; d<Ntrials... (by Zap)
finding if entered character is uppercase, lowercase, or a number
 
I was already trying to write a console based simple program to find if the entered character is uppercase, lowercase, or a number (which could be a floating po...
[2 replies] Last: Thanks a lot, Azagaros. I really appreciate your help. Unfortunately ... (by jackson6612)
Linked list node deletion troubles
 
I was having problems with this program before but pushed through most of them. However, I keep encountering a run-time error when my "Kill" function is called...
[7 replies] Last: The problem in your ctor is you need cursor->next = new Node; before... (by naraku9333)
Geting Tierd Need some guidens by some masters of C++
 
Ok i have Googeld, i have read and started to go inzane. Can some one just please give me a code for downloading a file from the web. Tell me what lib to us...
[3 replies] Last: http://curl.haxx.se/libcurl/cplusplus/ go to link, sample code availa... (by Toothkiller)
template functions distinguishing pointers
 
I'm setting up generic save and load functions for serialization. Where we are not dealing with basic types, the second and third templates below should be ins...
[7 replies] Last: Thanks so much to you both. I now have the following, which appea... (by exiledAussie)
April 2011 Pages: 1... 3334353637
  Archived months: [mar2011] [may2011]

This is an archived page. To post a new message, go to the current page.