Posts
 
Reputation
Joined
Last Seen
Ranked #47
Strength to Increase Rep
+16
Strength to Decrease Rep
-4
97% Quality Score
Upvotes Received
267
Posts with Upvotes
241
Upvoting Members
117
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
5
126 Commented Posts
7 Endorsements
Ranked #260
Ranked #55
~574.90K People Reached
Favorite Tags

1,174 Posted Topics

Member Avatar for mnoizinum

Try using #include <iostream> instead of #include <iostream.h> iostream.h is a deprecated header, hence you receive the warning.

Member Avatar for Dani
0
273
Member Avatar for mattyd
Member Avatar for plang007

[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

Member Avatar for toneewa
0
273
Member Avatar for fugnut

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]

Member Avatar for mohammad reza_1
0
7K
Member Avatar for Member 785072

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

Member Avatar for Matic_1
0
979
Member Avatar for OmniX

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

Member Avatar for Alex_34
0
2K
Member Avatar for prabhjitsw

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

Member Avatar for amit_26
0
1K
Member Avatar for skuller74

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 …

Member Avatar for Inderjeet_1
0
8K
Member Avatar for FireNet

[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])

Member Avatar for Swalih
5
12K
Member Avatar for Katangka

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.

Member Avatar for misi
1
10K
Member Avatar for makan007

You have forgotten to return a value from the [ICODE]countElements()[/ICODE] function. Isn't the compiler saying anything about that?

Member Avatar for TalhaMoazSarwar
0
887
Member Avatar for vegaseat

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

Member Avatar for petersvp
0
10K
Member Avatar for nyt1972

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

Member Avatar for imawesome511
0
4K
Member Avatar for Dang_1

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

Member Avatar for Dang_1
0
158
Member Avatar for policeachan

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

Member Avatar for Nishant_2
0
1K
Member Avatar for TheNewKid

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.

Member Avatar for mitrmkar
0
341
Member Avatar for riahc3

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 …

Member Avatar for riahc3
0
1K
Member Avatar for n.cramp

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

Member Avatar for n.cramp
0
309
Member Avatar for cnet1989

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

Member Avatar for mike_2000_17
-1
619
Member Avatar for Suzie999

How about using the `LPARAM lp`? (MSDN: An *application-defined* value to be passed to the callback function.)

Member Avatar for Suzie999
0
1K
Member Avatar for cdsr
Member Avatar for cdsr
0
299
Member Avatar for on93

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

Member Avatar for Banfa
-1
570
Member Avatar for BobFX

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 …

Member Avatar for BobFX
0
3K
Member Avatar for ndeniche
Member Avatar for MiCro0o

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

Member Avatar for mitrmkar
0
278
Member Avatar for Elixir42

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)

Member Avatar for Ketsuekiame
0
204
Member Avatar for Raisefamous

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

Member Avatar for tinstaafl
0
298
Member Avatar for Toni Rahman
Re: C++

