Havoc
Hey
Havoc
#include "std_lib_facilities.h"
int main()
{
cout << "Hello World!\n";
keep_window_open();
return 0;
}
Havoc
trying to run this simple code but it wont run, error windows says file doesn't exist, using visual studio
D1ws
the header file shall be in the same dir.
Anonymous
Havoc
I see so how do I tell it
Anonymous
Is it located within the folder of your current project?
Havoc
the system cannot find the specific file
Havoc
Anonymous
yeah
std_lib_facilities.h?
Havoc
Havoc
it's in the same folder : Hello World
Havoc
but should the file be in .h or .txt?
Anonymous
What
Havoc
like the file std_lib_facilities, should I save it as .txt or .h
D1ws
come on. really.
Havoc
yuh
Anonymous
Save it as .exe
D1ws
are yu kidding
Havoc
me or him
Havoc
Save it as .exe
Uh the include "file" can't be saved as .exe it's a library
Anonymous
Havoc
is english your second language? I'm just having a hard time comprehending you
Simple Sorcerer
What's all the fuss. What's the problem?
Havoc
uh my code wont run
Simple Sorcerer
Havoc
bruh
Anonymous
Anonymous
Put it next to your code location
Havoc
I did at first but it sill wouldn't run, I did :
Create new program > Add file > I downloaded the library from the internet and saved it as .h>
Anonymous
What directory is it in
Havoc
the same 1 as the program folder
Anonymous
the same folder that Helloworld.cpp is in?
Simple Sorcerer
Ugh. These IDEs are so intuitive. it's a good thing I stopped using them)))
Anonymous
Simple Sorcerer
D1ws
i guess. hes using windows.
Anonymous
Simple Sorcerer
Wordpress
ahahahahaahahahahaahahahahah
Simple Sorcerer
Wordpress
I hate him with all my heart.
Anonymous
Simple Sorcerer
The admin's gonna come in and ban everyone for talking out of turn)))
Anonymous
Havoc
Anonymous
yes
Check your IDE settings
Havoc
alr I saved file to the folder and it still said can't file specific file
Anonymous
what file
Simple Sorcerer
screens would be very helpful to Havoc right now. but alas they have been switched off :(
Havoc
yeah can't upload pics, but I think I found out why it was rejecting it
klimi
Simple Sorcerer
Havoc
It says
Havoc
Error C1083 Cannot open include file: 'std_lib_facilities.h': No such file or directory
Havoc
dont think so
Simple Sorcerer
Anonymous
No one uses Visual Studio ;-;
Havoc
fr?
Anonymous
Go get JetBeans lol
klimi
fr?
People do in fact use Visual Studio :)
klimi
Just save it as .h and you are fine
klimi
(if you are using C++)
Anonymous
Try another header
Simple Sorcerer
I feel like I'm giving bad advice. Help him out, guys.
klimi
Okay sure, i can try find something online how to do it in visual studio
klimi
Simple Sorcerer
klimi
klimi
It should be saved as .h
Simple Sorcerer
Nobody expected this
I have an assumption that he created it using Windows Explorer. But it doesn't show the extension .txt
Anonymous
.h.txt lol
mito
Rose
User Shivam has 1/2 warnings; be careful!
Reason:
random AI talk