Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duthomhas)
by cash
passing array of structure through function
 
I'm supposed to write a function that finds the maximum distance between two points created by an ar...
[2 replies] Last: Your function prototype: double getDistance(struct Point a, struct Po... (by H00G0)
I am trying to learn C++ and a foreign language
 
And to combine both of them I thought to make a program in C++ that verifies the sentences that I he...
[7 replies] Last: You are perfectly right :) (by actyon20)
by veysel
Data Structure
 
Hello Struct and Union are data structure in C/C++ as i know. Here my quesiton is that Class a data ...
[13 replies] Last: No jonnin this is perfectly fine: union test { unsigned int i; ... (by Grime)
String and Array
 
Hello guys, i am desperate how to fix this code. For example i have the string option; and ...
[3 replies] Last: As the two previous posters have pointed out, there is not enough cont... (by AbstractionAnon)
by vysero
|= and ? operations
 
I have a line of code here and I am trying to determine how the variable value is being calculated: ...
[5 replies] Last: which is also the same as this, I believe, you can check it: value |=... (by jonnin)
binary '<<': no operator found
 
Hi, I am getting this error binary '<<' no operator found which takes a right-hand operand of type...
[3 replies] Last: It not wrong to put the definition in the header, but your code will... (by helios)
by odo
this simple code giving error ?
 
it's giring error, sorry for rules #include<stdio.h> #include<stdlib.h> #include<math.h> ...
[2 replies] Last: thnks (by odo)
Object with constructor as member of another object
 
Hello, I'm Angela and I'm new to the forum and the C++ programming language. Suppose I have a class ...
[2 replies] Last: I mean, of course it's that simple! hehe thank you sir! :) (by Angela1998)
Passing a "string array" into a function
 
Hey, im doing a project for class and I have to convert a user entered number into roman numerals. ...
[3 replies] Last: > E0308 more than one instance of overloaded function "display" matche... (by salem c)
columns and rows
 
I am trying to figure out how I would store the values for the total cols and rows so my print_array...
[8 replies] Last: In both of your totalling routines you have declared i, j to be double... (by lastchance)
Find index of an element within the array
 
I have the following function: template <typename T> size_t FixedVector<T>::find(const T& va...
[2 replies] Last: Thank you so much. I did what you told me and it works now. (by bbsmiley)
My code skips the first line
 
When I'm running the code it runs but it skips the first line of entry and I'm not sure why. I've tr...
[5 replies] Last: Thanks guys this is helping me learn. (by chocotaco)
Extend dynamic array of pointers
 
Let's say we have class Example.With a constructor we initialize n pointers,but later in the program...
[4 replies] Last: Thanks for your advises.We must use dynamic memory allocation this way... (by Zivojin)
by Cairus
Object and Class Issues
 
In this code I got age to work, but I think im misunderstanding HOW it works as I am trying to get i...
[2 replies] Last: It is a very good thing to learn to debug because as you improve your ... (by Zivojin)
by Maria2
C++ more then one max values (1,2)
 
Is there any C++ function that returns the highest value s in an (int) vector, e.i. {4, 0, 2, 4}?...
[25 replies] Last: f = count(vs.at(i).begin(), vs.at(i).end(), alpha ); alpha is the s... (by Maria2)
by NKGold
I cant find the error
 
After I wrote this program I got a a lot of error messages but I cant find where I went wrong. ...
[4 replies] Last: Thanks, that worked (by NKGold)
by sjh
search word in file: i get different output like i want (1,2)
 
hello everyone, i know this is very messy but i have a problem searching a word. i want to search my...
[20 replies] Last: You cna make some function that comapes two words letter by letter and... (by Zivojin)
Reading in string and passing data to an array
 
I have a text file filled with decimals and I am trying to pass that data from the text file into an...
[5 replies] Last: #include <iostream> #include <fstream> // accept all streams, not ju... (by keskiverto)
Pages: 123... 28
  Archived months: [dec2018]