First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
c++ regex for catching [ Tue Jan 15 14:30:59 2008 ]
I am using C++ in VS 8 with the lovely boost libraries. I am processing a log file where the useful information follows a predictably formatted date/time stamp surrounded by [ ] characters. A literal example of the text that I want to strip off is: [ Tue Jan 15 14:30:59 2008 ] a full example of a typical log l... 19 Jan 2008 01:47
Array error
I am working my way through some exercises in my c++ book (on my own, not taking a class) and have hit an error and I don't understand what it means or how to fix it. The code is: // output the squares and cubes of numbers 0-10 #include <iostream> #include <iomanip> using namespace std; int main () { int n... 19 Jan 2008 18:57
Can you tell me which function will be called?
Hi everybody, I asked a question yesterday that is related to this one. Below is, basically, what I have in a set of files for a logging class for my programs. Now, I wanted to overload the << operator to be used much like is done with std::cout, etc. Below is code, that won't compile, but that shows what I'... 17 Jan 2008 10:24
Implementation question on template functions
Hi, I looked on the C++ FAQ-Lite and found a solution, but my method of implementation isn't quite right. The link I went off of is http://www.parashift.com/c++-faq-lite/templates.html#faq-35.7. Now, I have in my header file: #include <iostream> #include <fstream> #include <sstream> enum logMode { stdo... 17 Jan 2008 10:24
typedef question
Hello, I'm creating a "wrapper" library interface for a third party library. One of my reasons for designing such an interface is to remove the third party header file dependency for users of my library. I am able to do this by using only references to the third party library objects in my header files and forw... 15 Jan 2008 19:12
equation to C++
Please help me with the following equation: 1. L + w / log[1 + sqroot(2)] + log (L+w/L) 2. File = Erf [ ( x - s ) / sq.root (2)] How do i write this in C++ ? especially the error function ?? thanks inadvance your help is sincerely appreciated May ... 15 Jan 2008 14:30
Calculate Running Time
When I run the program: # time ./a.out test.data the output: real 0m49.172s user 0m5.638s sys 0m4.850s Why real time and user time are big difference? How to reduce Real Time? ... 14 Jan 2008 23:36
Initial an Array
Each time initial an array: for(int i=0; i<size; i++) for(int j=0; j<other_size; j++) a[i][j]=0; It is very painful procedure for a massive data., is there any good idea? ... 14 Jan 2008 19:04
Shareware C Compiler
frodobaggins(a)cornwall.privacy wrote: There is a shareware C compiler downloadable from; http://www.c-compiler.com/ It has an integrated Windows workbench. You can contact the author at; Quoting the homepage: "void main()" or "Miracle C will accept only file names of 8 characters or les... 16 Jan 2008 02:02
Basic inoput issue
I am working through the exercises in a book and have hit a roadblock. In the following code I want the user to input 2 different things. The integer is fine, but the program skips right past the string input. I can't figure out why. Any help or hints would be apreciated. // A first programm #include <i... 14 Jan 2008 15:03
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21