2,839 Posted Topics

Member Avatar for jawadmardan

[CODE]#include <iostream> int main() { std::cout << "enter password: "; std::cin.get(); std::cout << "****"; }[/CODE] In other words: what have you tried so far?

Member Avatar for Nick Evan
-2
31
Member Avatar for happymadman

You're probably thinking that you're resizing array's here: [code] int room_numbers[0][0]; string room_titles[0]; string room_description[0]; [....] total_rooms = map_width*map_height; room_numbers[map_height][map_width]; room_titles[total_rooms]; room_description[total_rooms]; [/code] But you're not. If you want to use dynamically resizable arrays, you need to do it with [ICODE]new [/ICODE]and [ICODE]delete[/ICODE] or better yet: use std::maps or nested …

Member Avatar for happymadman
0
119
Member Avatar for BestJewSinceJC

[QUOTE=BestJewSinceJC;1076239]If I was using @$ as my flag pattern (to signal the end of the data) what would I do if @$ was seen in the data? I would just stuff another @$ right after it in the sender and in the receiver, if I saw two consecutive @$ I …

Member Avatar for BestJewSinceJC
0
613
Member Avatar for crunchie

It's a deleted thread in the C++ forum. You posted: [quote] Crap. It's spam. Reported. [/quote] Apparently someone disagreed with you and voted you down. I can still see the post (because I mod the soft-dev section), but when I try to upvote the post, I get a : [quote] …

Member Avatar for Nick Evan
0
118
Member Avatar for fahad moosa

Thread split from [URL="http://www.daniweb.com/forums/thread67837.html"]here[/URL]

Member Avatar for Mouche
-1
95
Member Avatar for Will Gresham

[QUOTE=B|enderZa;1056938]I just wanted to know: has this functionality been added so members can change their usernames themselves or do we need to ask an admin?[/QUOTE] You still need to ask the Admin (Happygeek). Just post a reply with your new username in it here and it'll get done.

Member Avatar for Lalarukh khalid
0
105
Member Avatar for joperalez

[QUOTE=jephthah;1078327]I know this is the C forum, but if it were the C++ forum, it would be a different forum. I also know this thread is 1-1/2 years old, but if it were a new thread, it would be a different thread.[/QUOTE] I know that you're not a mod, but …

Member Avatar for Nick Evan
0
125
Member Avatar for jephthah

There [I]is[/I] already a post about this somewhere here on Daniweb. It had something to do with the government or something.. But I can't seem to find the damn post anymore. I think it was Dave Sinkula's, but again: not sure.

Member Avatar for jephthah
2
139
Member Avatar for anonymous alias

[QUOTE=ardav;1075067] Some of use got killed by the 'downvoting script' recently. If the system was of any use, those downvotes would have been wiped by now.[/QUOTE] I can assure you that this is still a topic of debate "behind the scenes" and it [I]will[/I] be dealt with. It's just a …

Member Avatar for diafol
-2
414
Member Avatar for lllllIllIlllI

[QUOTE=Paul Thompson;1075497]Today is my 16th birthday, so i had a question for everyone. How do you celebrate your birthday? [/quote] Where I live, 16 is the age when you're legally allowed to drink alcohol. So when I turned 16, I went to a bar with friends and got wasted on …

Member Avatar for William Hemsworth
7
135
Member Avatar for saisai81

[QUOTE=dise652;1064347]The following is what i need this christmas [/QUOTE] You need a bunch of 404's and a spamsite? You're strange.

Member Avatar for saisai81
0
149
Member Avatar for dragan-amon

What have you done so far? [URL="http://www.daniweb.com/forums/announcement8-2.html"]No effort == no help[/URL]. What hardware do you use to convert serial -> parallel ? And the word you're looking for is "traffic light"

Member Avatar for Nick Evan
0
94
Member Avatar for jetpilot31

Try loading 'last known working configuration' in you boot menu. If that doesn't work you could try downloading puppy-linux-live-cd and boot that. Then download the file and store it somewhere. This may or may not work. Niek

Member Avatar for papadot
0
146
Member Avatar for vmanojnair

[B][quote=apurv][B]wat do u mean ???[/B][/quote][/B] He means that this topic was started 1,5 year ago. Ancient Dragon probably did miss this question: [quote=varsha gupta] plz help me sending a small project in c language for fulfilment of my 5 sem b tech course.... thanking u [/quote] Which was posted less …

Member Avatar for peter_budo
-4
675
Member Avatar for nedsnurb

Do do not want to put the implementation of your code inside you header file. This file is for declarations only. like this for example: file.h: [code] class foo { private: int n; public: foo(); ~foo(); void member_func(); }; [/code] file.cpp [code] #include <iostream> foo::foo(){ n = 0; } foo::~foo() …

Member Avatar for mrnutty
0
2K
Member Avatar for bhey
Member Avatar for neosonic

