[try Beta version]
Not logged in

Beginners - June 2017

Initializing two-dimensional vector of type Class
 
Hello, I have one question. When I was using int as type of my vector I initialized it the way you ...
Jun 30, 2017 at 6:53pm
[1 reply] : # include <iostream> # include <vector> # include <iomanip> class V... (by gunnerfunner)
by Meden
Where is my mistake? Project Euler Problem 9 - algebra, <complex>, or something else?
 
From: https://projecteuler.net/problem=9 "A Pythagorean triplet is a set of three natural numbers, ...
Jun 30, 2017 at 6:35pm
[5 replies] Last: I should make a, b, c ints, or you may hit floating-point round-off er... (by lastchance)
by ebii
interhance
 
hey guys iam a bit stuck with some program that i try to solve #pragma once #include<iostream> ...
Jun 30, 2017 at 6:01pm
[3 replies] Last: You probably want runtime polymorphism : #include<iostream> #include... (by keskiverto)
weird for loop
 
Could someone explain to me how this for loop work ? i just don't understand the 2 extra condition...
Jun 30, 2017 at 5:38pm
[1 reply] : Those are not conditions; they are just assignments. The condition is ... (by Zhuge)
continue statement
 
Quick question: assume that I have the following structure, will the "continue" command successfully...
Jun 30, 2017 at 3:30pm
[7 replies] Last: @mbozzi: thank you for referring me to this article! As I am not a nat... (by lifeisgood)
Problem Linking Headers and Source File
 
Hello, im new to c++ and am trying to link a header and source file to my main source file. Its sim...
Jun 30, 2017 at 1:47pm
[14 replies] Last: > undefined reference to `WinMain' chose `Console Project' (by ne555)
how to iterate through char array
 
i have associated a pointer to a char array. I would like to print each element of the char array us...
Jul 1, 2017 at 10:11am
[11 replies] Last: asd (by masterinex)
Where is the lib definition defined in a project?
 
Although I am not new to C++, linking has always been a bit confusing for me... so I suppose this ma...
Jun 30, 2017 at 11:31am
[1 reply] : Where is the STGPLUGINCLASSES_LIB symbol typically defined? Usually ... (by coder777)
Can I code this better?
 
Few questions here, I thought I could use Nested else if statements here but I'm trying to go exactl...
Jun 30, 2017 at 12:02am
[1 reply] : struct substance{ double fusion_temp, ebullition_temp; std::string ... (by ne555)
how to declare a reference to a pointer
 
i would like to create a function which takes in a reference to a pointer.for some reason when i bui...
Jun 29, 2017 at 11:26pm
[1 reply] : The error you encountered is due to using namespace std; coming afte... (by lazpeng)
by Caruso
2d array
 
Hi All, This is from a problem published on heakerearth.com We need to create a 2 dimensional arra...
Jun 29, 2017 at 7:47pm
[1 reply] : this is all weird. if you want 10 columns, n = 10. you get to it fro... (by jonnin)
what are the benefits of using Copy initialization form ?
 
i know that when we use the copy form (=) the compiler will pass the right-hand operand to the cop...
Jun 29, 2017 at 12:50pm
[5 replies] Last: thanks keskiverto , gunnerfunner for replying. i just wanted to know i... (by AhmedEl3agamy)
Reading hexadecimal from file and converting to integers
 
So my assignment is to read an unknown amount of hexadecimal numbers from a file into a char array, ...
Jun 29, 2017 at 12:38pm
[9 replies] Last: The conversion and subsequent addition to a sum is where I'm having m... (by dhayden)
how to check if a command line argument ends with .txt
 
I am trying to write a program which checks if one of the command line argument entered ends with .t...
Jun 29, 2017 at 12:18pm
[7 replies] Last: The code will check for ".txt" in any command line argument, so long a... (by dhayden)
i/o vector of strings to text file
 
hello i'm trying to write and read a vector of strings to/from a text file. it should count how man...
Jun 29, 2017 at 11:00am
[5 replies] Last: oh, now i see why the text file wasn't human readable. thanks everybod... (by Stauricus)
How could I test whether the input parameter is uninitialized (1,2)
 
I have 4 arguments are integers, and for consistent reason, I want to test the input argument is ini...
Jun 29, 2017 at 10:44am
[20 replies] Last: @JLBorges What is your problem? If the functionality of optional mee... (by coder777)
How do I merge text files in different sub-folders with path in it?
 
as tile~ so far, I did output a dir.txt that listed all the targets with this CMD code: D:\>di...
Jun 29, 2017 at 5:11am
[1 reply] : std::filesystem::recursive_directory_iterator (C++17) http://en.cppref... (by JLBorges)
syntax question
 
hey, so there's 2 ways to declare a variable of class first : mystring ex("lol"); second : myst...
Jun 29, 2017 at 4:22am
[3 replies] Last: One thing to keep in mind is that they are not always equivalent: The ... (by mbozzi)
Moving in two dimensional vector
 
Hello, I'm having one problem. Imagine you are having two dimensional vector in which you want mov...
Jun 28, 2017 at 6:13pm
[9 replies] Last: Just in case someone would struggle with the similar problem in the fu... (by david73)
by ebii
handling with files
 
hey guys how i read from files only int/or some char data let say i have list of student name + gra...
Jun 28, 2017 at 6:12pm
[5 replies] Last: thanks alot thomas . (by ebii)
June 2017 Pages: 123... 16
  Archived months: [may2017] [jul2017]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.