| | |
current source file
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Feb 2009
Posts: 55
Reputation:
Solved Threads: 0
hi
I'm doing an exercise from a book, where I created a project called "Example.cs".
When I wrote the code, here are the steps involve:
1. Select New Item. This causes the Add New Item dialog to be displayed. Select Code File and then change the name to Example.cs,
2.Next, add the file to the project by pressing Add.
3. Next, type the example program into the Example.cs window and then save the file
4. Compile the program by selecting Build Solution from the Build menu.
5. Run the program by selecting Start Without Debugging from the Debug menu.
This is no problem until here. And below of the examples there is a note written like this:
As the preceding instructions show, compiling short sample programs using the IDE involves a number of steps. However, you don’t need to create a new project for each example program in this book. Instead, you can use the same C# project. Just delete the
current source file and add the new file. Then recompile and run.
What does the "Just delete the current source file and add the new file" mean here? How can I do that?
Does that mean, I have to delete the code that I've wrote and rename the Example.cs and do the next exercise?
Thank you
regards
tintincute
I'm doing an exercise from a book, where I created a project called "Example.cs".
When I wrote the code, here are the steps involve:
1. Select New Item. This causes the Add New Item dialog to be displayed. Select Code File and then change the name to Example.cs,
2.Next, add the file to the project by pressing Add.
3. Next, type the example program into the Example.cs window and then save the file
4. Compile the program by selecting Build Solution from the Build menu.
5. Run the program by selecting Start Without Debugging from the Debug menu.
This is no problem until here. And below of the examples there is a note written like this:
As the preceding instructions show, compiling short sample programs using the IDE involves a number of steps. However, you don’t need to create a new project for each example program in this book. Instead, you can use the same C# project. Just delete the
current source file and add the new file. Then recompile and run.
What does the "Just delete the current source file and add the new file" mean here? How can I do that?
Does that mean, I have to delete the code that I've wrote and rename the Example.cs and do the next exercise?
Thank you
regards
tintincute
Or delete the Example.cs and repeat the steps to create new code file and paste the code into. Or simply replace existing code with new one.
Actually this is bad comment, ignore it!
Actually this is bad comment, ignore it!
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
OK, so mark it as solved!
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
![]() |
Similar Threads
- Programming in VBA reading file into dynamic array (VB.NET)
- c++ source code problem urgent!!!! (C++)
- fstream Tutorial (C++)
- Read properties file (Java)
- Using OpenGL in Visual C++: Part I (Game Development)
- Windows programming - C - Save file function (C++)
- Source Control Review (Computer Science)
- reading a file into code (Java)
- RE: Leaked Windows Source Code (IT Professionals' Lounge)
Other Threads in the C# Forum
- Previous Thread: isRecording
- Next Thread: Beginner wants to learn a new language but confuse !!!
Views: 373 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button buttons c# chat check checkbox class client code color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ http httpwebrequest image index input install java label list listbox login mandelbrot math mysql networking operator oracle path photoshop picturebox pixelinversion prime programming radians regex remote remoting resource richtextbox save saving serialization server socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view webbrowser windows winforms wpf xml






