Beginners - April 2020 (Page 12)

EXC_BAD_ACCESS (code=1, address=0x0)
 
Hello, I am very new to C++ and have this error message with my code. EXC_BAD_ACCESS (code=1, addres...
[4 replies] Last: Hello jtek679, In addition to what has not be covered: Line 52 used ... (by Handy Andy)
I need some explanation
 
I have written.I have a confusion in this code .I assign the value to an integer pointer without the...
[3 replies] Last: it gives me error message invalid conversion from int to int In add... (by MikeyBoy)
if
 
I have an int variable, startWith_teller, that is passed into a function by reference. It goes throu...
[1 reply] : I got it. Just needed to use a different object for arrivalTime. (by stoneJax)
Need data type to be string, not int
 
Can anyone tell me why this code uses T as an int data type? I saw something that says it depends on...
[4 replies] Last: Hahaha! I'm sorry. I totally missed the simplest thing in main. I tota... (by closed account jEb91hU5)
by dkg123
Question about for loop
 
Taking an upper level c++ course in school but has been a while since I've played with it. Having tr...
[2 replies] Last: Got it going. Thanks again. (by dkg123)
by asxxx
Data structure/Tree
 
Hello.I start my adevneture with trees and I know only about binary trees I want to build family tre...
[10 replies] Last: Thanks everyone for help ! (by asxxx)
by asxxx
B Tree Structure
 
Hi everyone. I have question to B tree structure node in C language. I have three elements in thi...
[2 replies] Last: Thanks for help!! (by asxxx)
by asxxx
Vector of objects
 
Hello, I try to make vector of objects, can you see what is wrong with my code? Thanks for help! ...
[5 replies] Last: Thank you very much for help everyone. (by asxxx)
is this a good use case for std::any?
 
Hi I am writing a class which will have different members e.g. class x{ std::string nm; u...
[1 reply] : This isn't really a good use for std::any. Handling their custom data ... (by zapshe)
Arrays
 
I need to prompt the user to input two separate 3 character strings and store them in arrays. Then I...
[7 replies] Last: having trouble making array3=array1+array2 My second code snippet do... (by deleted account xyzzy)
Function Template Assignment
 
Figured it out Thanks
[2 replies] Last: I removed the input verification and added the template. Still working... (by JuiceStain1123)
by pkdir
std::vector - emplace_back
 
I am trying to better understand construction, moving and copying objects. To test when each operat...
[6 replies] Last: #include <iostream> #include <vector> struct Object { Object() { st... (by deleted account xyzzy)
Struggling to read in a complex file with parenthesis and many lines and spacings
 
I'm struggling with my current assignment at the moment, and I've been trying to find a solution for...
[4 replies] Last: Ganado, I went ahead and programmed all of that in. I was able to use ... (by Elarionus)
Pancake Glutton
 
The question http://www.cplusplus.com/forum/articles/12974/ pancake glutton, I'm currently in the ...
[3 replies] Last: int Persons_Data ; int Persons_Data_Copy ; for (int i = ... (by ronenp88)
why it throws an exception?
 
I have two problems, first, it throws an exception even i don't use double as argument, the second v...
[3 replies] Last: [code firstline=4]int addValues(int a, int b) { if (typeid(a).name() ... (by deleted account xyzzy)
Why can't this code read the data from the text file and stuck in a loop?
 
This code does not give the correct answer. Why is this? I just get a the repeating output of ...
[3 replies] Last: Hello, With this loop, after removing the commas, (does this have an... (by Shishykish)
Help with Enum and switch statement
 
Hi all! I'm needing a little help, this program is meant to calculate and output the body weight of ...
[2 replies] Last: [quote=Ganado]Breaking: Moon is now a planet …to say nothing of Plu... (by Enoizat)
Programming Assignment Help
 
I'm having trouble with my assignemnt and was hoping I could get some help. My professor wants me to...
[3 replies] Last: Hello FalseKing, PLEASE ALWAYS USE CODE TAGS (the <> formatting but... (by Handy Andy)
by ZZEZ73
How do I count the number of different elements in an array
 
the basic explanation is that there will be n number of numbers will be given. then a line of n numb...
[7 replies] Last: @ZZEZ73, Did you actually ask a question in your original post? One w... (by lastchance)
Programming assignment help needed
 
In both of my functions the the correct temperature is calculated, which is proven by the printf lin...
[1 reply] : Hello QuanCalzone, First question is this a C or C++ program? I trie... (by Handy Andy)
April 2020 Pages: 1... 1011121314... 20
  Archived months: [mar2020] [may2020]

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