2,839 Posted Topics
Re: [CODE]#include <iostream> int main() { std::cout << "enter password: "; std::cin.get(); std::cout << "****"; }[/CODE] In other words: what have you tried so far? | |
Re: 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 … | |
Re: [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 … | |
Re: 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] … | |
Re: Thread split from [URL="http://www.daniweb.com/forums/thread67837.html"]here[/URL] ![]() | |
Re: [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. | |
Re: [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 … | |
Re: 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. | |
Re: [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 … ![]() | |
Re: [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 … | |
Re: [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. | |
Re: 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" | |
Re: 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 | |
Re: [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 … | |
Re: 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() … | |
Re: 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 | |
Re: [QUOTE=cliffaem28;1075690]im 3rdyr student comsci.[/QUOTE] How interesting. Did you read [URL="http://www.daniweb.com/forums/announcement8-2.html"]this[/URL]? | |
Re: Visual basic 6.0 is not free to download. Try to buy it on ebay or something, but this thread is closed. | |
Re: > 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 … | |
Re: How about [URL="http://lmgtfy.com/?q=tasm+tutorial"]this[/URL]? | |
Re: [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 :) | |
Re: - Did you include <fstream> ? - Where's the rest of the code ? - Why did you choose to change Ancient's code? | |
Re: [QUOTE=Ancient Dragon;1073662]read your other thread.[/QUOTE] [URL="http://www.daniweb.com/forums/thread245297.html"]which is here[/URL] | |
Re: >> 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 … | |
Re: Why don't you do it [URL="http://www.daniweb.com/forums/announcement8-2.html"]yourself[/URL]? | |
Re: Is this program to be made in C or C++? Because you posted in the C++ forum, but your code appears to be C | |
Re: yes. [URL="http://www.daniweb.com/forums/announcement8-2.html"]next question[/URL] please. | |
Re: 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] | |
Re: [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 | |
Re: [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! | |
Re: [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 | |
Re: [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.. | |
Re: 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. | |
Re: And why are you using "fprintf" and char-arrays in C++ code? This is the root of all your evil. Use std::strings instead. | |
Re: 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] | |
Re: 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. | |
Re: change [icode]#include <string.h>[/icode] to : [icode]#include <string>[/icode] This should never have not compiled in G++, so that's strange.. | |
Re: >> 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 … | |
Re: 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] … | |
Re: [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 … | |
Re: [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: | |
Re: How about [URL="http://lmgtfy.com/?q=allegro+c%2B%2B"]this?[/URL] | |
Re: 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] | |
Re: 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. | |
Re: [QUOTE=zobadof;1069621]sorry it still dont work[/QUOTE] Do you mind telling us [I]what[/I] 'doesn't work' ? Post new code. | |
Re: [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 … | |
Re: 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. | |
Re: 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 | |
Re: >>> 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. |
The End.