Show Process In Linux Using C++
Hello, I'm starting in C++, reading a good book of it and i want to build a program that show to the user all the process that the Linux of he is doing, using C++, someone can help me please. Thanks! ...
Hello, I'm starting in C++, reading a good book of it and i want to build a program that show to the user all the process that the Linux of he is doing, using C++, someone can help me please. Thanks! ...
I want to know if there are any free Subversion repository hosting servers where you don't need to have a 'project' to host your C++ files in. I don't have a actual project, but I want to store my C++ in an SVN repository. I am looking for something like OpenSVN where you can upload your C++ files, but it requires you to have a project...
I have my application(VC MFC) run with gflags with Pageheap enabled to track down the page heap corruption. Now the application has crashed and it shows this error, i could not interpret these lines (other than having a feeel of resource inavailablity) Can anyone throw a light on what exactly is the reason that has caused the carsh of...
I was looking over some (C++) code and found something like this: //Foo.cpp namespace { void SomeHelperFunctionA() {} void SomeHelperFunctionB() {} void SomeHelperFunctionC() {} //etc... class SomeClass //<--- { //Impl }; } SomeHelperFunction[A-Z] are functions that are only needed in that tra...
Just wondering if it is possible to declare a function of an enumerated type in C++ For example: class myclass{ //.... enum myenum{ a, b, c, d}; myenum function(); //.... }; myenum function() { //.... } ...
I have a large number of INSERT statments to run. As I run them, I understandably get "maximum open cursors exceeded". OK Oracle, so I will close the cursors immediately after running the INSERT statements. SQLCloseCursor( hStmt ) But Oracle says to this "Invalid cursor state." Why is Oracle not happy with me closing the cursor? ...
hello, i am looking for a sample code implementation on how to invert a 4x4 matrix. i know there is gaussian eleminiation, LU decomposition, etc. but instead of looking at them in detail i am really just looking for the code to do this. language ideally C++, data is available in array of 16 floats in cloumn-major order. thank you! ...
I have a C++ File class with read function, that is supposed to read whole contents of a file (just like Python does) into a buffer. However, when I tried to call read function from unistd.h, I get: file.cpp:21: error: no matching function for call to ‘File::read(int&, char*&, int)’ file.cpp:17: note: candidates are: char* File...
Could somebody please explain to me why does this code only print "42" instead of "created\n42"? #include <iostream> #include <string> #include <memory> using namespace std; class MyClass { public: MyClass() {cout<<"created"<<endl;}; int solution() {return 42;} virtual ~MyClass() {}; }; int main(int argc, char *argv[]) { ...
I'm learning C++, and know a little bit of Visual Basic and an Delphi. But I want to know, is there some program like Delphi, but for C++. Something where you can drag a button to a form, double click it, the like in Delphi and VB: opens a code editor and you edit the code of the button, but with a similar code of C++? I'm using Windo...
Im trying to learn Win 32 API programming from theForger's Win32 API Programming Tutorial. Should I choose Visual C++ -> Win 32 Project or Windows Form Applicationto get started? Thanks ...
Can this ever happen ? 3 asserts, where one should activate. int nr = perform_calc(); assert( nr == 0); assert( nr > 0); assert( nr < 0); Can there be a case when the program doesn't activate the asserts on g++ 3.4.4. And no I don't have the possibility to change the code in order to print the number out in case the asserts don't act...
Hello, I'm learning C++ and i want to know what is the best editor for C++ development, remember that i use Windows Vista, an editor that is like Microsoft Office 2007 or Vista like will be very nice, because i love this new style of Windows Vista. Thanks! Editor Not IDE ...
I'm trying to get my arduino with ethernet shield set up as a server to understand GET and POST requests. I found this, and could modify it to meet my needs, but was wondering if something already exists in C++ that is extremely lightweight and might already be commonly used for arduinos with ethernet shields. ...
I'm using an image manipulation library that throws an exception when I attempt to load images > 4GB in size. It claims to be 64bit, but wouldn't a 64bit library allow loading images larger than that? I think they recompiled their C libraries using a 64 bit memory model/compiler but still used unsigned integers and failed upgrade to us...
Is there a C++ wrapper for the Tokyo Cabinet API? Obviously I can use the basic C API from C++, but I'd much rather use something that abstracted the raw functions and structures into classes. I'm tempted to write this myself, at least for the bits of the API that I'd want to use, but it'll save time if there's one already. I checked th...
Given the following methods: // Method 1 void add(const std::string& header, bool replace); //Method 2 void add(const std::string& name, const std::string& value); It would appear that the following code will end up calling method 1 instead of method 2: something.add("Hello", "World"); I ended up creating another method that looks...
I was wondering if enumeration is commonly used with user input. I'm doing an exercise in which in my Book class I have to create an enum Genre with different genre enumerators such as fiction, non, fiction etc. When the user uses the program, he/she is asked for certain information about the book being stored. For a genre, normally I ...
Is it better to add functions that return the internal state of an object for unit testing, as opposed to making the testing class a friend? - especially, when there is no use for the functions except for the case of unit testing. ...
I'm a complete newbie when it comes to XCode and I'm looking for something similar to Visual Studio integration for XCode. I'm developing on my Vista pc in VS 2008 and I want to be able to develop the same project on my macbook as well, but I don't know how to configure XCode to do the same things that VS does. ...