General C++ Programming - December 2014 (Page 23)

Program Help
 
I am asked to make the following program: Write a program in C++: {a}That asks user to enter a paragraph. {b}Then search for a sentence (or phrase) in that par...
[2 replies] Last: What about the part (b) any hints? I have made the part (a). Any hint... (by MustafaJaff13)
by vegon
2 queue with linked list
 
hi guys ... :D can any one tell me what's the problem in my prog. !! while the prog. running compiler say " access violation .. " this my code ... sorr...
[2 replies] Last: popa6200 at first ... i am really so sorry about this mistake :) an... (by vegon)
TRIGONOMETRY CALCULATOR PROBLEM
 
I'm only posting my entire program so that you can try it and see my issue. My problem lies with line 223 and onward. I've been trying to work out the sides ...
[2 replies] Last: > The trig functions expect values that are double that's true, for C.... (by ne555)
2D Vectors: How do I push_back to a specific row/column?
 
I am trying to push_back my first value in column 0 and my second value in column 1, however I do not fully understand 2D vector arrays, int i=0; vector...
[1 reply] : So... What's your problem? I don't see a question... Maybe I'm missing... (by Brenn)
by tanfa1
error about abort()
 
when i run this program it asks me for the first file , when I'm done for input the filename, i get an abort error, I am not sure what I am doing wrong, can som...
[1 reply] : http://www.cplusplus.com/forum/general/112111/ //while(!file.eof()) ... (by ne555)
Segmentation fault with <map>, clueless!
 
Usually im pretty good with my c++ but this is trippin me up, all i want to do is make a map of players based on their name and sqaud type (ALPHA, BETA, ect..) ...
[no replies]
(Urgent) I'm having trouble with the (std::!cin.eof()) function.
 
I'm currently taking an online course involving C++ program but I've never used it (I've only used Choicescript) and I ran into an issue regarding input files. ...
[6 replies] Last: Okay now it's working. Thank you very much. (by lololol)
Getting Segmentation fault using Maps!!
 
GameMaster.h #includes ... class GameMaster { public: void GameSetup(); void PlayGame(); private: GameSpace::MapSquadType MapOfSquads;​ GameS...
[5 replies] Last: #ifndef GameMasterX #define GameMasterX //GameMaster #include "p5.h"... (by xxsammyxx)
by gkraft
Trouble with vectors
 
OK I have this class of objects that are sheep. They have different values like color cost etc... I successfully loaded them into a vector to list and sort them...
[6 replies] Last: > (*itrShip).print(); //ERROR right HERE! shipVect contains obje... (by JLBorges)
User Defined Functions Need Help
 
So I received an error of "type name is not allowed" and I don't know how to fix this.... Here is the code: retrieveData(string Name, double wage, doub...
[9 replies] Last: Oh man thanks bro that completely worked, thanks for the help! (by tony2481)
Whats wrong with this program?
 
I am trying to make an interpreter. This stack function is supposed to represent the scope of the program, meaning scope of the variables. The START represents ...
[2 replies] Last: hmm maybe thats the problem haha (by armonsafai)
My String Function isn't working
 
The function Reverse does seem to work. Its supposed to take the words in a sentence and then reverse them. For example: "This is nice" to "Nice is this." When...
[1 reply] : I just put some cout statements into the reverse function to show what... (by wildblue)
QuantLib Library - error C2143: syntax error : missing ';' before '.'
 
Hi All, Kindly assist and thank you in advance. I am trying to you the GeneralLinearLeastSquares class in the QuantLib (signature below) but I get this er...
[10 replies] Last: This is the definition of generallinearleastsquares.hpp. https://gith... (by Gunit2003)
Time complexity for an array based List
 
So i was reading up on ADT, and Array based Lists.. The book introduces the list ADT, and it's different functions as such. We will deal with a general li...
[1 reply] : Hi, This doesn't make sense for since they already have a pointer to... (by TheIdeasMan)
Storing a list of numbers in an integer
 
I am writing trying to store a list of numbers into an integer as bits. So far I have this: n=n & 0x0f integer = integer<<2 integer = integer | n; conver...
[1 reply] : http://www.cplusplus.com/forum/general/150079/ (by MiiNiPaa)
initializer list
 
I dont follow the following code in the mydocument class MyDocument(char *fn): Document(fn){} Whats going on with this code is it calling Document class const...
[1 reply] : See http://www.learncpp.com/cpp-tutorial/114-constructors-and-initiali... (by keskiverto)
Word ladder help
 
Hello, I was asked to write a word ladder game (Not really a game, just the user input two words and the computer prints the word ladder) but I am having a ...
[1 reply] : You could have just bumped, you made me lose the bookmarks. http://e... (by ne555)
by wharp2
Semester Project
 
I am having a bit of problems with my project, it is listed below. Create an application to manipulate an array of student record objects. A student record ...
[no replies]
by Amiket
Chess game (check king)
 
How to write: Write a program that reads a chessboard configuration and identifies whether a king is under attack(in check). A king is in check if it can be ta...
[no replies]
Movie Kiosk Program help
 
Hello all. I need some help with this program. Here are the requirements: I want a kiosk style system for my movie theater. I want customers to be able to p...
[no replies]
December 2014 Pages: 1... 2122232425... 31
  Archived months: [nov2014] [jan2015]

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