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:
./filename.exe
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????
farvahar_mr
0
Newbie Poster
Recommended Answers
Jump to PostCan you paste the scanf statement? Have you forgotten to use the & operator?
<<snip>>
All 2 Replies
Reply to this topic
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.