Beginners (Page 8)

Having trouble with vector of integers in which I need to make sure that the gcd between any two numbers is 1
The vector's size is determined by the user so the solution needs to be generalized to a n sized vec...
[1 reply] : #include <iostream> #include <cstdlib> #include <vector> using namesp... (by lastchance)
Vigenere table! I did it!
I am just sharing this because I'm proud of figuring it out myself :-) #include <iostream> ...
[9 replies] Last: (by kemort)
by wolfv
stringstream getline() only reading first line of cells
I want the following code to print all the cells of a comma separated values (csv) file. It only pr...
[5 replies] Last: Thank you folks, that worked great: #include <iterator> #include <io... (by wolfv)
How Do I Create An Array of Linked Lists?
Like the title says pretty much. I'm to create an array of linked lists for my homework assignment a...
[3 replies] Last: Also to further add to my question, is an array of linked lists basica... (by ace6208)
Understanding how to delete new dynamically allocated variables
This code is to simulate a train where you start with an engine and you can add train cars, detach t...
[10 replies] Last: I can modify main in the portion where I have to detach the train. Eve... (by ninjachachi)
Help With Tic Tac Toe game
I am working a project (Tic Tac Toe game),and I am facing problems with the human vs computer opti...
[no replies]
Derived class shenanigans
So, I am in a bit of a tizzy. class Derived:public Base { public: Derived():Base() //unsure of s...
[4 replies] Last: You put ( ) after class name. It should be: class Derived : public B... (by Golden Lizard)
by A34
Using a function with pointers to find a min value in array
Hello everyone, I'm not sure why my pointer is not returning the proper minimum value when the prog...
[1 reply] : try something like double minval = numbers ; double maxval = numbers... (by JayhawkZombie)
by Dan21
User-input on Pointers
I am having a little bit of trouble trying to get the user-input to work with using pointers. Here i...
[1 reply] : You want to cin into the data member of the class object either direct... (by gunnerfunner)
Creating a to do list
I am creating a to do list project that will add items to a list, start listing things off one by on...
[3 replies] Last: NudeRob I would love to use vectors but our teacher is requiring array... (by dgood42)
promp the number of character for the user in a string
Write your question here. #include<iostream> #include<string> using namespace std; int c...
[3 replies] Last: Thank you I could find the answwer!! (by kevinros)
output file got problem
Hi everyone , what should i do ? my output file got problem , i expected that the output file have t...
[5 replies] Last: :relieved: i got it . thanks everyone . (by Zuhairah)
by Grimes
Comparing binary search trees
I am trying to compare binary search trees. one is given but the other i have to make so that it ca...
[2 replies] Last: header file template <class Object> class BST { public: BST(); B... (by Grimes)
stuck on two-dimensional array program
I am supposed to create a program that displays the contents of a two-dimensional array, column by c...
[3 replies] Last: The 2d array is defined as 4 rows x 3 columns. Check how many times th... (by wildblue)
how to make for statement correct?
My for loop is not allowing two separate places for input. I am very new to C++ and do not speak eng...
[3 replies] Last: I think you're just missing the input line for the price before the ci... (by wildblue)
by Coyo
Help with Diamond * pattern
Hi guys So i am brand new to programming. I have just started self learning about 4 days ago, so ...
[2 replies] Last: Yeah that's the one :). Yeah i was looking at those conditions but at... (by Coyo)
comparison with string literal results in unspecified behaviour
#include <iostream> char satasfied; bool reAsk; void satasfiedFunction() { cout << "Are...
[1 reply] : char satasfied A char variable holds a single character, not a stri... (by wildblue)
skipping characters with operator>>
I found the following post on skipping white space characters with the operator>> http://stackove...
[no replies]
by Givi
OOP class checking account
Hey I'm stuck on this next part of this program. I am to create 3 methods; one to deposit into accou...
[3 replies] Last: Solved!! (by Givi)
Pages: 1... 678910... 49
  Archived months: [oct2016]

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