Why not try to find an sdk to go with vb? A google search on "ocr visual basic" brought me to [URL="http://www.simpleocr.com/"]this [/URL]site, which looks promising

Member Avatar for Nick Evan
0
95
Member Avatar for cliffaem28

[QUOTE=cliffaem28;1075690]im 3rdyr student comsci.[/QUOTE] How interesting. Did you read [URL="http://www.daniweb.com/forums/announcement8-2.html"]this[/URL]?

Member Avatar for Nick Evan
-3
52
Member Avatar for xandy

Visual basic 6.0 is not free to download. Try to buy it on ebay or something, but this thread is closed.

Member Avatar for Nick Evan
0
65
Member Avatar for Dave Sinkula

> Since I can't edit it back to what it should look like, if that is even possible, how might I go about fixing up the latest casualty to yet another post of mine? Just flag it as bad post and type your wishes in the text-box. You get 3 …

Member Avatar for lllllIllIlllI
0
322
Member Avatar for murugeshkumaran
Member Avatar for cliffaem28
0
53
Member Avatar for mrnutty

[QUOTE=VernonDozier;1071029]Here's an interesting rebuttal. [url]http://warp.povusers.org/OpenLetters/ResponseToTorvalds.html[/url][/QUOTE] From the article: "he seems to suffer from what I call the "C-hacker syndrome". Now [I]there's[/I] a suprise! Who would have thought that the writer of the linux-kernel is a low-level-c-hacker :)

Member Avatar for ddanbe
0
247
Member Avatar for Weetnie

- Did you include <fstream> ? - Where's the rest of the code ? - Why did you choose to change Ancient's code?

Member Avatar for jephthah
0
104
Member Avatar for DweyneAnne

[QUOTE=Ancient Dragon;1073662]read your other thread.[/QUOTE] [URL="http://www.daniweb.com/forums/thread245297.html"]which is here[/URL]

Member Avatar for Nick Evan
0
137
Member Avatar for harshchandra

>> can explain why you need the piece of code "gotoxy(1,6)" It's an ancient function from Turbo C++ and is used to put the cursor on a (x,y) position on the screen. Now please stop reviving these old threads. You can safely assume that if a thread is older then …

Member Avatar for Nick Evan
-2
614
Member Avatar for Hia

Why don't you do it [URL="http://www.daniweb.com/forums/announcement8-2.html"]yourself[/URL]?

Member Avatar for Nick Evan
-4
44
Member Avatar for amsmith90

Is this program to be made in C or C++? Because you posted in the C++ forum, but your code appears to be C

Member Avatar for Nick Evan
0
75
Member Avatar for n0mi

yes. [URL="http://www.daniweb.com/forums/announcement8-2.html"]next question[/URL] please.

Member Avatar for CodyOebel
-3
93
Member Avatar for endofworld201

Thread split from ancient thread, moved and given an appropriate title :) @OP: You need to [URL="http://www.daniweb.com/forums/announcement8-2.html"]read this[/URL]

Member Avatar for xavier666
-1
105
Member Avatar for masapo

[QUOTE=F@hd;1072359]In this style every one can understand easily!![/QUOTE] And with everyone, you probably mean: no-one. Learn about [URL="http://en.wikipedia.org/wiki/Indent_style"]indenting [/URL]code. Not to mention the use of clrscr(), void main(), conio, etc etc

Member Avatar for Narue
0
119
Member Avatar for xman13157

[QUOTE=Narue;1071518]Basics of Programming (by Narue): [list=1] [*]Find a problem to solve. [*]Understand the problem. [*]Figure out a solution to the problem. [*]Write code to implement the solution. [*]Debug the code you wrote. [*]GOTO 5 [/list][/QUOTE] Tsss, goto's are bad, bad I tell you!

Member Avatar for zobadof
-7
105
Member Avatar for Murderous Mouse

[QUOTE=Murderous Mouse;1069775] For example most applications that are run on windows have the same general feel about them, can you do this sort of thing in python? and is it relatively easy to do?[/QUOTE] Yes and Yes :) There's [URL="http://www.daniweb.com/forums/thread191210.html"]a great thread[/URL] in our [URL="http://www.daniweb.com/forums/forum114.html"]Python forum[/URL] to start with

Member Avatar for Murderous Mouse
0
117
Member Avatar for maverick405

[QUOTE=maverick405;1070945] Voila! Syntax-highlighting![/QUOTE] :) You don't have to put this in each and every one of your posts. Code-tags work fine without them. For people who don't understand: [URL="http://www.daniweb.com/forums/post1053539.html#post1053539"]read this other thread [/URL]maverick405 started..

Member Avatar for valtikz
0
157
Member Avatar for jst4pgm

This line is wrong: [icode]new1=create_node();[/icode] The function create_node() is not yet defined at this point in your code. The functions [icode]linked_list *create_node()[/icode] and [icode]ll_insert()[/icode] need to switch positions in your code. ps. Here's the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rulebook[/URL]. Read it.