According to the Wikipedia, the C++ is a [programming language](http://en.wikipedia.org/wiki/C%2B%2B)

Member Avatar for Lucaci Andrew
-3
135
Member Avatar for sripad44

[Here you go.](http://www.daniweb.com/software-development/cpp/threads/78223/read-this-before-posting-a-question)

Member Avatar for tux4life
-2
202
Member Avatar for muneeb ahmed

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.

Member Avatar for PrimePackster
-1
158
Member Avatar for riahc3

> At present there's no feature for marking a single post as being the solution, aside from voting and adding reputation to that post, of course. It's in the cards, just not implemented yet. ;) In that case, would it be possible to have a feature so that only the …

Member Avatar for diafol
0
220
Member Avatar for vinay.negi

Great, computer shop project sounds like something interesting. Here is a fully working starting point for you .. // // Computer shop program (skeleton). // // Should compile cleanly on modern compilers. // #include <iostream> int main() { // // The program begins, let's display a friendly title .. // …

Member Avatar for PrimePackster
-1
188
Member Avatar for Ancient Dragon

Thinking about my 92yo grandmother .. I'd add this one: ITITAN = I think I'll take a nap. .. and certainly .. W! = **WHAT**!? (She doesn't have a hearing aid yet, but definitely needs one)

Member Avatar for <M/>
0
126
Member Avatar for harishjoy

I'd like to recommend reading about File and Registry Virtualization in Vista/Windows 7 in general - here's one link you could start from: [User Account Control Data Redirection](http://blogs.windows.com/windows/archive/b/developers/archive/2009/08/04/user-account-control-data-redirection.aspx) Also, you might have a look at [perror()](http://www.cplusplus.com/reference/cstdio/perror/).

Member Avatar for harishjoy
0
288
Member Avatar for savinki

[QUOTE=williamhemswort;620795] But I dont see how its broken.. :icon_confused:[/QUOTE] Edward made a good point there, if you try [code]cout << CountDidget(INT_MAX) << '\n';[/code] What happens :?:

Member Avatar for Shahzad Ahmad
0
320
Member Avatar for triumphost

Just in case anyone finds the topic interesting enough, somewhat detailed discussion pertaining to Microsoft's implementation can be found at: [Mismatching scalar and vector new and delete](http://blogs.msdn.com/b/oldnewthing/archive/2004/02/03/66660.aspx) .. and [Answers to exercises - mismatching new/delete](http://blogs.msdn.com/b/oldnewthing/archive/2004/02/04/67384.aspx)

Member Avatar for mitrmkar
0
178
Member Avatar for triumphost
Member Avatar for slowlearner2010

I believe you are missing [ICODE]#include <windows.h>[/ICODE] So make sure you have [code] #include <windows.h> // <- first this #include <sql.h> // <- and then this [/code]

Member Avatar for sanjayogii
0
514
Member Avatar for anuragcoder

[QUOTE=nbaztec;] Edit: Allow me to change my earlier comment so no one else gets confused. It is Number of characters MINUS the Null.[/QUOTE] Sorry, but you are not right about it - please start believing in what people are saying. [QUOTE=ISO/IEC 9899:TC3] size_t strlen(const char *s); The strlen function computes …

Member Avatar for thunderox
0
11K
Member Avatar for sniper29

When you post code, please use code tags ... [url]http://www.daniweb.com/forums/announcement8-3.html[/url]

Member Avatar for YoDjinthehouse
0
591
Member Avatar for VernonDozier

I know this is solved, but a detail which should not go unnoticed, namely // Allocate ... b = new int[1000000]; // ... and delete delete [] b; //// instead of // delete b;

Member Avatar for mitrmkar
0
271
Member Avatar for 9tontruck

> However, a CURL error keeps coming out when I try to read from "https" protocol.... > The error msg is "Error from cURL: Unsupported protocol" You've probably downloaded a version without SSL support (you need SSL for the http**s** protocol).

Member Avatar for 9tontruck
0
3K
Member Avatar for Dani

> If you accidentally hover over, you have to wait for the fade effect to go way. This is bad, it means that one must watch out for the ads. Why not 'turn this thing around' and perhaps try to emphasize the ad area/frame itself instead?

Member Avatar for Sahil89
0
843
Member Avatar for MasterHacker110

A cast like `(LPWSTR)Buffer` only silences your compiler but does not correct the problem. I'd suggest reading some tutorials .. [The Complete Guide to C++ Strings, Part I - Win32 Character Encodings](http://www.codeproject.com/Articles/2995/The-Complete-Guide-to-C-Strings-Part-I-Win32-Chara) [The Complete Guide to C++ Strings, Part II - String Wrapper Classes](http://www.codeproject.com/Articles/3004/The-Complete-Guide-to-C-Strings-Part-II-String-Wra)

Member Avatar for mitrmkar
0
318
Member Avatar for Suzie999

> is there any way to know what actall files from the redist it needs, and is it ok and legal to just add them I would oppose trying to distribute individual DLLs (you cannot know the exact conditions under which a particular file should/should not be installed etc...). IMO, …

Member Avatar for Suzie999
0
186
Member Avatar for Labdabeta

This one might be a good candidate [Windows console tutorial / by Ben Ryves](http://benryves.com/tutorials/winconsole/1).

Member Avatar for Labdabeta
0
200
Member Avatar for Lucaci Andrew

You might have a look at [Wikipedia / Segmentation fault - common causes](http://en.wikipedia.org/wiki/Segmentation_fault#Common_causes).

Member Avatar for gusano79
0
712
Member Avatar for yoni0505

> I found the base address of the variable, but it changes every time I run Minesweeper. FYI, it's quite likely that your Minesweeper has been compiled with [Address space layout randomization](http://msdn.microsoft.com/en-us/library/bb384887.aspx) enabled, meaning that the address of the variable will continue to keep changing. To check whether this feature …

Member Avatar for BobS0327
0
5K
Member Avatar for Rage A Lot

> unresolved external symbol "public: __thiscall grid::grid(void)" This is saying that you have *no implementation* of the `grid` class' constructor.

Member Avatar for mitrmkar
0
667
Member Avatar for gfp91

The End.