Add Bjarne's cppFormat ROT
This commit is contained in:
		
							parent
							
								
									4c10e99e2f
								
							
						
					
					
						commit
						cb00bea475
					
				
							
								
								
									
										37
									
								
								refs/cppFormat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								refs/cppFormat
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,37 @@ | ||||
| #include<iostream> | ||||
| #include<string> | ||||
| #include<sstream> | ||||
| using namespace std; | ||||
| 
 | ||||
| class C : public B { | ||||
|   // Private implied.. | ||||
| public: | ||||
|   // Code... | ||||
| }; | ||||
| 
 | ||||
| struct D { | ||||
|   // Public implied.. | ||||
| private: | ||||
|   // Code... | ||||
| }; | ||||
| 
 | ||||
| void f(int* p, int max) | ||||
| { | ||||
|   if (p) { | ||||
|     // Code... | ||||
|   } | ||||
| 
 | ||||
|   for (int i = 0; i<max; ++i) { | ||||
|     // Code... | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| int main() | ||||
| { | ||||
|   int i = 127; | ||||
|   string ss = itos(i); | ||||
|   const char* p = ss.c_str(); | ||||
| 
 | ||||
|   cout << ss << " " << p << "\n"; | ||||
| } | ||||
| 
 | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user