2,839 Posted Topics

Member Avatar for ohhmygod

Hammerhead is half right. The explanation is correct, the code is not: [icode]while(angle0<180 || angle0>180 || angle==180)[/icode] This code will always be true. What you are saying is: if Angle is smaller then, equal to or bigger then 180 { do something } What you mean is: [icode]while(angle0<=-180 || angle0>=180 …

Member Avatar for ohhmygod
0
92
Member Avatar for jesseb07

[QUOTE=jesseb07;589811] (is there an md5 function available for c++?) . [/quote] Not a standard one, but md5hashing has a nice [URL="http://www.md5hashing.com/c++/"]wrapper [/URL]for you.

Member Avatar for jesseb07
0
106
Member Avatar for noey699

The easiest way is system();: [icode]system("c:\\windows\\system32\\sol.exe");[/icode] Notice the escape backslash for the path backslash. (so: double backslahses)

Member Avatar for Salem
0
176
Member Avatar for Jboy05

[QUOTE=Narue;589835]I have to conclude that you're lazy and want us to do your homework for you.[/QUOTE] I agree. I remember [URL="http://www.daniweb.com/forums/post533695.html#post533695"]this thread[/URL] where you tell us that we move very slow with helping you cheat your class. I accidentally gave you positive rep for it... I forgot to click the …

Member Avatar for Nick Evan
0
229
Member Avatar for joshmo

[URL="http://www.daniweb.com/forums/thread55131.html"]Here's[/URL] a nice thread with a lot of links in it. A warning: Creating an OS is never simple. You will need a lot of programming skills in to attempt to write your own OS.

Member Avatar for hammerhead
0
66
Member Avatar for Beagle

You're not checking if the file was opened successfully, so my guess is that something goes wrong with that.

Member Avatar for Beagle
0
118
Member Avatar for Black Magic

If you want to keep using a switch, you could make a menu: [code] What do you want to do: 1. Multiply 2. .... ..... 8. Sin 9. Tan input:[/code] and then switch on the inputted number. In your current program you should handle invalid input. If some enters a …

Member Avatar for Black Magic
0
142
Member Avatar for AshishMehra

You would need the SDK from the manufacturer of the USB-tuner. But somehow I don't think they'll give them to you. But you can always try!

Member Avatar for AshishMehra
0
90
Member Avatar for zandiago

I've had similair problems, but upgrading to IE7 fixed the problem. What browser are you using?

Member Avatar for Dani
0
456
Member Avatar for Mark515

put your code in a loop: [code] loop while tries <= 3 //your code if tries == 2 show: Last change! end loop [/code] [edit] too slow for iamthwee

Member Avatar for Sky Diploma
0
91
Member Avatar for doddware

Very strange. I use the 'conversion thing' quite often and never had problems with it. (from 6.0 to 2005 and from 6.0 to 2008) Could you post a few errors?

Member Avatar for doddware
0
134
Member Avatar for nurulshidanoni

[QUOTE=Traicey;587873]And also quoting it wont help anyone and as you can see the guy just joined the site so there is no way that he can know everything[/QUOTE] On the quoting part: agreed. On the new guy excuse: everyone who posts anything here, has to do it in an inputfield. …

Member Avatar for localp
0
152
Member Avatar for anifeelings

you have char arrays and strings mixed up. If your teacher is ok with it, I would use only strings, it'll make your live alot easier In the implementation of the contructor, just assign the values given to the contructor to the two private variables (m_name and m_age) the function …

Member Avatar for Nick Evan
0
218
Member Avatar for abcd_nima

It's fairly simple to write: [code=c] int a=5; int b=3; a = a ^ b; // a will contain a xor b = 6 b = a ^ b; // b will receive 6 xor 3 = 5 a = a ^ b; // a will become 6 xor 5 …

Member Avatar for hammerhead
0
162
Member Avatar for Duanea2k
Member Avatar for Black Magic

[QUOTE=Narue;587125] Yes, you should use srand if you want the sequence to start with a different number each time. [/QUOTE] Of course Narue is right, but with one remark: Only if you seed srand() with a different number each time, else you'll still get the same number sequence every time …

Member Avatar for Narue
0
138
Member Avatar for Nemoticchigga

[URL="http://www.geocities.com/samuel_super_camel/MultiThreadingTutorial.htm"]tutorial[/URL] If you enter "CreateThread tutorial" in [URL="http://www.google.nl/search?hl=nl&q=CreateThread+tutorial&btnG=Zoeken&meta="]google[/URL], you get plenty results.

Member Avatar for Nemoticchigga
0
106
Member Avatar for Black Magic

You're declaring the function like this: [icode]unsigned short FindArea();[/icode] The function expects 0 parameters and returns an unsigned short. But when you call it : [icode]area = FindArea(width, lenght);[/icode] You give two parameters to the function (width and length), so that's why the compiler is complaining. - To solve the …

Member Avatar for Black Magic
0
251
Member Avatar for Andy130
Member Avatar for kylethedarkn

I had something like that too. Did you try to -right click arrange icons by..... -unselect lock web items on desktop? I think it had something to do with that, but I might be wrong..

Member Avatar for jbennet
0
319
Member Avatar for anifeelings

Do you have a question about this? [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]This isn't a homeworkservice,[/URL] you'll have to make an effort before you get some help. So show what code you have.

Member Avatar for Nick Evan
0
67
Member Avatar for anifeelings

Have you tried anything yet? Post your code. If you're not interested in learning anything, you could also steal your code from [URL="http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_bst1.aspx"]here [/URL]... You'll get an A for your assignment for sure :yawn:

Member Avatar for Nick Evan
0
100
Member Avatar for Farisnet

Ok... [code=c] int x =3; int y= 2; cout << "x: " << x << " y: " << y << endl; y=x; cout << "x: " << x << " y: " << y << endl; x=10; cout << "x: " << x << " y: " << y …

Member Avatar for dougy83
0
20K
Member Avatar for kylethedarkn
Member Avatar for Jennifer84

[quote]I have opened start/run/cmd and typed in under c:\ VCExpress /resetskippkgs but it says it cant find it.[/quote] You should type this in the directory where your VSExpress is installed. (just search for the file in your program files directory) . Do you know DOS commands (dir, cd, etc)? If …

Member Avatar for Colstel
0
625
Member Avatar for fredmac

What program? Repost your code and this time put it in [noparse][code=c]//your code here[/code][/noparse] tags. [edit] Ahh. I see you always post 'do stuff for me' threads and never reply to any of the questions asked. Wasted another 5 minutes of my life :(

Member Avatar for jephthah
-1
86
Member Avatar for angleyz14

You need to know about - 2-dimensional arrays - random number generating - user input What do you have so far?

Member Avatar for vmanes
0
80
Member Avatar for rrnaveenbabu

[QUOTE=brillox;586215] tell the thruth... YOU DO NOT KNOW THE AMNSWER[/QUOTE] He never said he DID. HE gave you good advice to talk to the manufacturer of the smartcard, because they know best. [QUOTE=brillox;586215]and I am being polite here.... [/quote] oh yeah? --> [QUOTE=brillox;586215]give me your personal email address and I'llt …

Member Avatar for Salem
0
161
Member Avatar for username99

What does that have to do with c++? I agree with vmanes that the link you posted raises an eyebrow

Member Avatar for username99
0
160
Member Avatar for only me

@sky diploma: He's not going to do that. See [URL="http://www.daniweb.com/forums/thread119238.html"]this [/URL]thread, also called "please help me" @Only me: This still isn't a homework service. Read my [URL="http://www.daniweb.com/forums/thread119238.html"]reply [/URL]in your other thread. Here's some code for you: [code=c] if (ShowSomeCode() == true && code != stolen) { GetSomeHelp = true; } …

Member Avatar for Salem
0
101
Member Avatar for baker4

[QUOTE=baker4;584540] I have been trying to solve No value given for one or more required parameters, but have not been able to solve it. Could anyone please give me a suggestion. Error happens on da.Fill(ds, "RoyalYachtingAssociation2")[/quote] So what is 'ds' and what value does it have?

Member Avatar for Nick Evan
0
114
Member Avatar for picass0

getline is explained quite well [URL="http://www.cplusplus.com/reference/iostream/istream/getline.html"]here[/URL] example : [icode]yourfilestream.getline(CharBufferForOutput, TheSizeOfTheCharBuffer, ':');[/icode]

Member Avatar for Nick Evan
0
92
Member Avatar for Heli

you could use [URL="http://www.cplusplus.com/reference/iostream/istream/getline.html"]getline[/URL]() instead of the >> operator. Getline can take in a delimiter, so just use the comma

Member Avatar for Nick Evan
0
158
Member Avatar for rukshenaa

So you did it in [URL="http://www.daniweb.com/forums/thread117153.html"]C++ [/URL]AND VB.net ?? Very interesting. Please show some code to prove you've made an effort. Niek

Member Avatar for rukshenaa
0
119
Member Avatar for stan.joe1

I guess it will always show 0 or 1, because you can only enter 1 input. If you want to get more inputs, you should put this: [icode]cin >> temp;[/icode] inside your while loop.

Member Avatar for dmanw100
0
328
Member Avatar for TPclan

In addition to post above: 'delete' does exist as a command in C++, but is used to deallocate memory that you reserved using the 'new' command. In your case you don't need either, but I thought it would be a good idea to explain why the program compiled in the …

Member Avatar for Arne Kristoffer
0
127
Member Avatar for snakeman

>but could be wrong about that. Yes you are . Apache also runs on Windows. Here's a [URL="http://www.apache.org/dist/httpd/binaries/win32/"]downloadlink[/URL] It actually gives me a little pleasure that after two years I finally know something that you didn't ;)

