2,839 Posted Topics
Re: I think this might be a DB-issue. I posted something today and some random other post was posted (I didn't write what was posted), so I had to edit the post again to make it my original message. Also Daniweb was incredibly slow for the last few hours... | |
Re: [QUOTE=ithelp;832996][code=c] if((x<49)||(x>=0)) { printf("You fail\n";) } [/code] [/QUOTE] Actually it should be [icode]if((x<49) [COLOR="red"]&&[/COLOR] (x>=0))[/icode]. What you wrote will always be true. :) Or if you where trying to make a statement, I would do it more efficient: [code=c++] while (1) printf("You fail\n"); [/code] | |
Re: They are 5 something euro here, which is about 7 dollar. You get 19 cigarettes for that money. So I've been cutting back from 1-2 packs to 3-4 cigarettes a day. I agree with AD, it's damn hard to quit, I've been smoking 10+ years, but eventually I'll succeed. | |
Re: If you want to read through all your maps in your map (...), you need two different iterators. One for a map <string, int> and one for a map<string, map<string, int> >. So something like: [code=cplusplus] map <string, map <string, int> > foo; // fill map map <string, map <string, … | |
Re: [QUOTE=kunal123;833830] any suggestions [/QUOTE] Post code, we're not clairvoyant. | |
Re: [QUOTE=rahul8590;833822] besides there isnt ne book that specifically teaches you for the GCC compiler , its all trial n error . [/QUOTE] I disagree, all [B]good[/B] books teach iso-standard C. Gcc sticks to this standard, so you have a lot of books to choose from. Turbo has made up his … | |
Re: Your missing a semicolon ( ; ) at the end of your class in maindef.h. So add one after the last } ( so: [icode]};[/icode] ) | |
Re: You do not have to flush cout. Can you show us some more code, because this should work fine as far as I can see. [edit] I tested it just to be sure and it works fine for me: [code=cplusplus] template < typename T > void printArray(T * const array, … | |
Re: [QUOTE=jbennet;832789] You really should use Visual Studio (2005 or avbove , must be professional edition) [/QUOTE] Actually, the standard version (not express) also comes with mobile device support, so that might save a few bucks. [quote=serkan sendur] i have a symbol ppt 8800 device, and i read its manual, it … | |
Re: Or you could use [URL="http://www.cplusplus.com/reference/stl/bitset/"]the [icode]std::bitset[/icode] class.[/URL] When you have set all the bits in your bitset, just use the [URL="http://www.cplusplus.com/reference/stl/bitset/to_ulong.html"]to_ulong()[/URL] member to convert it to a long. | |
Re: You could start [URL="http://www.sonicspot.com/guide/wavefiles.html"]here[/URL] | |
Re: This is no way to ask a question. What the hell are we supposed to do with "i think d error is in inputtin d values into d linked list" ? Post your code using [URL="http://www.daniweb.com/forums/announcement8-3.html"]code tags[/URL] (don't just upload some files) and then tell us 1. what the code … | |
Re: Ezzaral gave you negative reputation for [URL="http://www.daniweb.com/forums/post830823.html#post830823"]this [/URL]post. Ezzaral's rep-power is 19 so if he gives you negative rep then your own rep-point are reduced with [tex]yourreppower-Ezzarelreppower/2[/tex] (with ceil-rounding). You start with 10 points, so : 10-19/2 = 1 | |
Re: First of all: Why? It's a very old fileformat and the soundquality is horrible... One way you could try is with the[URL="http://www.skale.org/forums/viewforum.php?f=25&sid=22920fe3e40f63d35f208669b25435b9"] Skale-SDK[/URL]. Skale is actually sort of Fasttracker III which supports s3m-format, so it might be helpful. [QUOTE=11silversurfer1;831258] but can you please not make stupid comments if you aren't … | |
Re: Here's a tip : [code=sql] delete from posts where user = 'ahihihi...' [/code] It would make the forum a better place to be. I know flaming etc is against the rules, but I'm willing to take the infraction for this. I'm just really sick of these completely useless (and damn … | |
Re: And in addition to what Narue already said, I would like to add that you probably don't want do declare your file-streams in a global-scope. In this case (and in most cases) there is absolutely no reason to do this, so just declare (and open) them in main() (in your … | |
Re: C-functions will compile just fine in vs2008, so just lose the [icode]extern "c"[/icode] | |
Re: [QUOTE=serkan sendur;827850] anyway it took me 9 years to finish bacholars degree(in turkey education is free).[/QUOTE] I don't know why you're so proud of this? Of course education isn't 'free' in Turkey, it being paid from the taxes collected by the government, so the people in your country are actually … | |
Re: [QUOTE=sophia77;824479]hey i really have no idea where to start! oh thank you for replying.[/QUOTE] you could start by telling us in what language this program is to be written :) | |
Re: Perhaps you should post the link. It might help people find your video :) | |
Re: In addition to what Ancient already mentioned: Change [icode]#include "windows.h"[/icode] to [icode]#include <windows.h>[/icode] | |
Re: You're talking about [URL="http://www.daniweb.com/forums/thread180975.html"]this [/URL]thread. If I turn off ad-block and enable intellitxt in my user-control-panel, I don't see the error you mentioned, but I see a few other strange things. (see attach) And they are indeed scrolling and flashing and other annoying things... I'm using FF3 btw. | |
Re: You're showing us exactly where the leaks are. You're using the [icode]new[/icode] operator in a wrong way. You say: [icode]new char[1000][/icode] which allocates room for a 1000 chars. But you never assign the pointer to anything, and thus you can't delete the memory you've allocated which results in a memory-leak. … | |
Re: [QUOTE=serkan sendur;824333]we need to have a seperate forum for mobile application development.[/QUOTE] The obvious question here is: [URL="http://www.google.nl/search?hl=nl&q=site%3Ahttp%3A%2F%2Fwww.daniweb.com%2F+%22new+forum%22+%22feedback%22&btnG=Zoeken&meta="]Why[/URL]? | |
Re: [QUOTE=Ancient Dragon;823429] And what are you doing surfing the net while you are supposed to be working ??? [/QUOTE] I think people call it: "[URL="http://imgs.xkcd.com/comics/compiling.png"]Compiler Time[/URL]" ;) | |
Re: I don't know what my first post was here, but [URL="http://daniweb.com/forums/post270166.html#post270166"]this post[/URL] apperantly is the first one I got rep for* and it's from the same month I joined, so close enough :) *You can still see your rep-history in the user-cp. Post history is limited | |
Re: [QUOTE=William Hemsworth;819890]Purely because [B]serkan sendur[/B] revived the thread [/QUOTE] His constant drooling over Narue is getting quite awkward to say the least... | |
| |
Re: You're talking about c++? The answer is yes: break will only break out of the 'most nested loop' . For example: [code=cplusplus] int main() { for (int i = 0; i < 10; i++){ for (int j = 0; j < 10; j++){ if (j == 5) break; std::cout << … | |
Re: [QUOTE=serkan sendur;817987]yeah, that is true. cheating makes you more clever.[/QUOTE] I disagree. Cheating makes you a cheater and in addition to that: it's makes you a lazy b*stard. How does this cheating thing works when you have an actual job? Tell me, I'm curious.. | |
Re: Above code works fine in windows XP, so perhaps some sort of vista thing? The more important question is: [i]Why[/i] would you want to execute a bat file? What's in it that you can't do with c++? | |
Re: Or better yet: use std::strings and don't worry about dynamicly allocating memory at all. | |
Re: Here's [URL="http://www.daniweb.com/forums/thread128350.html"]an excellent thread[/URL] to keep you busy for the next two years or so ;) | |
Re: you could try the parsedate() member of COleDateTime: [code=cplusplus] if (!COleDateTime::ParseDateTime("12/11/2008") { // That's not a date bucko! } [/code] I don't have MFC anymore, so I can't test it, but I'm sure it works somewhat like that. If this doesn't work you should have a look at the wxDateTime … | |
Re: [QUOTE=Ancient Dragon;815872]never heard of ragnarok, but I played Diablo LOD for many years until I installed Vista -- won't play on Vista.[/QUOTE] I had the same problem with Vista (and my quadcore) and a few games I used to play. I installed vmWare Workstation and installed XP and windows 98/dos … | |
Re: [QUOTE=Norbert X;813665] [code=python] elif"dutch"in language: def function(): print"Hello, hoe zijn u?" [/code] [/QUOTE] "Hello, hoe zijn u?" ?! Looks like someone used a babelfish translater :) Change it to : "Hallo, hoe gaat het met u?" (trust me, I'm Dutch) | |
Re: [QUOTE=verruckt24;810789]Yes, ddanbe comes up with a very good solution here. Yes one might think about a comment in either a good or bad way but there is a certain degree to the goodness of the comment and to the likeness of the rep giver.[/QUOTE] I agree that it's a nice … | |
Re: [QUOTE=Narue;806082] You must get the approval of all active members who posted to the nominated forum in the last month. [/QUOTE] That would be less then 10 people in the case of the Ruby-forum, so watch what you're saying or the Ruby-forum is out and the RIA is in :) | |
Re: Ok, so what have you tried so far? We don't give complete homework solutions here. Hint, you're going to need '[URL="http://www.google.nl/search?hl=nl&q=nested+loops+c%2B%2B&btnG=Google+zoeken&meta="]nested loops[/URL]' | |
Re: [QUOTE=Dewey1040;808588]idk if its the same for everybody, but my teacher takes points off unless we use i, j, or k for loops.[/QUOTE] For real? I agree that 'i,j,k' [i]are[/i] quite commonly used as vars for a loop, but I can think of countless examples where i,j or k would be … | |
Re: Press 'F5' to compile and run the program. The console window will open automatically. | |
Re: [QUOTE=ghostworkers;795805] Is there a grandfather of them all,[/QUOTE] Yes there is. He's called [URL="http://www.daniweb.com/forums/member46588.html"]Ancient Dragon[/URL] and is moderator right here at Daniweb :) | |
Re: Why would you want to convert it to something of you can just manipulate it one byte at a time? | |
Re: I think you misunderstood the use of the replace function. I could give you an explanation, but the C++ reference [URL="http://www.cplusplus.com/reference/string/string/replace.html"]does it better[/URL] then I could :) Look closely at the examples on the bottom of the page. | |
Re: This program shouldn't run at all. Check this: [code] int menu; [...] while (menu != 9) [/code] You're using the variable 'menu' without it being initialized. That could (and probably will) crash your program. Change the initialization to give it a initial value: [icode]int menu=0;[/icode] Another thing: the word 'or' … | |
Re: Use forward slashes instead of backward in your file-name. (so c:/program files/python ... etc) A backslash is used as an escape-character to print out tabs,newlines, etc. Read [URL="http://www.codecodex.com/wiki/index.php?title=Escape_sequences#Python"]this [/URL]for more info | |
Re: Ancient Dragon is right, but his solution does not answer the problem. If you XOR 1 char (= 1byte) with the generator (=4bytes) you're actually just x-orring every byte with the last byte from the generator (in this case 0x03) and that's not what you want. What you want is … | |
Re: I've never used it, but it says [URL="http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/vertex.html"]here[/URL] that the params are coordinates. So if you use values that will be rounded to coordinates (in your case to 0 or 1), that should indeed print 1 pixel on coord(1,1). So just use a coordinate (in pixels) where the height (y) … | |
Re: One thing that caught my eye is line 26: [icode] mma(Nums, inSize);[/icode] You're calling the function 'mma' with two arguments, but in your function definition you say: [icode]double mma(double Nums[], int inSize, double max[], double min[]);[/icode] which are 4 arguments. Also you say that the function should return a 'double', … | |
Re: It also tells you in what file and on what line the error is. Post those lines of code instead of just uploading your entire project for someone else to figure out |
The End.