>im actually programming in C
Then keep in mind that C89 doesn't support the <iostream> header, namespaces, or the true keyword. Your code won't compile as C, and failing to return a value from main is undefined behavior.
>wat is the equivalent statement in C++?
I thought you were programming in C.

Anyway, the equivalent statement in C++ is
fflush(stdin) . It's equally broken in both languages, I strongly recommend you forget that it happens to work on your compiler. A more correct C++ solution is istream::ignore:
#include <iostream>
#include <ios>
#include <limits>
std::cin.ignore ( std::numeric_limits<std::streamsize>::max(), '\n' );
And the equivalent C code uses a loop:
#include <stdio.h>
int ch;
do
ch = fgetc ( stdin );
while ( ch != EOF && ch != '\n' );
Which can also be done in C++:
#include <iostream>
char ch;
do
std::cin.get ( ch );
while ( std::cin && ch != '\n' );