Beginners (Page 3)

Multiple Inheritance
 
For my computer science class we are supposed to write a program with classes that calculates how ma...
[7 replies] Last: Never mind I figured it out! Ah good ! I hope you spotted the p... (by TheIdeasMan)
Run small scripts in CMD?
 
So basically I'm learning from an app on the mobile where they create and learn c++. The thing is, t...
[1 reply] : C++ is not a scripting language. You will have to compile the program ... (by Zhuge)
how to save input in a file?
 
I am writing this little test program to see if I can save input into a file without it being overwr...
[3 replies] Last: So, if you want to save the previous input, either open your ofstream ... (by koothkeeper)
How to Add name & info to text file for read and write
 
Hello, Im new to C++ and trying to get my code to work where I can add a name and put down some in...
[no replies]
by leourb
Access and Modify Class Elements in a vector<class>
 
Hi. I would like to know if it is possible to access and modify an element of an existing class o...
[7 replies] Last: Yes keskiverto! Thanks... I am writing a program part of an exercise o... (by leourb)
Problem counting words individually
 
Can someone please help me. Thank you for looking. It is not counting the each word separately ...
[3 replies] Last: @keskiverto, Great my version (using my suggested algorithm above) wor... (by CodeWriter)
My for loop was okay but my while loop is not. I don't know how can I do it. It should be 10 to 1 not 1 to 10
 
#include <iostream> using namespace std; int main () { int num = 0; cout << "Using for...
[2 replies] Last: Thanks man. :') (by mightyjack)
by JoanT
Having problems with codes
 
I'm supposed to write a program to create an array of size 20 to store integers. Then, the program s...
[9 replies] Last: Here's the modified version. Just refactor and/or arrange it according... (by jrosario)
how do i goo about this
 
The heating system in a school should be switched on if the average temperature is less than 17 degr...
[5 replies] Last: Deja vu ... same poster, same topic, the other two threads: http://www... (by keskiverto)
How to solve
 
Write your question here. My computer has some problem, when i open computer, it says unactive wind...
[1 reply] : Maybe you mean "Activate" Windows :| (by leourb)
Error reading string with spaces
 
In this menu driven program, when I run the code and take "Add employee", I am unable to read names...
[7 replies] Last: @CodeWriter, When I use that code and input something like "Wayne Roon... (by AnishKumar)
by fguy
User defined I/O operators.
 
when I run the code below I get garbage output after reading the data from the text file and printin...
[3 replies] Last: #include <iostream> #include <vector> #include <fstream> struct Poin... (by JLBorges)
Cannot find my error
 
I'm writing a program for a class and cannot figure out my mistake. Can anyone help. the program is ...
[3 replies] Last: Hi, Welcome to cplusplus :+) Just some pointers to help you out for ... (by TheIdeasMan)
by kal24
substract all 1 number
 
Hello,this is what I have so far but I don't get how to do the substract the largest all 1 number yo...
[3 replies] Last: you may see 111 as 1+10+100, so keep substracting until the number is ... (by ne555)
Errors I'm unable to recognize
 
The program reads IDs and scores for a test and then outputs the ID, score, points based on score, a...
[1 reply] : > I'm getting all kinds of different errors ┬┐why bother to actually w... (by ne555)
Undefined reference to 'function()'
 
Hi, I am beginner in C++ and am using Code::blocks. I have surfed the web and wanted to test a si...
[2 replies] Last: There is no problem with multiple declaration. Your didn't configure... (by ne555)
template classes multiple definitions
 
Hello guys, So I was wondering where to put what when defining a template. As when the compiler i...
[4 replies] Last: Okay that clears it all up, just read up on explicit instantiation and... (by ChajusSaib)
Modulo Fibonacci finding Cycle in a vector
 
I have a vector with modulo fibonacci sequence this sequence has a cycle of what I think is a rando...
[1 reply] : What you have just seen is me being very very stupid, I WAS USING A CH... (by ctrlbadgerxl)
Classes
 
Hi guys, I am bit confused when it comes to classes.I can create a public function so I can call ...
[2 replies] Last: Thanks for your answer , it makes more sense now. (by LifeFiber)
by Filorn
typedef enum
 
How i can print an element from the enum giorni at the line 15? #include<stdio.h> int n; typ...
[14 replies] Last: if the user writes 1, the program answers "lunedi" (the first element... (by FurryGuy)
Pages: 12345... 64
  Archived months: [may2015]

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