Member Avatar for Ancient Dragon
0
149
Member Avatar for zaza_thegreat

First of all: a thread called helpzz plzzz fast cuz im NOOB, is not really a great way to explain your problem. Clear titles make people help you faster. Next: Please use [URL="http://www.daniweb.com/forums/thread93280.html"]code [/URL]tags. It makes your code easier to read Please [URL="http://www.daniweb.com/forums/thread78223.html"]click[/URL] Then for your program. There are quite …

Member Avatar for Nick Evan
0
217
Member Avatar for ITJohn89

Visual studio is just a tool you could use to program C++. It won't learn you C++. I think taking class is the best way to go. Reading a GOOD book is the second option. And you can always look for online tutorials, but the other 2 option would be …

Member Avatar for mitrmkar
0
117
Member Avatar for Sky Diploma

In addition: You never close your new string with a '\0' character. This will result in a lot of garbage output, and maybe even a crash.

Member Avatar for Sky Diploma
0
164
Member Avatar for SonxQ7

IF you're programming in C++, post your questions in the C++ forum. I'll ask a mod to move this thread. [edit] What AD said...

Member Avatar for Ancient Dragon
0
88
Member Avatar for melystar

if you want the power of something, you need the pow() function. You can't do y^2, you need to write it like [icode]pow(y,2);[/icode]

