Ask coding questions

← Back to all posts
If you have time to help with C++
cchapman (2)

void houseType :: set (string s, int bed, int bath, int cg,
int yb, int fs, double pr, double tx)

Answered by JoshDaBosh (77) [earned 5 cycles]
View Answer
Commentshotnewtop
JoshDaBosh (77)

what's the issue?

cchapman (2)

@JoshDaBosh I'm honestly just trying to find someone to explain a few things for me . I am very beginner I just started college again after a 3 yr hiatus and I am takikg the second part of C++ program and it is very tasking trying to understand it all after that long of a break.

JoshDaBosh (77)

houseType is now a c++ set right
s is a type string, bed is type int, etc. etc.
doubles are a type which can accommodate up to around like 15-16 digits
(ask me if you need more clarification)

cchapman (2)

@JoshDaBosh Yes I would like more clarification if its not too much trouble

JoshDaBosh (77)

@cchapman a set is like a mathematical set
objects in the set can be inserted or deleted, but not modified (they're all const)
you can select objects in a set by their value (therefore each value must be unique)
READ MORE: http://www.cplusplus.com/reference/set/set/

JoshDaBosh (77)

it says "Uploading ex-11.zip" btw

cchapman (2)

@JoshDaBosh yeah it keeps doing that to me

mat1 (2926)

Your file doesn't seem to be showing up for me...

cchapman (2)

@mat1 sorry im having issues trying to upload it

amasad (1865)

@cchapman what are you trying to upload? We don't support uploading arbitrary files here. Feel free to create a repl with your code. You can upload folders there.