cluelessguy

0

votes
0

answer
6

views

How does an irc daemon like Charybdis work?

I am pretty new to irc, and am poking around in it to try and understand it. I am running CentOS 7 on a VM, and have installed charybdis-4.1.1 and atheme-7.2.10-r2, using this marvellous guide. However, while the guide does a fantastic job of telling me how to install it, it doesn’t really tell m...
cluelessguy
9

votes
3

answer
522

views

Trying to push an unknown number of strings into a vector, but my cin loop doesn't terminate [closed]

I am trying to take strings as input from cin, and then push the string into a vector each time. However, my loop doesn't terminate even when I put a '\' at the end of all my input. int main(void) { string row; vector log; while (cin >> row) { if (row == '\n') { break; } log.push_back(row); } return...
cluelessguy