It's windows. I will just use _getch().
Type: Posts; User: hauzer
It's windows. I will just use _getch().
Okay, I made it this time and it works great, except one thing. cin.get() doesn't work at the end:
#include <stdlib.h>
#include <iostream>
#include <vector>
using namespace std;
I see that vectors are useful but can you show me how can I do it with new? Also, I tried compiling with vectors but it seems that they are not a member of std.
EDIT: I researched a bit and I see...
So that is not how C++ new works? I thought it can "detect" if it needs to malloc or realloc, or something.. Can you give me an example?
I am wondering why does this program crash:
#include <stdlib.h>
#include <iostream>
using namespace std;
int main(int argc,char **argv)