2,839 Posted Topics

Member Avatar for lllllIllIlllI

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

Member Avatar for MidiMagic
0
177
Member Avatar for JIMBO37167

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

Member Avatar for thoughtcoder
0
113
Member Avatar for Dave Sinkula

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.

Member Avatar for jbennet
0
4K
Member Avatar for ItecKid

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

Member Avatar for ItecKid
0
2K
Member Avatar for kunal123

[QUOTE=kunal123;833830] any suggestions [/QUOTE] Post code, we're not clairvoyant.

Member Avatar for MrSpigot
0
164
Member Avatar for rahul8590

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

Member Avatar for Nick Evan
0
242
Member Avatar for tomtetlaw

Your missing a semicolon ( ; ) at the end of your class in maindef.h. So add one after the last } ( so: [icode]};[/icode] )

Member Avatar for tomtetlaw
0
155
Member Avatar for Danny_501

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

Member Avatar for Danny_501
0
99
Member Avatar for serkan sendur

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

Member Avatar for jbennet
0
2K
Member Avatar for Talguy

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.

Member Avatar for Talguy
0
116
Member Avatar for jspeakers
Member Avatar for jspeakers
0
83
Member Avatar for TriniBabe

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 …

Member Avatar for Nick Evan
0
75
Member Avatar for PRATS 1990

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

Member Avatar for Nick Evan
0
22
Member Avatar for 11silversurfer1

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 …

Member Avatar for Nick Evan
0
156
Member Avatar for Madbuda

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 …

Member Avatar for jbennet
0
415
Member Avatar for ARYT

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 …

Member Avatar for monkey_king
0
221
Member Avatar for sid78669
Member Avatar for sid78669
0
228
Member Avatar for serkan sendur

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

Member Avatar for serkan sendur
0
178
Member Avatar for sophia77

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

Member Avatar for sophia77
0
185
Member Avatar for serkan sendur

Perhaps you should post the link. It might help people find your video :)

Member Avatar for Ancient Dragon
1
668
Member Avatar for lllllIllIlllI

In addition to what Ancient already mentioned: Change [icode]#include "windows.h"[/icode] to [icode]#include <windows.h>[/icode]

Member Avatar for lllllIllIlllI
0
279
Member Avatar for darkagn

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.

Member Avatar for nav33n
0
171
Member Avatar for sbasaran

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

Member Avatar for sbasaran
0
298
Member Avatar for serkan sendur

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

Member Avatar for Rashakil Fol
0
192
Member Avatar for snap!

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

Member Avatar for Nick Evan
0
174
Member Avatar for serkan sendur

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

Member Avatar for Narue
0
309
Member Avatar for Comatose

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

Member Avatar for Ancient Dragon
0
1K
Member Avatar for happygeek
Member Avatar for jbennet
0
617
Member Avatar for serkan sendur

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

Member Avatar for Narue
0
1K
Member Avatar for serkan sendur

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

Member Avatar for MosaicFuneral
0
1K
Member Avatar for Bladtman242

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++?

Member Avatar for Bladtman242
0
1K
Member Avatar for sunderthomas

Or better yet: use std::strings and don't worry about dynamicly allocating memory at all.

Member Avatar for monkey_king
0
165
Member Avatar for mahela007

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

Member Avatar for Nick Evan
0
43
Member Avatar for koushal.vv

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 …

Member Avatar for John A
0
510
Member Avatar for RogueeZ

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

Member Avatar for Nick Evan
0
126
Member Avatar for Norbert X

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

Member Avatar for jlm699
0
128
Member Avatar for Rashakil Fol

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

Member Avatar for happygeek
0
169
Member Avatar for tuse

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

Member Avatar for peter_budo
0
139
Member Avatar for mohammad8065

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

Member Avatar for siddhant3s
0
262
Member Avatar for chriscross86

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

Member Avatar for Dewey1040
0
102
Member Avatar for obsy

Press 'F5' to compile and run the program. The console window will open automatically.

Member Avatar for obsy
0
102
Member Avatar for ghostworkers

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

Member Avatar for sneekula
0
137
Member Avatar for weasel7711

Why would you want to convert it to something of you can just manipulate it one byte at a time?

Member Avatar for nucleon
0
312
Member Avatar for halfnode

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.

Member Avatar for Nick Evan
0
116
Member Avatar for cproud21

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

Member Avatar for Clockowl
0
94
Member Avatar for lakhan.p

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

Member Avatar for lakhan.p
0
202
Member Avatar for dcawley

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 …

Member Avatar for Nick Evan
0
190
Member Avatar for Icebone1000

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

Member Avatar for Nick Evan
0
131
Member Avatar for sonicstage

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

Member Avatar for verruckt24
0
101
Member Avatar for hatemstar

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

Member Avatar for Comatose
0
108

The End.