560 Posted Topics

Member Avatar for Zssffssz

"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]

Member Avatar for Ancient Dragon
0
151
Member Avatar for pseudorandom21

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 …

Member Avatar for pseudorandom21
0
158
Member Avatar for kevinyu
Member Avatar for pseudorandom21
0
205
Member Avatar for falconmick

of course it does! Create a new project, expand the options until you find C#, select a Windows Forms Application and get to it.

Member Avatar for ddanbe
0
168
Member Avatar for hunter57369
Member Avatar for hunter57369
0
126
Member Avatar for pseudorandom21

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.

Member Avatar for Momerath
0
440
Member Avatar for valestrom

Yeah you should post in the C# forum because C++/CLI uses .NET People like "Moschops" don't even know what C++/CLI is.

Member Avatar for valestrom
0
205
Member Avatar for valestrom

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...

Member Avatar for pseudorandom21
0
673
Member Avatar for frogboy77
Member Avatar for C_Hickman

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 …

Member Avatar for pseudorandom21
0
301
Member Avatar for imraan1992
Member Avatar for valestrom

[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 …

Member Avatar for valestrom
0
122
Member Avatar for pseudorandom21

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 …

Member Avatar for Momerath
0
217
Member Avatar for Onlineshade
Member Avatar for Narue
0
137
Member Avatar for sergent

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 …

Member Avatar for Paaat
-5
2K
Member Avatar for pseudorandom21

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...

Member Avatar for ddanbe
0
90
Member Avatar for zachattack05

[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 …

Member Avatar for pritaeas
0
114
Member Avatar for sadsdw

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.

Member Avatar for sadsdw
0
108
Member Avatar for happygeek
Member Avatar for pseudorandom21

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 …

Member Avatar for Narue
0
80
Member Avatar for royng

Fight Club--it can be interpreted in so many ways. Romper Stomper is also a classic you may want to check out sometime.

Member Avatar for Netcode
0
389
Member Avatar for SecretDavidMAN

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?

Member Avatar for Raimucka
0
104
Member Avatar for harryhaaren
Member Avatar for harryhaaren
0
655
Member Avatar for seamus400

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.

Member Avatar for seamus400
0
4K
Member Avatar for pseudorandom21

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?

Member Avatar for pseudorandom21
0
131
Member Avatar for PratikM

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]

Member Avatar for pseudorandom21
0
401
Member Avatar for PratikM

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); …

Member Avatar for pseudorandom21
0
584
Member Avatar for pseudorandom21

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, …

Member Avatar for Niles64
0
331
Member Avatar for PratikM

there is probably a list of "project ideas" on daniweb if you search for them.

Member Avatar for pseudorandom21
0
115
Member Avatar for MooGeek

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 ;)

Member Avatar for Netcode
4
502
Member Avatar for triumphost

[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 …

Member Avatar for SnowFall
0
273
Member Avatar for jjyuyujj

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]

Member Avatar for pseudorandom21
0
284
Member Avatar for pseudorandom21

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?

Member Avatar for TheNNS
0
222
Member Avatar for raj.sokkalingam

[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 …

Member Avatar for sergent
0
156
Member Avatar for moshe12007

[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 …

Member Avatar for Momerath
0
104
Member Avatar for v1nc3nts

It can't find the implementation of "AdjustTokenPrivileges", maybe your prototype (declaration) doesn't match the header of the definition for the function?

Member Avatar for Ketsuekiame
0
327
Member Avatar for pseudorandom21

I need to run some code written in Java from my personal website. How do I even begin?

Member Avatar for NormR1
0
125
Member Avatar for jhamela

It's called an imagination, in my country those who don't have one shouldn't be writing a thesis.

Member Avatar for MooGeek
-3
156
Member Avatar for mrnutty

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 = " << …

Member Avatar for iamthwee
1
151
Member Avatar for happygeek
Member Avatar for pseudorandom21

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?

Member Avatar for pseudorandom21
0
204
Member Avatar for fashxfreak

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

Member Avatar for Ancient Dragon
0
108
Member Avatar for MareoRaft

[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 …

Member Avatar for svilla
0
98
Member Avatar for hqt

If you want cool debugging features you should use a different IDE like Visual Studio or Code::Blocks.

Member Avatar for pseudorandom21
0
145
Member Avatar for pseudorandom21

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?

Member Avatar for pseudorandom21
0
114
Member Avatar for pseudorandom21

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 …

Member Avatar for JustCC
0
158
Member Avatar for mrnobody
Member Avatar for happygeek

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 …

Member Avatar for swebsitedesign
1
442
Member Avatar for siaswar

[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 …

Member Avatar for katmai539
0
223
Member Avatar for Panathinaikos22

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]

Member Avatar for pseudorandom21
0
162

The End.