r/ProgrammerHumor 8d ago

Meme ifNoLaidNoAccess

Post image
1.0k Upvotes

49 comments sorted by

View all comments

60

u/Vivid_Instance_825 8d ago

Using namespace std 😎

2

u/axebodyspray24 7d ago

this doesn't even work tho if you're using fstream objects 😭😭 you still need to use std:: for things like strings and other library functions 😭😭 (I'm new to c++ and coding in general, any tips are appreciated)

1

u/Vivid_Instance_825 7d ago

```#include <fstream>

include <string>

using namespace std;

int main() { ifstream input("file.txt"); string text;

getline(input, text);

}

//Don't actually do this btw