Member Avatar for Nick Evan
0
183
Member Avatar for binnaman

"my output is screwed" is not a great description of your problem. Please explain what output you are expecting, and what output you get. Also explain what the program is suppose to do. Niek

Member Avatar for Nick Evan
0
146
Member Avatar for knight fyre

If you want proper advice, you should post your code, not your executable. One tip is: [b] validate user input.[/b] See attachment.

Member Avatar for jephthah
0
122
Member Avatar for steven woodman
Member Avatar for jbennet
0
238
Member Avatar for rje7

If using windows: [URL="http://www.daniweb.com/code/snippet72.html"]Click[/URL]

Member Avatar for rje7
0
349
Member Avatar for Black Magic

If you don't know the number of students, perhaps you could use a vector. Just push every student in the vector. But I thought that the example program was meant for only one student. But it's always a good idea to set yourself some challenges!

Member Avatar for chiwawa10
0
113
Member Avatar for nelledawg

Getgrader() is defined like this: [icode]double getgrades(double s[], int x);[/icode] But when you call it, you give double s; as a parameter. S is a single double, but your function is expecting a pointer to an array of doubles. Why would you want to send an array anyway? You don't …

Member Avatar for nelledawg
0
268
Member Avatar for WilliamBaxter

Why did you open another thread with the[URL="http://www.daniweb.com/forums/post581246.html#post581246"] same question[/URL] as before? [edit] Only this time you stole the code from [URL="http://www.daniweb.com/forums/thread118402.html"]someone else[/URL]

Member Avatar for Ancient Dragon
-1
130
Member Avatar for Lensva

[quote]does that mean that it'll hold up to a maximum of 11 characters[/quote] Yes and no. It will hold up to 11 chars if you want to. But if you want to use it as a string (word), it will hold 10 characters and an end-of-string character = '\0'. [quote]or …

Member Avatar for Ancient Dragon
0
95

The End.