2,839 Posted Topics
Re: 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 … | |
Re: [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. | |
Re: The easiest way is system();: [icode]system("c:\\windows\\system32\\sol.exe");[/icode] Notice the escape backslash for the path backslash. (so: double backslahses) | |
Re: [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 … | |
Re: [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. | |
Re: You're not checking if the file was opened successfully, so my guess is that something goes wrong with that. | |
Re: 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 … | |
Re: 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! | |
Re: I've had similair problems, but upgrading to IE7 fixed the problem. What browser are you using? | |
Re: 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 | |
Re: 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? | |
Re: [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. … | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: [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. | |
Re: 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 … | |
Re: You need to [icode]#include <iostream>[/icode] in the files where you use "ostream" | |
Re: 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.. | |
Re: 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. | |
Re: 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: | |
Re: 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 … | |
| |
Re: [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 … | |
Re: 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 :( | |
Re: You need to know about - 2-dimensional arrays - random number generating - user input What do you have so far? | |
Re: [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 … | |
Re: What does that have to do with c++? I agree with vmanes that the link you posted raises an eyebrow | |
Re: @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; } … | |
Re: [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? | |
Re: getline is explained quite well [URL="http://www.cplusplus.com/reference/iostream/istream/getline.html"]here[/URL] example : [icode]yourfilestream.getline(CharBufferForOutput, TheSizeOfTheCharBuffer, ':');[/icode] | |
Re: 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 | |
Re: 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 | |
Re: 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. | |
Re: 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 … | |
Re: >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 ;) | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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... | |
Re: 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] | |
Re: "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 | |
Re: If you want proper advice, you should post your code, not your executable. One tip is: [b] validate user input.[/b] See attachment. | |
| |
Re: If using windows: [URL="http://www.daniweb.com/code/snippet72.html"]Click[/URL] | |
Re: 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! | |
Re: 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 … | |
Re: 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] | |
Re: [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 … |
The End.