hi my friends1
i want to compile c++'s code in fedora but when i used this code:
g++ Filename.cpp -o filename.exe
my code compile successfully and when is used this code:
my program run but when encounter by scanf an i give input in give me "segmentation fault" an break out.
in addition it not recognize none of header except stdio
what can i do????

Recommended Answers

All 2 Replies

Can you paste the scanf statement? Have you forgotten to use the & operator?


Show us your code and we'll be able to help you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.