No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
19 Posted Topics
I'm looking for a graphic library to create a visual for data that involves between about 100 to 300 data points. Each set of data points covers a full day - so one day would have a few hundred data points total, and I'm looking to plot a graph of … ![]() | |
How would one listen for keyboard input, without causing the program to pause waiting for the input? For instance say you have something like [CODE]float num = 0; bool runloop = true; for(int i=0; i<1000000 && runloop; i++{ n += some_time_consuming_transformation(i); // How to listen for input at this point? … | |
Is it possible to use #ifdef with Boolean AND and OR? For instance something like [CODE]#ifdef WIN32 || WIN64 cout << "This is Windows." << endl; #endif[/CODE] The above doesn't give a compiler error for me, although it doesn't evaluate the or condition. | |
I'm having issues because I am using the Boost library, but another library I am using for this project is #define'ing the term 'thread' as well. And addressing the boost thread as boost::thread in my code doesn't help. Here is what the other library's definitino is: [CODE]#if defined(_MSC_VER) # define … | |
I'd like to turn PHP off within a folder, with the exception of certain files (e.g. disabling PHP for all files but test1.php and test2.php, or test*.php). I believe PHP can be turned off for a folder by placing "php_flag engine off" within that folder's .htaccess, but how can I … | |
I have LAPACK and am having problems trying to compile while linking to it with g++ (MinGW and MinGW 64, have and tried both) using the following command: [CODE]g++ main.cpp -I"C:\Program Files (x86)\University Of Tennessee\LAPACK 3.1.1\lib\x64" -L"C:\Program Files (x86)\University Of Tennessee\LAPACK 3.1.1\lib\x64" -llapack -lblas[/CODE] Even though I'm adding the include … | |
I'm having a lot of trouble finding enough RAM for a program I'm writing on Vista 64 Ultimate system, even though the system has 8GB RAM and only 2GB is used. I tried to see how many 10 million byte blocks I could allocate using malloc(), and the compiled program … | |
How does one make a batch file that can pass arguments to another command? For instance say I ran "c:\files\run.bat -a -b", this would call "c:\folders\do.exe -a -b". ![]() | |
I posted this originally at the [URL="http://forums.msdn.microsoft.com/en-US/vssetup/thread/99ff6079-04b1-4504-92ba-0845f398dd8d"]MSDN[/URL] forums, but wasn't able to get any help. Visual Studio FTP doesn't work on my desktop (which has XP), but the problem is only on my desktop. I can create and delete folders and files via FTP but I can't open files. Trying … | |
I have a class that has functions which use <stdio.h> and <stdarg.h> to take in indefinite arguments, and one of the member functions taking in filenames. There's another function (call it the "do" function) where I want to read from ifstreams created from those indefinite number of filenames. I can … | |
I believe indefinite arguments can be defined with '...', but then how do you access them? For instance for the following function: [CODE]int test(int n, ...){ return n; }[/CODE] | |
Can getc()/putc()/fgetc()/fputc() be used to read/write chars and floats rather than ints only from binary files? If so, how? | |
The vector class provides access and altering uses brackets, e.g. v[5]. How can I make a class that can do the same? e.g. given Class Test object t, t[5]=... | |
I'm trying the following code to combine ints, and then get the original ints back: [CODE]#include <iostream> using namespace std; int getleft(int n){ return (n >> 24); } int getright(int n){ return ((n << 8) >> 8); } int main(){ int i = 15; int j = 28515; int combined … | |
I'm trying to use fstreams to read and write binary data to a file with the following code: [CODE]#include <fstream> #include <iostream> using namespace std; int main(){ ofstream out("test.data", ios::binary); for(uint i=0; i<10; i++){ uint outcount = i+100; out.write((char*)&outcount, sizeof(uint)); } ifstream in("test.data", ios::binary); for(int i=0; i<10; i++){ uint incount; … | |
I'm confused about the use of the dereference operator in the declaring of char arrays. I think I understand that the dereference operator is used to dereference memory addresses to their values, and also in an unrelated function in the declaration of pointers; and that arrays are like special pointers … | |
Are there any functions to calculate, or common techniques to estimate, how much memory a C++ script is consuming at a given moment/place in the code? Maybe some built-in function that keeps track of bytes used? | |
I'm a C++ beginner. What's an easy to use (in terms of both installation and use in code) library for using MySQL in C++? Is there one that's a lot more commonly used than others? Note that I'm using MySQL 4.1.22 on GNU/Linux. I've found the following: [LIST] [*][URL="http://dev.mysql.com/doc/refman/4.1/en/cplusplus.html"]MySQL++[/URL] [*][URL="http://www.sqlapi.com/"]SQLAPI++[/URL] … | |
Is there any difference between regular expressions in C++ and in PHP/Perl? Or can one use the same regular expressions in C++ as in PHP? |
The End.