Beginners - May 2014 (Page 18)

class prototype and objects.
 
Confused! I'm doing the tutorial TheNewBoston made. I'm currently at "Introduction to Classes and Objects". My problem is i really like prototypes to keep it "...
[2 replies] Last: Thanks for the fast awnser :) But that is kinda sad to hear but i gues... (by Rsage1121)
type can not allocate an object of abstract type
 
I have problem with Define_Module. Error is: can not allocate an object of abstract type 'Q_mgmt_PerVlan' (Q_mgmt_perVlan.cc) Can anyone pls help? The c...
[3 replies] Last: You need to overload all pure virtual functions to be able to inst... (by MiiNiPaa)
Help with cycle
 
I write a program that work as a calculator at the end i want to insert a choice for close the program or restart from the beginning without exit. I post the ca...
[6 replies] Last: You should never use goto statements in C++ either. If you want to loo... (by Yay295)
6 ways to initialize a vector
 
I have an exercise from my book that says list 6 examples of each of the 6ways to create and initialize a vector, what are the values. I only got 5 ...
[1 reply] : http://www.cplusplus.com/reference/vector/vector/vector/ (by keskiverto)
returning a list STL
 
How can i return a STL list? I tried doing this Course* Schedule::getAllCourses(){ Course* array = new Course[courses.size()]; // create a dynamic a...
[4 replies] Last: "Simply return." A copy or a const reference? In both cases: { ret... (by keskiverto)
Help me with a code (1,2)
 
Thanks Solved :)
[22 replies] Last: Thaaaaanks Amirtork :) the last code worked thx you very mutch bro <3 (by NeVeR2TrY)
need urgent help in project plz plz
 
Write your question here. Write TWO CLASSES that help a professor with grading tasks. The first Class takes information about a test, assignment or exam and ...
[1 reply] : Hello, thank you for providing all necessary info to solve the problem... (by JockX)
std::FOO versus FOO
 
From someone who PMed me this question. Hello, I noticed in a lot of posts people have code such as: std::pow std::srand std::time I'm a litt...
[no replies]
selection using arrow keys?
 
i want to know that how i can select option using arrow keys like 1 input 2 output 3 exit if i press down arrow then cursor goto 2 then 3 and press enter...
[2 replies] Last: Here's something akin to what Pterodactyl was talking about, utilizing... (by StringTheory)
by akars
Help with some homework logic
 
Some help with the logic of this question would be great. I'm rather confused as to what it is asking. 2) Write a function BreakUp() that takes an integer in...
[3 replies] Last: It looks to me like you should have two functions. void BreakUp ( int... (by Yay295)
by dawixx
Function problems
 
I've recently started learning C++ and after a while I decided to put something of my own together, instead of doing simple tutorials. Whilst I have dealt with ...
[2 replies] Last: For the second question, I think you could do something using stringst... (by Yay295)
Need Help (1,2)
 
i need a screen string changer: cout << "Hello World!"; will result this : Hello World! but i need to change the Hello World to I'm Alive(just a example) h...
[20 replies] Last: txh am chinese ! (by TheLeandroNex)
by tavuk
Command line arguments and matrices
 
Use the Matrix class to hold the weather data. Do not include the year - only the monthly averages. Use command line arguments: name of file, starting year ...
[1 reply] : argc and argv are simply a way for passing information from the comman... (by AbstractionAnon)
by Latik
Compilation error : expected constructor, destructor, or type conversion before ‘;’ token
 
Hi.. I have tried the below code and it is giving compilation error as 'error: expected constructor, destructor, or type conversion before ‘;’ token. Please...
[3 replies] Last: @AbstractionAnon Please have a look... I have edited the question.. (by Latik)
Converting an String[] to Char[]
 
http://pastebin.com/WAxU1Sxu #include <string> #include <sstream> #include <iostream> using namespace std; //global variables string stringHold...
[1 reply] : You can access the elements of a string as a char array by using with ... (by AbstractionAnon)
plz help...How to read text file into struct?
 
Hi. I have a problem with my program. I have to read a text file into a struct that has song name, song artist and song duration. struct playlist { ...
[4 replies] Last: Hey filipradil, I just had some code I was working on that used exact... (by StringTheory)
by yepMe
Displaying linked list
 
hi all I am new in c++ and writing a linked list program, my code is working fine , i just help to understand the traversal concept. Below is my code my doub...
[5 replies] Last: No. The last node points to NULL, so you need to tell it to point to ... (by Lowest0ne)
run through array from posx
 
Hello, can i easily run through all positions of an array, when i start at pos x (somewhere in middle), so when i reach the end i continues at pos0? I alrea...
[5 replies] Last: thx softrix i will try that one. (by Raven1991)
by strife
cant find iostream
 
Hello, So today I needed to write a new code... I opened a new project, console application. It opened up something like this so i compiled and ran it, just to ...
[2 replies] Last: It will not for me... it keeps giving me the error that it cannot find... (by strife)
vector->list->equal_range
 
I find that this reference in this site has no the method about the list, that is list<type T>::equal_range() is not found, but in the compiler.
[3 replies] Last: std::equal_range is in algorithm: http://www.cplusplus.com/reference/a... (by Lowest0ne)
May 2014 Pages: 1... 1617181920... 55
  Archived months: [apr2014] [jun2014]

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