560 Posted Topics
Re: Not to sound counter-productive but there is an installer available for boost, if you're using Windows I would say it's definitely worth checking out. It takes a long time to download the files but, you get the pre-built .DLLs and .LIBs for multiple compilers, target platforms, and runtimes. After you … | |
Re: Try adding "Winmm.lib" to the project options under additional link dependencies. Or add this line to the top of your file: [icode] #pragma comment(lib,"Winmm.lib") [/icode] | |
Re: Oh there is a way to make your program run on a certain date/time, on W7 it's under: Accessories -> System Tools -> Task Scheduler It's a very useful Windows feature too :D Also, I'm not yet convinced it's impossible to block ctrl + alt + delete, as soon as … | |
Re: I also don't think fstream will have a problem with 4+GB files, I think sadsdw's problem is more likely due to memory usage (speaking from experience). | |
Re: Once you drag + drop a "control" on your "form" you can select the control and in the properties pane at the top there is an "events" button you will want to click. Those events are most likely relevant to using your logic with your GUI. Find one, such as … | |
It's becoming that time again where Americans have to choose which idiot to vote for. In recent years I haven't voted nor have I been educated about the candidates, and so for 2012 I have decided to change that. Firstly, what is a good source of news for learning about … | |
I had a seemingly bright idea for a cleaner and easier to use operating system feature, for when the Windows clutter just gets too bad. Basically I want to alter the behavior of every window, such that when it loses focus it is minimized. But I don't know how to … | |
Re: Learning C++ is probably going to take you quite a while. This link will help you at some point, [url]http://www.cplusplus.com[/url] | |
Re: [QUOTE=visom;1612133]Hi everybody I'm not sure where to put a question like this so forgive me if I'm in the wrong spot. I've just passed my college course C++ (had VB.net experience... if it matters) with a B. Is that knowledge enough to get a job somewhere or do I need … | |
Re: [quote][icode]void main()[/icode][/quote] void main is incorrect, the two official entry-point headers are: [icode] int main() [/icode] and [icode] int main(int argc, char *argv[]) [/icode] | |
Re: Press "Windows Key + R" then type "cmd" or "command" or "command.com" in the run box, just make sure you get a command prompt window open. Then type "ver" or "systeminfo" and press enter. Please note that if you use systeminfo you will likely have to scroll up. | |
Re: What exactly does this do? [icode]if(ff1 >! -999999999)[/icode] | |
Re: [QUOTE=the_kitoper;1611024][CODE] #include <time.h> time_t whatTime(const char* month, const char* day, const char* year) { time_t rawTime; time(&rawTime); struct tm* convTime = localtime(&rawTime); std::cout << "Today is: " << ((convTime->tm_mon)+1) << "/" << convTime->tm_mday << "/" << convTime->tm_year << std::endl; } [/CODE] When using this code I get the output '7/27/111' … | |
Hey, I'm wondering if it's a good idea to put my email in the about box of a utility I wrote, and in the source code. My thinking is the developers or users will be able to contact me if they have problems with it or ever need to update … | |
I copy data from a "DataGridView" to the clipboard, but it contains lots of mysterious tabs that shouldn't be a part of the data, here's a sample of what I mean: [code] Keywords Searches omaha nebraska apartments 260 houses for rent in omaha nebraska 140 houses in omaha nebraska 720 … | |
Re: What's up with all the "hacking" lately? I thought that's what we were doing, but we're not on the news. | |
I need to extract an integer value from the end of a string, and I'm a little bit lost on algorithm functions/classes in C#. Is there any sort of convenient class/function to help with this? Here is a sample string: "omaha nebraska weather 2400" | |
Hi, currently my application uses panels to put all the controls on and manage docking, but I need a resizable border. How is this done? | |
In the past I used a "Finite State Machine" to follow a sequence of keystrokes to completion, but I don't think it's effective and I was wondering how you guys would implement this: (I have the keyboard & mouse hook lib worked out) When a sequence of events (keystrokes & … | |
I recently stumbled upon a boost installer (which I think is awesome), here [url]http://www.boostpro.com/download/[/url] and I was wondering if there is anything similar for QT and Visual Studio 2010? On the QT Website I found this page, but no VS2010 installer. Will the 2008 one work ? [url]http://qt.nokia.com/downloads[/url] I suppose … ![]() | |
Re: Read a tutorial on C style strings, or better yet "Arrays" in C. | |
I need to know a bit about this "default int" thing in C. What I mean is, is this actually ok and with what version of C is it ok? [code] main() { return 0; } [/code] As far as I knew this was standard modern C (i.e., no retarded … | |
Re: [url]http://msdn.microsoft.com/en-us/library/ms228963.aspx[/url] or maybe [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.application.doevents.aspx[/url] I'm not sure how it fits into your design but couldn't you "Raise" an event every time the progress bar needs updated? Do you know what a delegate is? You may also be able to call an update function directly as opposed to raising an event. … | |
Re: I'm no licensing expert but I do know that I hate the GPL, what if someone wants to use a part of your code in a product, or something that you don't want to give the source away? What if *you* want to use a part of it in something … | |
Re: Nevermind, bad question. I remember needing to write a program that generates curve functions, as in specify a begin point an end point and a point or points the curve needs to pass through. Sadly I never got around to it. But! My math teacher told me it involved solving … | |
Hi this project is actually C++/CLI but I expected more useful help from the .NET developers (most things are similar). So, I have a transparent form (completely transparent) and I want to draw a visible rectangle onto it and since I am using C++/CLI I was hoping to do it … | |
The idea(s) aside, how does a lone programmer with a few languages at his disposal make awesome software? Do you think with proper research, planning, and design a lone programmer can make awesome software, or do you think it will usually require a couple of partners? How do I learn … | |
Re: Umm, I'm not sure I would be giving out any personal information even if I have a phone number to call. | |
Re: Does this help? [code] using namespace std; const string FILENAME = "INTEGERS.TXT"; const string AUTHOR = "Rf"; const string ROLE = ", (s)\n"; const string SOLTXT = "\nSolution by "; const string INFILE_ERR_MSG = "File does not exist or it is empty!\n"; const int EXIT_ERR_INFILE = -1; // Error with … | |
Re: Agreed, we aren't in the stone ages of C programming--use vectors. The "app terminated in unusual way" may also be an uncaught exception, from my experiences. | |
Re: [QUOTE=a.oprea;1605170]I think the best choice is to begin learing a lower level language like C++ or java, after you master those, you can easily go up to more higher languages. The other way around is not that easy[/QUOTE] Lol, I love C++ (it was my first language), but I have … | |
Re: [QUOTE=mike_2000_17;1605454]While you are using C++0x, then you might as well do: [CODE] my_list.remove_if( [](int x) -> bool { return x == 4; } ); [/CODE][/QUOTE] Hey mike the "-> bool" specifies a return type? | |
Re: I don't normally opt to use applications written in Java because they seem to not be as responsive on my system. If an application written in a different language is available I normally choose it. If one day soon bleeding-edge PC games are written in Java I will be surprised, … | |
Re: [quote]Apple has not opted for an upgradeable storage option with the iPad, for reasons which escape me[/quote] ^^ It's due purely to stupidity, or perhaps just pure douche-baggery, I can't decide which. | |
Re: [QUOTE=vidur;1604602]a software written in python to change the extension of all existing exe files on a system to a randomly generated integer would prevent a conventional virus as knowing the file is an executable and hence from infecting it. i know there are easy ways of getting around this. so … | |
Re: The easiest way may be to use the C++ STL. [code] ifstream inFile();//<-- file opened and checked for errors elsewhere vector<string> dataStructure; string input; //Skip the first 5 lines: for(int i = 0; i < 5; i++) getline(inFile,input); //Store file in a data structure while(getline(inFile,input)) dataStructure.push_back(input); //Extract some tokens for(vector<string>::size_type … | |
Re: Int to string is easy in C++ with a "stringstream", or if you prefer you can use an old C function. [code] int someInt = 256; string out; stringstream(someInt) >> out; [/code] | |
Re: [QUOTE=cerezo_mark;1603847]Hi i am a College Student and has a thesis of Face Recognition, this thesis was great and i want to have an experience building this thesis. But the problem is i don't know where to start. I have already studied some of structure approach of this thesis and apparently … | |
I'm hoping for a second opinion on which of these two motherboards to buy (I hope this is the right place). [url]http://www.newegg.com/Product/Product.aspx?Item=N82E16813128511&Tpk=Gigabyte%20A75M-UD2h[/url] [url]http://www.newegg.com/Product/Product.aspx?Item=N82E16813138331&Tpk=Biostar%20TA75A%2b[/url] Obviously the Biostar has better advertising, which one would you pick, and why? (Space inside my case is not an issue at all, and the USB 3.0 … | |
Re: string(size_t, char) is a constructor overload, the constructor is a function that initializes the class. Primitive data types (like int, float, double, char) don't have constructors, nor do they have functions associated with them. In languages other than C++ (like C#) integer types to have a set of functions available, … | |
Re: Now you guys are depressing me, I'm 21 already and haven't even got to use my skills for money. 50 - 21 = some wasted time, <sigh>. | |
Re: Post your code between the code tags like this: [code] /* Code */ [/code] What does this do? if (a == 1 || a == 3 || a == 5 || a == 7 || a == 9 || a == 11 || a == 13 || (a == 2 … | |
Re: Using Win/Mac is like breathing to me. I suppose I must repetitively fumble around with my hardware (keyboard, laptop), a brain interface solves that problem. | |
Re: [QUOTE=sknake;1602406]This may also be a helpful snippet: [code=c#] public static int GetRandom(int min, int max) { byte[] b = new byte[sizeof(int)]; new System.Security.Cryptography.RNGCryptoServiceProvider().GetBytes(b); int i = BitConverter.ToInt32(b, 0); Random r = new Random(i); return r.Next(min, max); } [/code][/QUOTE] Is it appropriate to seed the Random class every call like that? … | |
Re: If you're still wondering, a variable on the stack has an address, which points to a reserved section of memory. The process is veery similar to using dynamically allocated objects with pointers. Hopefully this small example can clear up some of it: [code] #include <iostream> using namespace std; int main() … | |
Re: I tend to think Iterators are more of an idea than being tied to a single implementation. A predefined function is one that is implemented already. Stl algorithm: [icode] std::random_shuffle( someVector.begin(), someVector.end() ); [/icode] | |
Hi, I'm trying to display a message in the compiler output using VS2010. In C/C++ we can use:[icode] #pragma message(">> Win32 <<") [/icode], but for C# I'm not really sure what options are available. | |
Re: Reading from a hard drive is typically around a million times slower than reading/writing to memory. I read that somewhere, don't quote me. |
The End.