Beginners (Page 80)

A pointer to base class cannot operate member object only exist in its derived class?
The following won't work #include <iostream> using namespace std; class base { public: int b; }...
[2 replies] Last: Thanks! (by northfly)
by Bocian
Help with program
Im trying to get a password verifier program working, i have made functions for it but, when i put i...
[5 replies] Last: Thanks a lot Terrison, i was working on it last night but i forgot to ... (by Bocian)
Memory fault for circular buffer
Hey guys I keep encountering a memory fault trying to call a class member function. Does anyone know...
[4 replies] Last: Sorry for late reply but you were correct I hadn't allocated the memor... (by MOSKing)
Need help with my do while loop problem. :)
I have been experiencing difficulties finishing my function. To those who have time, please take a l...
[6 replies] Last: Thank you very much!! Solved my problem. Have a great day man, thanks!... (by jam51197)
sort() function not working.
So I thought that the sort() function was included with the algorithm preprocessor directive (#inclu...
[1 reply] : check out the proto... (by shadowCODE)
Explain for (int x:y)
Could someone please explain to me in detail how this works. for(int x : y). Basically the use of th...
[2 replies] Last: Search the web with "C++11 range-based for-loop". (by keskiverto)
by jmag91
Seeking help with my program!
I am writing a program that prompts a user to enter a sentence and then has a function that counts t...
[16 replies] Last: And it's working!!!!!!! Thank you SO much for your help you guys. I ... (by jmag91)
Code rounding error
I have a school assignment that I am having a small issue with. Below is my code: // This program...
[3 replies] Last: Whe you take a float (say 13.999) and then convert it into a int then ... (by programmer007)
Array in function
Hi, I don't know why my value doesn't pass to the next function, can u please help me. Thank y...
[2 replies] Last: For anyone who might be interested in my program final result: Here's ... (by khatereh)
by slp99
Need help with a number diagram
I am having problems with diagram 2 and diagram 3. Can someone please help Diagram 1 12345 ...
[1 reply] : Your spaces function is wrong, it should cout << ' '; and not cou... (by fg109)
by mf95
Need help finding a word in a file!!
I am having trouble searching an file for a specific name. Every time I run the program it says the ...
[1 reply] : This works although it may not be what you want, it does work. I recom... (by SamuelAdams)
continue Statement
The code acts differently to the way I suspected it to. It prints Test-2 though I don't know wh...
[4 replies] Last: I'm going to give myself another 300 facepalms. Thanks lads. (by Fr0zen1)
how can i put an array in a class the right way?
I am struggling on how to put an array in a class and call the array in main .I have tried but i get...
[1 reply] : See if this video helps you - (by TarikNeaj)
have user print provide word
i have this code so far and all i need to do next is have the user enter a word and then print out a...
[1 reply] : How is findMostChangeable supposed to help you find the adjacent wor... (by fg109)
How to get integer size/position?
Pretty simple question: In strings you can do variable.size() or,so how can y...
[8 replies] Last: Thx, it works just I wanted now. If you want to, I could paste the ent... (by kik4444)
by Kman
Quick "expected an expression" fix.
Just a simple question. I have this program that's giving me the above error at the end of some of m...
[6 replies] Last: Alright, thanks for the help! (by Kman)
FLTK. Stroustup's striped closed polyline exercise.
Hi! I study c++ by myself using Stroustrup's manual. Problem that I faced is: when I defined new o...
[1 reply] : up (by alexander fedorov)
Looking for help
so I have a program I'm trying to write that essentially simulates a store. I have to read code in f...
[1 reply] : (by TarikNeaj)
by mf95
Integers into an int array ?!?
How do I get a file of numbers separated by spaces into an array of integers?? Assuming that there ...
[3 replies] Last: Maybe you can do something like... int integerCounter = 0; while(in... (by TarikNeaj)
by JoeJoe
basic cin issue.
Hello, I'm playing with classes and constructors and I'm running into a cin issue. My current progra...
[4 replies] Last: When you do array[ index ] you are saying "access the element in the... (by ne555)
Pages: 1... 7879808182... 87
  Archived months: [mar2015]

Cannot post in this page. To post a new message, go to the first page.