Beginners - October 2018

Problem exchanging values using pointers.
hi, i've been having trouble with relocating a value in a vector when using pointers as passage in t...
[1 reply] : is 4 > 6? no, skip if body. is 4 > 5? no, skip if body. is 4 > 3? yes.... (by jonnin)
by typinc
How to use a function in a CLASS
Hi, I successfully made my first programme with a CLASS. The code is separated by main.cpp / Fusee.c...
[1 reply] : You have to call the function somewhere. If not in main, you need to ... (by jonnin)
by kmce
Random number
Hi, I am trying to generate random numbers, but I want to generate a new number on each mouse click....
[3 replies] Last: Ah, OK I was confused with the rand and srand. Once I moved the srand ... (by kmce)
by typinc
declaration is incompatible with...
Hi, i'm trying to make a function dessinerFusee() to cout something with the operator<< but I have t...
[7 replies] Last: Interesting. Thanks for the response. (by Ganado)
Troubles on Homework
I encounter troubles while doing my homework when my professor ask us to use structure to print out ...
[3 replies] Last: Hello Kiara Chern, One of the things you will find when writing progr... (by Handy Andy)
typedef double
I would like to calculate the inverse of a lower triangular matrix.But, I got errors. #include<...
[12 replies] Last: thank you lastchance (2541) and sorry for double thread. Thanks for yo... (by nurulhudaismail)
Creating a program that counts 00-77
So, this is for a school project. I am attempting to create a program that counts from 00 - 77 in oc...
[8 replies] Last: #include <iostream> int main() { for (unsigned int i = 0; i < 8; ... (by closed account E0p9LyTq)
lower triangular matrix inversion
Can anyone share the straight forward codes for a lower traingular matrix inversion. Thank you.
[1 reply] : #include <iostream> #include <vector> using namespace std; using mat... (by lastchance)
by AL88
Trouble understanding preprocessor directives
Im trying to set 3 different debugging levels. Ive been trying every possible combination and readin...
[5 replies] Last: Do you still have a question there? Apart from low/med/high being ide... (by jonnin)
Monte Carlo Methods
This is the code I created to calculate in C ++ using Monte Carlo methods, the average distance betw...
[3 replies] Last: My problem with this code is that in switch -> case 0, when I create ... (by kbw)
Unorderred Array based list
Hey guys i'm very very new to cplus plus and i am creating this data structure for and array based ...
[4 replies] Last: oh i manage to fix it. i forgot to put =0; at the virtual function ins... (by Syazlina123)
Checking Armstrong Numbers through while loop (homework
Here is the homework question, Write a program that inputs two numbers (interval) from user and pr...
[2 replies] Last: Ok, so that is the mistake.. It was actually written in the examples o... (by redfury)
by Kreons
Help with deck of cards program
Hi. I'm at a complete loss I'm trying to make a deck of cards that can be shuffled and distributed t...
[7 replies] Last: Any ideas on how to fix that. Read the warning message, don't do wh... (by Repeater)
need urgent help before submission
hello all, i've worked on this project for very long time and have dedicated a lot of hours to ma...
[10 replies] Last: Please DO NOT DELETE YOUR CODE after getting answers. It makes this t... (by MikeyBoy)
writing and printing out constructor pointer
Expanding my learning on c++, definitely now that i am in the deps of c++, going to need a lot of he...
[9 replies] Last: // b points to a which is allocated on the stack. Vector2 a; Vect... (by Peter87)
by bteddy
I need a List/Chart that list "old headers" and "new headers" that they are replaced with.
Hello, I installed 32bit G++ and GCC from Mingw-64 Version 6.0.0. I have some old code I need to...
[9 replies] Last: Thank you (by bteddy)
Comparator in sort
I am having a problem with using comparator in the sort function in c++. The problem doesn't occur ...
[5 replies] Last: The most likely place to see time used is in seeding of srand. One wou... (by keskiverto)
Class derivation / Shared functions question?
So if I have a pure abstract base class as so: class A { public: virtual void message1() const...
[1 reply] : Using inheritance, something like this, perhaps: #include <iostream>... (by JLBorges)
Calling Values from a Function to Another
Hi, I'm having trouble passing a value from one function to another. However, I am supposed to pass...
[3 replies] Last: Ahhh, I see I fixed the code and it's now working perfectly. I really ... (by randombeginner)
by JayGln
string manipulation
Hello, I'm trying to write a function that will take in a single string. In that string it has multi...
[10 replies] Last: thank you guys i will try this approach now and see what i come up wit... (by JayGln)
October 2018 Pages: 123... 28
  Archived months: [sep2018] [nov2018]

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