Search Result
Collapse
3 results in 0.0014 seconds.
Keywords
Members
Tags
-
Question on ofstream
Quick question on c++ ofstream. in my main i have it declared as int main(int arg, char*argv[]). so that when i run the following command ./program.cpp test.txt it will run my program and pass the test.txt file into it. My question is how do i save my output file as the file name i passed in. i know to use ofstream but im not sure how to pass in the file i passed into my program to test. I have the following code.any help would be great. thanks... -
Scope problem
Hey guys whats going on. I have a quick question about scope. I have three files. my opcodetab.h , opcodetab.cc and my driver.cpp. when i try to call my get_machine_cod e() function while passing the string "ADD" i get the following error. "get_machine_co de' was not declared in this scope".Im a little confused and lost right now .So any insight would be awesome. Thanks guys..my code is below...
//////////opcodetab.h//////////////////////////////////... -
Ten common C (silly) mistakes
There are a lot of common C mistakes. I have put together the ones I consider to be the silliest made by C programmers. These are usually the source of the popular C programming tears and remembering the items on this page will brighten your C programming days somewhat.
(1) Values returned by mathematical functions on domain errors are implementation defined.
The best way of handling such domain errors is to ensure that...