Csharp2vb: C #CodeConvert to VB.netProgramVb2csharp: The program for converting VB to C # (Conversion from Delphi and VB6 to C # is also supported)
Both of the following support bidirectional conversion.
Http://www.codechanger.com/
Online
During the summer vacation, when I looked at the various complexities of the desktop, I wanted to design a software system that could be opened directly like a shortcut menu, so I wrote the following work,
Platform vs2008, Language C #
【
]
1. After opening a file, remember to check whether the file is successfully opened.
This is not only a good habit, but also for usProgramDebugging is also very helpful. Otherwise, we will not find out why the program did not come up with the
Const
1. Const member functions cannot modify the status of member variables (that is, the value of member variables cannot be modified); const objects cannot call non-const member methods, if you want to modify the state of a member variable in
// Test_day11.cpp: defines the entry point for the console application.//
# Include "stdafx. H"# Include # Include Class cpoint {
Public:
Cpoint (double A, double B, double C, double D): X (a-c), y (B-d ){ Z = SQRT (x * x + y * y );
}
Void
1. STL template Efficiency
Generally, the STL template causesProgramThe running efficiency slows down because some standard data structures in the STL template need to allocate a large amount of memory space and context switching overhead.
# Include # Include Using namespace STD;
Class node {PRIVATE:Int;Public:Node (int ){This-> A =;}// Define the comparison function of the Class ObjectFriend bool operator If (A. A> = B.)Return true;ElseReturn false;}// Define the stream output
Crack. AMIn the-32-bit operating system, how many bytes are char characters in VC? What about int?Char 1, int 4, long 4, double 8 note that Int Is 8 bytes in 64-bit operating systems from 32 to 64 bit by adding zero before the data, in the task
Recently, I used C ++ file operations, in which I used to determine whether a file is empty. If it is empty, I will not read the file. After searching for the file from the Internet for a long time, I did not find it suitable. Finally, I chose the
In the header file of , there are macros of such a group of Operation files.
# DEFINE _ tfdopen _ wfdopen# DEFINE _ tfsopen _ wfsopen# DEFINE _ tfopen _ wfopen# DEFINE _ tfopen_s _ wfopen_s# DEFINE _ tfreopen _ wfreopen# DEFINE _ tfreopen_s _
// Maximum of two int values inline int const & MAX (INT const & A, int const & B) { return a } // maximum of two values of any type template inline t const & MAX (t const &, t const & B) { return a }/* if other conditions are the same for non-
# Include # include // print elements of an STL container template void printcoll (T const & Coll) { typename T: const_iterator Pos; // iterator to iterate over Coll typename T: const_iterator end (Coll. end (); // end position for (Pos =
# Include # include # include # include # include // STD:: vector is the default value of CONT (default template real parameter) template class Stack { PRIVATE: cont elems; // elements public: void push (T const &); // push element
I was asked the following question when I met Google.
Static class members include static data members and static function members.
A static data member:
When the static keyword is added before the declaration of the data member in the class body,
Today, when I was looking at an open-source project, I accidentally saw an unfamiliar syntax and usage. So I checked the information and wrote a demo for verification. The result is as follows:
Anyone who knows C ++ knows the word "Goto". This
Recently, I plan to develop some applications for iPhone, iPod Touch, and iPad. Therefore, I need to start learning objective C (a language similar to C developed by Apple ). Due to Apple's self-Closed Industrial Chain Development Model (from chips,
# Include # Include # Include Using namespace STD;
Typedef struct {Int detail [3] [3];} Map;
Int main (){ Map M, N;// Assign values to arrays in the struct using pointersFor (INT I = 0; I Scanf ("% d", * M. Detail + I );For (INT I = 0; I Scanf ("%
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service