Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Wie ändere ich main.cpp in summe.cpp um?

+3 votes
asked Jul 10 by Martha Ilse Ludwig (150 points)

2 Answers

0 votes
answered Jul 16 by Code VNew (330 points)
reshown 4 days ago by Admin
Entweder ich verstehe die Frage nicht ganz oder es ist einfacher als du denkst, ich empfehle das Lesen dieses ganzen Kommentars da ich auf einen wichtigen Punkt erst gegen Ende des Kommentars aufmerksam mache. Für diese Antwort nehme ich an dass du eine main.cpp Datei einfach umbenennen willst im fall von Windows lässt sich das ganz leicht lösen, und zwar in den Ordner des Files navigieren und umbenennen. Im fall von Linux ist es auch sehr einfach, und zwar in den Ordner navigieren in dem sich die main.cpp Datei befindet und mit mv main.cpp summe.cpp im terminal ( der Konsole ) umbenennen oder einfach im Ordner so wie in Windows. Hier der wichtige Punkt für Windows: Nutzt du fürs programmieren Visual Studio Community musst du aufpassen denn wenn du die main.cpp Datei einfach umbenennst dann verwirrst du die config files und nichts wird mehr so funktionieren wie es sollte und in dem fall von Visual Studio Community würde ich einfach ein neues Projekt erstellen mit dem neuen Namen summe.cpp und den Code der main.cpp Datei einfach hinein kopieren. Im falle von Apple Produkten kann ich dir leider nicht helfen da ich mich damit nicht auskenne, ich hoffe meine Antwort hilft dir
0 votes
answered 3 days ago by Peter Minarik (101,670 points)
In OnlineGDB, I'm afraid, you cannot rename the file marked "main.cpp". However, you can create a new file right above the "main.cpp" tab, and you can copy-paste your content of your "main.cpp" to that new file.

For any file other than "main.cpp", you will find an ellipsis (...) after the name of the file, which offers the rename option.

I hope this is what you were after.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...