Member Avatar for ssharish2005
-1
147
Member Avatar for Natique

And why are you using "fprintf" and char-arrays in C++ code? This is the root of all your evil. Use std::strings instead.

Member Avatar for Narue
0
1K
Member Avatar for zainhamza

You mean like: [code=cplusplus] #include <queue> #include <iostream> #include <string> int main() { std::queue<std::string> prio_q; std::string node = "value"; prio_q.push(node); return 0; }[/code] Learn about queue [URL="http://www.cplusplus.com/reference/stl/queue/"]here[/URL]

Member Avatar for Narue
0
220
Member Avatar for endurando

To all people who are searching for project topics: [URL="http://www.daniweb.com/forums/search.php"]USE THE SEARCHBOX[/URL]. Do not start [B]yet another [/B]thread about it and don't hijack someone else's thread. If you're too stupid to figure out how a site-search works, then you shouldn't be doing CS anyway. closed.

Member Avatar for Nick Evan
-8
484
Member Avatar for halluc1nati0n

change [icode]#include <string.h>[/icode] to : [icode]#include <string>[/icode] This should never have not compiled in G++, so that's strange..

Member Avatar for Nick Evan
0
261
Member Avatar for stevechow

>> For some reason, I get the wrong answer for the "days" What's "the wrong answer". What output do you expect, and what output are you getting? And stop bumping your thread, people will help you when they have the time. Bumping is considered rude and will ultimately result in …

Member Avatar for Nick Evan
0
109
Member Avatar for jephthah

And the reason why you posted this in a forum instead of a PM is ....? Be warned that you're pretty close to getting the last infraction that'll get you banned. Under "[URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]keep it pleasant[/URL]" : [quote] Do not troll by posting anything with malicious intent against another member [/quote] …

Member Avatar for jephthah
0
282
Member Avatar for matmeister

[QUOTE=zobadof;1070219]Thats ok! No worries, if you need some more help another time just PM me and I'll try get back to you A.S.A.P[/QUOTE] We don't do that here. From the rulebook: [quote] Do not post asking for an answer to be sent to you via email or PM. Problems and …

Member Avatar for zobadof
1
334
Member Avatar for Devi

[QUOTE=jimothy;1069980] When was the game made. If it is really new (in the last year or two) then you may need V3.1.[/QUOTE] If you had paid attention, you could have seen that this thread is 4 years old. :icon_wink:

Member Avatar for Nick Evan
0
365
Member Avatar for zobadof

How about [URL="http://lmgtfy.com/?q=allegro+c%2B%2B"]this?[/URL]

Member Avatar for zobadof
0
98
Member Avatar for asSer

Here are some [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules [/URL]for you to read. We only help people with homework if you [URL="http://www.daniweb.com/forums/announcement8-2.html"]show some effort[/URL]

Member Avatar for Nick Evan
0
84
Member Avatar for soccerjerseys

The almighty rulebook says: [quote] No affiliate links are permitted anywhere within DaniWeb (except within forum signatures). Self-promotion links are permitted within forum signatures provided they do not contradict with any other sitewide rules, such as inappropriate language or content.[/quote] So that pretty much ties our hands. :( Rules. Meh.

Member Avatar for crunchie
-7
163
Member Avatar for zobadof

[QUOTE=zobadof;1069621]sorry it still dont work[/QUOTE] Do you mind telling us [I]what[/I] 'doesn't work' ? Post new code.

Member Avatar for Nick Evan
0
2K
Member Avatar for zobadof

[QUOTE=SgtMe;1069206] Anyway, you could put: using namespace std; instead of putting: std::cout... all the time.[/QUOTE] No you don't. That's the whole idea with namespaces: you don't just 'include' [I]all[/I] the functions from it. What if you have a second namespace (called mystd for example) which also has a cout function …

Member Avatar for Nick Evan
-1
163
Member Avatar for Salem

Here's a nice [URL="http://www.daniweb.com/forums/member326903.html"]example [/URL]of someone who is only here for sig-links. People like this make no useful contribution whatsoever and should be banned IMO. I guess it's a good thing I'm not a mod here.

Member Avatar for Nick Evan
0
257
Member Avatar for Lida_pink

You need an extra variable. After you say: [icode]Text1.Text = Text2.Text[/icode] text1 and text2 will both have the same text (from text2), so this [icode]Text2.Text = Text1.Text[/icode] is useless. Use something like: [code] tmp = Text1.Text Text1.Text = Text2.Text Text2.Text = tmp [/code] [edit] Crossposted with scbwv

Member Avatar for vb5prgrmr
0
146
Member Avatar for kudresov

>>> ifstream myfile(levelMapFile.c_str());// !!! THIS DOESN'T WORK !!! This should work fine. Are you sure that "levelMapFile" has a value? Because if "m_iLevelNumber" is < 0 or > 3 "levelMapFile"will have no value at all.

Member Avatar for kudresov
0
976

The End.