Hello, I am quite new to C++ and have stumbled on a peculior probleme. When I run my code it gives the answer for the submitted arabic number in roman numerals, however if I click 'y' to run again something like this happens.
Enter number: 45
Roman numeral: XLV
Go again? (y/n) y
Enter number: 2
Roman numeral: XLVII
go again? (y/n)
I have tried multiple times to make it work thanks to the code that the link contains, however I cant seem to get it to work. Any ideas on where the code will go?
I know that I probably sound like a idiot but...if I put roman.clear(); in line 115 i get:
1>------ Build started: Project: Travaux de chiffres Romain, Configuration: Debug Win32 ------
1> Main file.cpp
1>Testing loops.obj : error LNK2005: _main already defined in Main file.obj
1>C:\Users\Daniel\Documents\Visual Studio 2010\Projects\Travaux de chiffre Romain\Debug\Travaux de chiffres Romain.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
My good lord!!! I feel so stupid!! I had earlier created a new .cpp file to try and test that link of code you send me! Problem is now solved thank you so much for bearing with a noob such as myself. Have a good life and thank you once again.