Beginners - March 2016 (Page 9)

by ibbi
Creating members of class automatically?
 
Can we make a function which automatically declares a member of a class and then we can call the functions present in the class for execution on it?
[1 reply] : What are you trying to achieve? (by keskiverto)
List n Prime Numbers
 
Hello all, I'm still new to C++ and I'm trying to write a program to list n prime numbers (n being user defined) and display the first 20 on the console and s...
[3 replies] Last: Thank you AbstractionAnon for your advice. I ended up reworking the c... (by smctech)
Crashing and can't debug
 
Pleas help me with this, why is my code crashing? It compiles then opens the exe then appcrash window comes up. It says in the installer it's Dev C++ 5.9....
[3 replies] Last: I tried the debugger and shows a window that I have not enabled debug... (by Chervil)
Making a wav file compiled with the executable.
 
Hello, so what i'm trying to do is create an executable that does not require the wav file to be in the same directory. I want the WAV file to also be compiled ...
[2 replies] Last: Hey, yeh I saw that before coming here but it didn't really make too m... (by TerryTibbsTV)
getline(cin,line) cin >> line difference
 
Write your question here. if i use getline in this code suppose input be 123 12 1 then output would be 123 12 1 as expected but if i use cin instead,then ...
[1 reply] : getline does raw, unformatted input. It really reads whole line as is.... (by keskiverto)
Help with compile errors please
 
The assignment was to take the existing code and change all strings passed or returned by all the functions to be passed and returned as string pointers instead...
[2 replies] Last: thanks. glazed right over it. (by supakracka16)
Stack using SingleLinkedList
 
So the task is to implement stack using single linked list. But without defining the actual node(the only private member: Single_List list and public functions)...
[10 replies] Last: You could perhaps do: StackReference Stack::top() { return StackRef... (by keskiverto)
help with homework assignment
 
why does my program keep freezing at the point where it is suppose to implement the while statement? #include <iostream> using namespace std; int main() ...
[3 replies] Last: I honestly don't understand the concept of the equation, or really for... (by kromari)
3rd paramater for min/max_element in <algorithms>
 
I dont understand what the 3rd paramater is for the min_element or max_element functions. I've seen the reference on this website, as well as the example repr...
[5 replies] Last: In the reference page for std::min_element there is a possible impleme... (by keskiverto)
Binary Search Tree
 
Hi, I am building a binary search tree project and I am interested to fill up the vector by taking the order value from the binary tree(Takes a vector refere...
[2 replies] Last: When coding recursive functions, I always like to write code as if (... (by dhayden)
Need Help with this Hangman like game
 
Please help me with confirming the user input letter if it's wrong or right based on the blanked up word. #include<bits/stdc++.h> #include<string> usi...
[2 replies] Last: Ey don't get caught man, he's everywhere, that name on your comment is... (by glaivetitan)
i want the same character to appear on every line
 
Write your question here.okay, so the teacher gave us an assignment. in a certain part of it, she asks us that a prompt “>” should be printed for the user a...
[1 reply] : http://www.cplusplus.com/forum/beginner/187572/ (by chicofeo)
i want the same character to appear on every line
 
Write your question here.okay, so the teacher gave us an assignment. in a certain part of it, she asks us that a prompt “>” should be printed for the user a...
[3 replies] Last: SimonB yes that is it. Thank you very much. i just need to adjust a co... (by eliiofaddoul)
Checking for duplicate values in an array
 
I am currently working on a program that generates a random number and storing it in an array. I first arranged it ascending order and then checks it. My prob...
[1 reply] : This is an opportunity to expand your knowledge of the standard librar... (by Moschops)
Arrays
 
I have created a program of arrays to assign value of one array to another array. This code worked #include <iostream> using namespace std; int m...
[1 reply] : I am finding hard to believe your first code worked: #include <iostr... (by chicofeo)
Help possibly cleaning up code
 
So, I've begun to learn how to program. I'm making my programs work, but I can't help but feel I'm not "thinking like a programmer." Now, I'm using a very speci...
[2 replies] Last: Xismn, I had no idea he was the inventor! I feel a bit daft, I've bee... (by Cheech0)
by jam47
Modified Hangman Game
 
Make a program that is like a hangman but there are only 3 words to pick randomly by the program and outputs the word. The word will change its 4 letters random...
[7 replies] Last: Thanks RobiBue! Everything is working now. :D (by jam47)
by rantiv
adding files?
 
OK so we were given files (cpp and h) to implement to our main.cpp. How do I make it so i can get information off of those. I did #include. DOes this even make ...
[2 replies] Last: you should only inlude the header of a class, not the .cpp Remove #in... (by Viiarge)
by Zan97
Book Cipher
 
Hi, I am new to the world of C++. I am take a computer programming course in college and I have this project of creating a book cipher. I'm stuck here, and I wa...
[2 replies] Last: here is the problem I am having. I have it so that it reads the book f... (by Zan97)
Help running .exe
 
Hello, I'm not sure if this would be the right place for this, but since it involves my programming class I suppose it is relevant. Anyway, our teacher gave us...
[1 reply] : http://stackoverflow.com/questions/18668003/the-procedure-entry-point-... (by keskiverto)
March 2016 Pages: 1... 7891011... 47
  Archived months: [feb2016] [apr2016]

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