General C++ Programming - December 2013 (Page 30)

Somewhat large program, unsure of how to get it compiled.
 
We have to run unit tests on a program built in ~2001 for my Software Engineering class, but I can't get it to run. It's got a VC++ Project that grabs all ...
[2 replies] Last: Disable pre-compiled headers. http://msdn.microsoft.com/en-us/library/... (by JLBorges)
Rainfall Statistics using arrays and functions
 
OK, I need help with getting my program to return the actual month instead of the value for the highest/lowest values. I have my program written to find the hig...
[no replies]
C++ help please
 
I am in a computer science class in college as a GenEd class because I thought it looked fun, little did I know that I am not good with computers at all and I a...
[5 replies] Last: Go to youtube and watch buckys c++ tutorials, that'll give you a start... (by thiskid)
Superbowl Program Problem
 
Hello everyone. I am new to this forum and to coding so any pointers would be greatly appreciated. I am currently working on a code, but I keep getting a error ...
[3 replies] Last: No, you would have to declare them as arrays on line 11. const int MA... (by booradley60)
Expression: deque iterator not dereferencable
 
Hi together, i have a problem with using a queue of vector objects. Basically all i do is create a new object, put it in the queue and right after that try to ...
[6 replies] Last: Ok i fixed the issue. I just changed the queue to an object pointer a... (by Maggistro)
I need help with my code PLEASE
 
Here is the file: http://www.adrive.com/public/H5fXqh/QuestionsAndAnswers2.txt Here is the file with answer marked: http://www.adrive.com/public/22U4rh/QNA.txt...
[no replies]
i'th node on Linked List
 
This is what I have: I'm stuck in actually getting a node at a specific index from the linked list. I don't know how to implement it properly. add() function wo...
[no replies]
How to initialise this program?
 
I've made a program which is designed to perform matrix multiplication (using a compressed sparse row matrices), but I'm not quite sure how to initialise it in ...
[3 replies] Last: I've modified the main class now to have: int main () { CSRMatrix y... (by ocprodigy)
[urgent] how to get the users input to be stored in 1 out of x variables
 
Making a game of checkers on C++ win32, visual studio when i want a piece to move, i type: cout << "What piece do you want to move? (C4)" << endl; i type i...
[6 replies] Last: ok, so that link explains how to write to external text files, read th... (by MoonwalkingBaz)
Arrays
 
I'm trying to create a function that determines the largest value in the array and then outputs the value and index. I want to values in the array to be random...
[2 replies] Last: There also appears to be a problem here: numbers = (rand() + time(0... (by dhayden)
hangman c++ confusion
 
i have this hangman project due but i was sick for a week and missed class and i have finals for 3 other classes so im so lost and my teacher dones give a damn ...
[no replies]
how to read Excel cell as string when the cell contains formula
 
Hi, I am trying to read an excel file (several worksheets, different nr of rows and nr of columns). I have tried to read each cell as a string type: type...
[no replies]
by Ceset
not accesible
 
hi everyone button.h private: .... .... std::string mTitle; button.cpp //everything writes here is in one function .... .... ...
[5 replies] Last: ok. i found out that something i created in class overrides mTitle a... (by Ceset)
by Kubani
How to choose a solution among many solutions
 
Hello, About exercise 7 of chapter 10 of PPP (page 372): changing the calculator to gives us the result of the roman numerals, like XXI + CIV = CXXV. At *fi...
[8 replies] Last: For me, first is the better, just make the reverse function (by iQChange)
Urgent help please
 
Runtime Error : void Movie::show_movie(int k){ system("cls"); struct detail *mv; FILE *f; int n; f = fopen("data.dat","ab+"); ...
[5 replies] Last: Yes, but you need to provide the correct size. On line 11 you provide... (by dhayden)
C++ Inheritance help/sugession required
 
I am on a giant project(school) and I use inheritance. I have this base class from which several classes are inherited. A function is written in base class wh...
[no replies]
by kienme
(Algorithm) Pausing a game
 
Hello people, I am trying to add a small function to allow me to pause the game I am making. I measure the time elapsed using the following algorithm: 1. U...
[3 replies] Last: Ah! So wonderful and elementary. Thanks a lot for waking up a brain de... (by kienme)
Is there something wrong with the CODE [Prime Generator]
 
#include<iostream> #include<stdio.h> #include<math.h> using namespace std; void primeGenerate(int start, int end){ int i; int startMod10; int squar...
[4 replies] Last: You can declare the array like this: int array ; int array2 ; ... (by Mats)
by harook
operator() overload
 
I've got 2 classes, Store and Transaction and I would like to create a priority queue of objects Transaction as a variable of Store class. I actually already as...
[6 replies] Last: If you have a container of pointers, your comparison function needs to... (by cire)
by adv100
if statement in a function
 
I am trying to determine if these floats are properly formatted. I created a function that is designed to increment ctr if the float contains either a digit or...
[4 replies] Last: thank you so much! if ((isdigit (buffersize )) || (buffersize =... (by adv100)
December 2013 Pages: 1... 2829303132... 37
  Archived months: [nov2013] [jan2014]

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