- Strength to Increase Rep
- +16
- Strength to Decrease Rep
- -4
- Upvotes Received
- 267
- Posts with Upvotes
- 241
- Upvoting Members
- 117
- Downvotes Received
- 5
- Posts with Downvotes
- 5
- Downvoting Members
- 5
Re: Try using #include <iostream> instead of #include <iostream.h> iostream.h is a deprecated header, hence you receive the warning. | |
Re: [QUOTE=plang007;1489962]I did it. Alright, I got it to work with only one loop, but can you tell me why in my output tags2 is reading 18 data sets when it is only supposed read 10.[/QUOTE] Hint: 8 [B]+[/B] 10 = 18 | |
Re: When [ICODE]cin[/ICODE] encounters Ctrl-Z, [ICODE]cin.eof()[/ICODE] will return true. So e.g. [code] if(cin.eof()) { cout << "bye ..."; return 0; } [/code] | |
Re: >> I have debugged the syntax errors and now need help with the logic. I think I got >> one of the logic, so there *should* only be 2 left. So, if you've gotten the code to compile, it might be worth testing its functionality to see where it goes … | |
Re: [QUOTE]So what looks to be the problem?[/QUOTE] There might be many reasons, e.g. any application you have open may also abort the shutdown (since you are not forcing it), maybe your system does not support the power-off feature or your program lacks the shutdown privilege etc. To get a bit … | |
Re: >> AS U CAN SEE IN MY PROGRAMME ... Please don't SHOUT, thank you. As for the problem, I believe [icode]closegraph()[/icode] will do what you want. | |
Re: About the access violations, in [ICODE]Queue::dequeue()[/ICODE] and [ICODE]Queue::front()[/ICODE] you have to watch out for [ICODE]first[/ICODE] being a NULL pointer. Now you end up accessing the member variables through a NULL pointer, giving the access violations. Then .. [code] int num_Serv; cin >> num_Serv; // In C++ you cannot have variable … | |
Re: [QUOTE=integer*09;641895]im using the ios::nocreate in a fstream with vc++ 2008 express but its say its not a member of std::basic_ios...[/QUOTE] That flag is not available anymore, so simply don't try to use it. (The same goes for [ICODE]ios::noreplace[/ICODE]) | |
Re: You want to make sure that you are NOT trying to execute the DEBUG version of your executable on machines not having Visual Studio (2008) installed, i.e. build and use the RELEASE version on such machines. | |
Re: You have forgotten to return a value from the [ICODE]countElements()[/ICODE] function. Isn't the compiler saying anything about that? | |
Re: [B]>> The code snippet does not compile with Dev-C++ 4.9.9.2. The error messages look like this: >> [Linker error] undefined reference to 'CreatePen@12' >> [Linker error] undefined reference to 'SelectObject@8'[/B] See the code snippet comments, there it says; [LIST] [*] with Dev-C++ link libgdi32.a via Project>>Project Options>>Parameters>>Add Lib>>libgdi32.a [/LIST] | |
Re: [quote]Hope this is the right place to post[/quote] Well, maybe you actually have to turn to other forums and request for the basic OS starter code there. By following Ancient Dragon's links above, you probably find relevant places sooner than later. | |
Re: There's some evil inconsistency ... In function.h, you declare: void input(int* &pi, int& n, ifstream &fin); whereas, in function.cpp you have: void input(int* &pi,int& n, fstream &fin) i.e., `ifstream` vs. `fstream`. | |
Re: [QUOTE=sriz6teen;537567] where is the code for printf and scanf fucntions... [/QUOTE] One place you can start with is at the following address: [url]http://www.koders.com/c/fid4E0FA789459803C1E4369279B96E5C9B257941C8.aspx?s=printf#L7[/url] That one is the GNU C's implementation. I think you probably find your way from there on to scanf. And doing a google on the file name … | |
Re: I would start by verifying that your function calls succeed. I.e., does `ImageList_Create(...)` succeed? How about the `ImageList_AddIcon(...)` calls and so on and so forth. | |
Re: Testing upload on Firefox 18.0.1 on Windows 7 ... Hmm, after having pressed Files on the toolbar, I get to see *two* upload fields+buttons (pic #1). Now, after having selected a file to be uploaded, I get to see no less than *five* upload fields+buttons (pic #2). ![upload](/attachments/large/0/upload.GIF "upload") ![upload2](/attachments/large/0/upload2.GIF … | |
Re: Mostly guessing .. your filename DirectX8.cpp somewhat suggests that the code might actually be originally for DirectX 8 - if that's so, you should check whether CreateVertexBuffer()'s signature has changed in-between the 8 vs. 9 versions (i.e., has DirectX 9 CreateVertexBuffer() dropped a parameter?). | |
| Re: Maybe you get some ideas/clues from below, the important changes are that the file is read in one word at a time + the use of operator % >> i don't think std::string word is something we covered. Hmm, you already have there a std::string, namely the 'cloze'. [code] ... … |
Re: How about using the `LPARAM lp`? (MSDN: An *application-defined* value to be passed to the callback function.) | |
Re: I think you need to have a virtual destructor (currently you are observing undefined behaviour). | |
Re: I believe your problem(s) have already been pointed out, but .. > anyone know what is this error Microsoft has documented their compiler/linker error/warning codes, so, you can always look those up on MSDN, for example [Compiler Error C2780](http://msdn.microsoft.com/en-us/library/tk0k9b3w%28v=vs.110%29.aspx). | |
Re: If you are unhappy with the `SHBrowseForFolder()`, perhaps have a look at the [Show Shell common file dialog](http://code.msdn.microsoft.com/CppShellCommonFileDialog-17b20409) sample from MSDN. In your hook procedure, you need to use the parent of the `hdlg` in order to make `CommDlg_OpenSave_GetFolderPath()` work, i.e. `CommDlg_OpenSave_GetFolderPath(GetParent(hdlg), ...);` PS. I think attempting to cancel the … | |
Re: > what i missed from requiremnets Something you certainly missed, the requirements seem to state that: ... For a given positive integer K of not more than **1000000** *digits* ... Also, in general, you are not supposed to output *anything* which is not mentioned in the requirements (I'm referring to … | |
Re: You might find people eligible for the chocolate eclair at the [Visual C++ forum(s)](http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/threads?page=1) | |
Re: > Regarding VS2010, i'm getting the following error "Intellisense 'Unavailable for C++/CLI" when using "->" or "::" anyone knows how to correct this error? Microsoft did not provide the Intellisense feature for C++/CLI in VS 2010, in VS 2012 it is available though -- i.e., you may want to switch … | |
Re: According to the Wikipedia, the C++ is a [programming language](http://en.wikipedia.org/wiki/C%2B%2B) | |
Re: [Here you go.](http://www.daniweb.com/software-development/cpp/threads/78223/read-this-before-posting-a-question) | |
Re: Phew, I got it made! I posted the code [here](http://www.daniweb.com/software-development/cpp/threads/78223/read-this-before-posting-a-question), please study it carefully. By the way, this is a C++ forum - the **C forum** is right next door. |