560 Posted Topics
Re: "std" is a [i][u]namespace[/u][/i] and it is short for "standard". If you don't include "using namespace std;" then you have to do this: [code] #include <iostream> int main(){ std::cout << "Notice the namespace followed by the scope resolution operator?" << std::endl; } [/code] | |
Hello all, I'm a Jr. in college and I haven't studied machine learning yet to any extent. I would like to at least know how to specify this project I have in mind though. Basically I'd like to have a number of input images to "train" the software with, and … | |
Re: Actually there's a button at the bottom so that you yourself can mark it as solved. | |
Re: of course it does! Create a new project, expand the options until you find C#, select a Windows Forms Application and get to it. | |
Re: If you post in the C++ forum I'll help you, as will others. | |
Hey guys what's the easiest way to find the Nth occurrence of a character in a string? I'm hoping there is a standard library function with a name like "NthOf" or something. Thx. | |
Re: Yeah you should post in the C# forum because C++/CLI uses .NET People like "Moschops" don't even know what C++/CLI is. | |
Re: I think this is called a "circular dependency" where one class requires another which in turn requires the other class and doesn't compile. To see what I mean, try removing "GCF"'s dependency on "Calclist" and then try building. Unfortunately the remedy is to remove the circular dependency... | |
| |
Re: By "basic design" do you mean you have studied enough about the HTTP protocol to actually implement creating a basic web browser? My suggestion to you is to attempt to create a text-only web browser first, but I don't expect you'll ever complete your task. Instead I think, it will … | |
Re: [QUOTE=valestrom;1640872]What I want to do is have a predefined battle function, I can code the function, all I need to know how to do is have the function sitting there, so when I call it, all it takes is one or two variables to set up and go. So every … | |
Hello there, I'm not too entirely familiar with the operation of scheduled tasks within Windows XP and I'm tasked with finding an operable solution. Firstly, a couple things come to mind: 1. Start the process with windows using a low priority and sleep until it is time to function. This … | |
Re: You didn't explain what you're supposed to do to get the output. | |
Re: I do believe there are things worth dying for, but the dude is obviously in the wrong. You don't just kill people to promote a book! Unless the book is going to save the world, but somehow I doubt that if we don't read it the world will split in … | |
Is there a built-in way to convert a string to an operator like + or - ? I get the feeling support for it isn't there but it's worth a try... | |
Re: [QUOTE=zachattack05;1632243]The project I have been working on and seeking advice on from this forum for over a year is approaching it's final steps. All that really remains is arranging the controls on the forms into a layout that is both functional and "pretty" (and getting a nice bottle of champagne … | |
Re: don't use "01" and "02" as variable names. Your IDE may have a handy find & replace feature to let you quickly change it too, try hitting Ctrl + F. | |
Re: Very interesting, I wish I had one to play with so I could pass judgement on it too. | |
Basically I'm wondering what a sensible approach to learning Windows driver development would be. I have a logitech mouse that logitech decided to drop support for Vista/W7 on, and I'd like to write a driver for it but if that isn't possible it's fine and I would work with some … | |
Re: Fight Club--it can be interpreted in so many ways. Romper Stomper is also a classic you may want to check out sometime. | |
Re: Because of this right here this code won't compile: [quote][code] for (int i=0; i < numberofFights; i++) // coin toss int coinToss=rand()%100 + 1; [/code][/quote] Why don't you try extracting the problem logic into a function and call that 5 times? | |
Re: [url]http://www.cplusplus.com/reference/stl/vector/capacity/[/url] Does this help? | |
Re: If a file fails to open or an error bit gets set (like EOF) then you have to clear them before opening a new one. | |
Hey, I need to know how to add my program to the environment variable PATH without messing up my PATH in the process... Of course I plan to use Environment.GetEnvironmentVariables() and set... Anyone have some experience with this? | |
Re: I think the program would be easier to maintain if all of those options were composed of one or more functions being called. [code] switch(a) { case 1: DoTemperature(); } [/code] | |
Re: Here's my feeble attempt: [code] #define _WIN32_WINNT 0x0601 #include <windows.h> // when you use Windows.h it should be the first header // you include, because windows.h is really quite picky and lame about that sort // of thing. #include <iostream> void DoFullscreen(HANDLE hOutput) { BOOL result = SetConsoleDisplayMode(hOutput, CONSOLE_FULLSCREEN_MODE, NULL); … | |
Not to promote the use of alcohol, but it is in most places legal at least. Well I turned 21 a few months ago, so I'm wondering what everyone else drinks when relaxing on their off days? I like: Miller Lite Bud Light Other non-traditional (non-mass-produced) beers like dos equis, … | |
Re: there is probably a list of "project ideas" on daniweb if you search for them. | |
Re: I don't even like using facebook, I get online to see if I have any messages, if not I just close the window. I guess I just have no friends ;) | |
Re: [QUOTE=triumphost;1624876]I've been programming in C++ for quite some time now and I know all functions must return a value.. but can someone tell me WHY we return 0? I mean it compiles even when I don't put return 0.. and the program executes fine.. I can see in some functions … | |
Re: Everything he needs to know can be found by reading this page: [url]http://msdn.microsoft.com/en-us/library/dd743680(v=VS.85).aspx[/url] | |
I'm looking for a... general purpose uber high-level programming/scripting language, with a small learning curve. I'm thinking it would be suitable for automating tasks like simple file IO, http requests, searching/sorting, simulating user input, etc. So what language would you carry with you on your day-to-day mundane tasks? | |
Re: [QUOTE=L7Sqr;1619864]In many cases threads complicate matters before they solve them - especially if you are unfamiliar with threading in general. Why not have some discrete concept of time where you invoke each behavior at each step? Something like:[code]while (true) { has_input = check_for_input if (has_input) apply_input do_controlled_car do_random_cars }[/code]This way … | |
Re: [QUOTE=moshe12007;1619863]hello i wanna build software that i will be can speak with my friend with our cams i have used that dll : WebCam_Capture and that only show my camera . but i cant show my friend camera/ how can i do it?<<< thankss[/QUOTE] That is the most unimaginative thing … | |
Re: It can't find the implementation of "AdjustTokenPrivileges", maybe your prototype (declaration) doesn't match the header of the definition for the function? | |
I need to run some code written in Java from my personal website. How do I even begin? | |
Re: It's called an imagination, in my country those who don't have one shouldn't be writing a thesis. | |
Re: Something along the lines of: [code] string alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; string input; getline(cin,input); stringstream ss(input); unsigned int value = 0; ss >> value; if(value <= 0) { cerr << "Program encountered an unexpected error and will now exit. (Mwuahahaha!)" << endl; return 1; } cout << "value = " << … ![]() | |
Re: Meh didn't LulzSec say something about an FBI botnet? | |
I was just wondering what is the usual solution for synchronizing solutions between laptop/desktop (or maybe in another case between home/work) ? I was thinking an svn repo. would do the job, but where to find free hosting, or can I host it myself? | |
Re: It's not illegal if he's a student. If he is a student he can get '08 and '10 pro. free from [url]www.dreamspark.com[/url] I have VS2010 pro. :D | |
Re: [QUOTE=MareoRaft;1617981]1. In a for or while loop, if the condition is breached in the middle of the brackets {}, will the code immediately stop the loop, or wait until it gets to the bottom of the brackets {} ? 2. If a function is called in my code, does the … | |
Re: If you want cool debugging features you should use a different IDE like Visual Studio or Code::Blocks. | |
A while back there was a thread about what to do after retiring, I'm just gonna put this one up here: Sailing! As if we didn't know one day we would all become seamen. [url]http://www.amazon.com/Twenty-Small-Sailboats-Take-Anywhere/dp/0939837323/ref=sr_1_3?ie=UTF8&qid=1312183991&sr=8-3[/url] This is the introductory literature I'm looking at, what do you guys think? | |
Do freelance programmers get somewhat f'd on projects, mainly the fixed-price ones? I can understand paying $16.00 for a utility if it doesn't take two or three days to complete, oh and the requirements keep changing too! Bet employers don't tell their unlucky programmers that the requirements will change and … | |
Re: [url]http://en.wikipedia.org/wiki/Include_guard[/url] | |
Re: It's pretty sad when people need to do something like that because of how Apple operates. I'm really not a fan of Apple, I don't own any of their devices but I did some research on creating apps for the iPhone. From their website I could judge I wasn't going … | |
Re: [QUOTE=siaswar;1613554]Hi I'm software engineering student. I know python, c, c++ and c#. It's been two years I'm trying to learn programming but somehow I still a beginner. I just know the syntax of these languages. I love Linux and open-source. I tried to learn programming in Visual Studio but my … | |
Re: The person copied that class from here: [url]http://midnightprogrammer.net/post/ReadWrite-settings-to-INI-File-using-C.aspx[/url] anyway that's a Win32 function, here's the reference page: [url]http://msdn.microsoft.com/en-us/library/ms725501(VS.85).aspx[/url] |
The End.