Beginners (Page 5)

Displaying arrays and accepting inputs from the user
Write a C++ program with the following specifications: 1.Use two-dimensional array with size 7 colu...
[7 replies] Last: Hello goldwinbryanr, The "setw()" comes from the "iomanip" header fil... (by Handy Andy)
by Blake7
Strings and loops in c++
Hello, new programmer here. I'm asking the user for a weekday and then uppercasing it. Then checkin...
[2 replies] Last: Thank you! Will do. (by Blake7)
Help understanding this problem
Write a program that can divide six non-zero integers (two integers per division) from the user and ...
[8 replies] Last: noted on this. thank you so much (by goldwinbryanr)
Segmentation Fault Question
Currently working with pointers and from experience, I know that segfaults happen with the poor use ...
[1 reply] : products is an array of pointers that point to... what memory exactly?... (by jonnin)
Passing in an address into a class function
I'm doing a grocery store code and we're given a skeleton. I get that an address is passed in since ...
[4 replies] Last: Thank you both! (by priscilla96)
Why is Copy Construtor called?
I am using an example from Sams Teach Yourself C++ In One Hour a day. The instructor states that pas...
[6 replies] Last: That helps a lot. I totally understand now. Thank you so much (by bistelA0005)
Copy Constructor
I was wondering how a copy constructor would look like if I had private member variables of vector<C...
[1 reply] : There is no need to define a copy constructor in this case; the compil... (by mbozzi)
GCD problem
Given a list of numbers, how do I find out the minimum number of numbers to remove to make sure that...
[8 replies] Last: Nah, it's only a hard problem if your input is an arbitrarily large nu... (by helios)
How to write recursive functions in iterative way
Let's begin with an example from CLRS int gcdex(int a,int b,int &x,int &y) { int d,dp...
[1 reply] : Well, are you going to show us how to write it? (by keskiverto)
by Lilil
Need help understanding arrays.
Hello, I have this code here I need help understanding from homework assignment. #include <io...
[4 replies] Last: Sadly, that's not correct @srivats. You had better look up what sizeof... (by lastchance)
switch and if
i'm a beginner programmer and was trying out this array based program, it aint working the way i wan...
[1 reply] : well, it helps if you tell us what is broken. but I see this issue r... (by jonnin)
Lost Code
hello, I am new to programming and c++. I am currently programming on my mac on linux server and i r...
[5 replies] Last: the image, don't use the nano text editor, download a c plus plus ide ... (by srivats)
by Ak619
Question about argv error checking with string
I want to check if the input in argv is contains only the arguments in this array char validCharact...
[4 replies] Last: Yes, I'm having suspicions about an XY problem, @jonnin. (by lastchance)
How to deallocate memory allocated to a class instance
Write your question here. In constructor of my class <code>WorkPackage</code>, I am allocating a s...
[no replies]
ReadFile fails
Hello all. I'm trying to read file in chunks using Windows API ReadFile() but it fails for some rea...
[6 replies] Last: @Thomas1965 solution worked perfectly, many thanks! (by mondixon)
Problem to use the Eigen header
Hi every body I am new in C++, and I am trying to use Eigen with very simple code. I firstly trie...
[3 replies] Last: Thank you I see. I put n_e instead of ne. (by sam0916)
by DellXT
Realize a universal Turing machine that could perform a program from the .txt file
Realize a universal Turing machine that could perform a program from the .txt file. File format: 1s...
[7 replies] Last: @jonnin I think it might me OP's classmate or the person he's supposed... (by hoogo)
by Haniya
user login in c++
i am making a login form but it is not comparing the user input values to the values in the file cor...
[1 reply] : admin<<matchuser<<matchpass; admin is an ifstream. Why do you try t... (by Thomas1965)
Equilateral triangle with arrays
Write a program that will display an equilateral triangle with a height depending on the user. The m...
[9 replies] Last: why can't I create a new topic? (by goldwinbryanr)
get and set
iam so lost with the get and set functions . please someone help! #include<iostream> #includ...
[1 reply] : first of all, as their names imply, Getters are public methods used... (by Aceix)
Pages: 1... 34567... 32
  Archived months: [jul2018]

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