Anonymous
Yeah
Then read a book
Anonymous
Or even google "how to write an array in C"
Xudoyberdi
Okay, thanks.
Gulshan
do you have boost in brew list
everything worked fine
Gulshan
but I got an error
Gulshan
https://del.dog/socudipale.txt
Gulshan
what should I do with seekwrpos ??
su
what should I do with seekwrpos ??
if it is not found (unlinked) so your system is not win32 or posix or there is an error in linker commands
Anonymous
id, file_path?
Gulshan
https://del.dog/ipacyboste.txt
Gulshan
How to actually return a ? Srry if the question is silly... But it don't know
Gulshan
Gulshan
Therefore i commented it in my code and tried array
Dima
also a is not initialized
Dima
and you are out of bounds
Dima
using a[2]
Vlad
I am getting a segmentation fault
You haven't pushed anything to it
Vlad
Hence segfault
Gulshan
Hence segfault
actually i did ss>>....
skipper
/rules
Dima
no, you need to initialize it and you are out of bounds
Vlad
Now it has the capacity to do it
Gulshan
🤦‍♂️
That a.pushback is not working if I use "ss>>a.pushback()
Gulshan
vec.resize(3);
Same error 😅
WELBECK
I see
WELBECK
Any Spammer here ?
Vlad
Same error 😅
Did you put it before writing into it with stringstream?
Gulshan
Did you put it before writing into it with stringstream?
Ok putting that before string stream 😅😅
WELBECK
Nobody has answered me
Vlad
Spammers shall not pass
Gulshan
no, you need to initialize it and you are out of bounds
Ok so, whenever i use vector, i had to initialize by some vector commands right ?
Gulshan
Like a.resize() or anything??
WELBECK
Dont know about this Channel
Dima
ez
Vlad
Ok so, whenever i use vector, i had to initialize by some vector commands right ?
https://en.cppreference.com/w/cpp/container/vector/vector
Vlad
vector constructors
Gulshan
i am getting the same output..then also hackkerrank is saying that the code is wrong
Vlad
i am getting the same output..then also hackkerrank is saying that the code is wrong
also why won't you split the string first using token?
Vlad
i am getting the same output..then also hackkerrank is saying that the code is wrong
hardcoded indices won't help you much for an arbitrary length
Gulshan
actually i am allowed to just make changes in function itself
Gulshan
also why won't you split the string first using token?
actually the question related to string stream only
Vlad
ok learning how to do that 😅
You may do an exact thing that you already did just rewrite it into the loop
Vlad
As you can see there's a pattern
Vlad
You read a value and then delimeter
Vlad
So you can read into the temporary integer and then push_back it into the vector
Gulshan
ok trying
Henry
Hi
Henry
Hi
Henry
hastebin https://hastebin.com/
Henry
Please help me check it out
Henry
The pointer is not working
M.Khorram
hastebin https://hastebin.com/
Hi, You should send a link to your code.
Vlad
hastebin https://hastebin.com/
lmao it's the main page
Vlad
lmao it's the main page
Atleast not as deep web as stackoverflow's main page tho
Anonymous
Guyes how generate in C float number in interval -100 to 100?
Henry
hastebin - hevodaroji https://hastebin.com/hevodaroji.md
Henry
Okay
Henry
Also can i use linked list in files manipulation
olli
hastebin - hevodaroji https://hastebin.com/hevodaroji.md
i has probably not the type you want and is not initialized
olli
I doubt that's what he wants
Henry
I doubt that's what he wants
What i want is how i can display the strings in the array
Henry
hastebin - qoborutiva https://hastebin.com/qoborutiva.cpp
Anonymous
Hello