General C++ Programming - October 2016 (Page 18)

Find The Error
 
class A { public: void Func(const std::string ); //Functions }; class B { std::string Array ; public: void Func(); //Fun...
[4 replies] Last: Array Something like this. Basically I am using a loop to display... (by Stalker)
Please help me understand this line intersection function
 
I'm aware that this is probably not the best place to post this but no other place has helped me thus far. I was looking over some code and I found this very po...
[1 reply] : cross() refers only to the magnitude with sign of the product. rtop =... (by ne555)
copying an array into another
 
Hi guys, Consider we have an array like this: int ar1 = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; We want to initialize a second one, ar2 , as a copy of ar1: i...
[5 replies] Last: mbozzi is correct that ar2 = ar1 doesn't copy elements if ar1 and ar... (by closed account iN6fizwU)
create class
 
Hi i am a student. I have an assignment that is to create a class Person which asks the user to input name and age for const 30 max students. What i have so ...
[18 replies] Last: Hey! Could you please take a look at this new code and help me with it... (by hamzams25)
HEXADECIMAL ONCE AGAIN
 
#include "stdafx.h" #include <iostream> #include <string> using namespace std; int main() { string sveikojiDalis; cin >> sveikojiDalis; string trupmenine...
[1 reply] : '1' is not the same that 1 '13' is a multi-character literal, n... (by ne555)
Help with WHILE statement
 
I'm suppose to write a program that continues to ask the user for a number between one and eleven (inclusive) until the total of the numbers is greater than 21....
[3 replies] Last: #include <iostream> using namespace std; int main() { int userN... (by closed account LA48b7Xj)
Invalid types 'double[int]' for array subscript (on cout line)
 
Need help: int main() { double fibonacci, n; cout << "Enter the number of fibonacci numbers:"; cin >> n; fibonacci = FibLoop(n); for (in...
[2 replies] Last: Thank you so much and sorry I will use them next time. (by benjamin4242)
by Gyiove
c++ set functions specific default argument
 
Hello everyone! I'm not quite if I've seen it around, I did not find it on internet but I believe that there was a way to set an specific argument while callin...
[4 replies] Last: Thank you! (by Gyiove)
An edx.org Harvardx CS Intro Course Homework Problem Question
 
As the title says, this is for the CS Intro course on edx.org, CS50 (Introduction to Computer Science). It's actually C instead of C++, but I thought I'd ask a...
[no replies]
Class with instance and inheritance with instance
 
I want to make 2 classes, first class that will be called Object and second Rectangle. In Object class there will be all functions for moving, rotation, and rec...
[2 replies] Last: Can someone help me with this? (by Putarda)
Tic Tac Toe
 
I have an assignment to make tic tac toe on c++ using classes . I want to add a following feature for bonus part . --> Instead of asking user where to put mark...
[2 replies] Last: Here is a tutorial using the Windows SDK: http://www.codeproject.com/A... (by Thomas1965)
by Won
Multiplicity in map
 
Dear forumers, I have a question maybe related to maps. I would like to find solution for the following problem: I have lots of vectors, some of the are ...
[4 replies] Last: Thank you very much! It works perfectly! (by Won)
pseudo code of C++ Trainer
 
I need to write a system that will help users to learn C++. The system should allow users o select specific topics and navigate them through all the lessons in...
[1 reply] : Do you mean something like: http://www.cplusplus.com/doc/tutorial/ htt... (by keskiverto)
I am having trouble implement my first linked list
 
Specifically, I'm experiencing difficulties exploiting my node class to create a list of student objects that are described below. I understand that convention ...
[2 replies] Last: Sorry, I'm not sure I follow. Did I do something incorrectly? I don't ... (by johndoejohndoe)
If I create bilingual dictionary, how to store words? text file or database?
 
Hello friend. If I create a bilingual word to word dictionary, for example Turkish and English dictionary that contains about 70 000 words, how to store the wo...
[1 reply] : Since you'll probably not need to make sophisticated queries, there's ... (by mbozzi)
std::map
 
#include "stdafx.h" #include <map> #include <iostream> #include <string> #include <sstream> using namespace std; int main() { map<int, string> astuntaine; ...
[6 replies] Last: It works perfect!! (by Tomheza)
Write a C++ program that asks the user for the student’s grade in percentage, and outputs the letter grade for it.
 
Write a C++ program that asks the user for the student’s grade in percentage, and outputs the letter grade for it. This process should be done continuously wi...
[2 replies] Last: Are you sure? The cin >> x should be at the start of the do while like... (by closed account LA48b7Xj)
by Revert
Permutations
 
What's up! So it is my first time taking C++ and I have no experience with programming and I'm doing some class work involving permutations. I've been strugglin...
[5 replies] Last: Yeah, I thought it was something like that :) (by theturk1234)
Help!!
 
Ive got this program to work using regular class functions, but when i switch it to class templates i get issues with the while loop(only the menu options would...
[4 replies] Last: @Radio4: Yes, change menu to an int. (by theturk1234)
The Modulo Operator
 
Okay so im doing some problems that involve the modulo operator. I get it but I would like someone to explain a specific problem for me. 24%10= The answer is ...
[2 replies] Last: Ohhh i get it, i did it the same way you did for the other problems i ... (by MHD8181)
October 2016 Pages: 1... 1617181920... 23
  Archived months: [sep2016] [nov2016]

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