- Strength to Increase Rep
- +2
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
[QUOTE]Assume you have a int variable n that has already been declared and initialized. Its value is the number of integers that need to be read in from standard input and printed out in sorted (ascending) order, each on a line by itself. Furthermore, there are no duplicates in the … | |
convertHex changes all occurrences of %XX (XX are exactly two hexadecimal digits) to ascii characters. Returns the number of replacements made. Here are the rules: Except when defining your character arrays, you must use pointer notation for all c-string manipulation--no []'s allowed. You may use any function from the cctype … | |
Hello to the Daniweb community. My name is Anthony. I've been programming for college for about 9 months now. I've completed a VB.Net class for beginners and am now working on a C++ class for beginners. I can usually figure out most of what the classes throw at me just … | |
Re: I use Bloodshed to create .cpp in Windows: [URL="http://www.bloodshed.net/download.html"]http://www.bloodshed.net/download.html[/URL] Works pretty well so far. I don't know if I'm understanding your infinite loop question though. If your program is running an infinite loop, just force close it. If you're asking how to catch where the infinite loop is coming from, … | |
Re: He's saying to do this at the top of your code: [CODE]//#include <stdafx.h> #include <iostream> //line_poly_file.cpp #include <fstream> #include <windows.h> #include <glut.h> using namespace std; //Insert this new line right here! GLsizei wh = 250;[/CODE] Beyond that, I don't know how to help you much. | |
Re: In function ms: Initialize i to 1 in your for loop. The way you have it setup now, you're returning zero for every value in your ncr function. By doing this, you end up dividing by zero (when you divide by l), which is probably why you're getting the floating … | |
Re: Try inserting this just before you return zero: [CODE] cin.get(); cin.ignore();[/CODE] Should hold the window open until you press the enter key. | |
Re: I plugged your code into Bloodshed. I'm merely a beginner, but I believe you should include <iomanip> and namespace std. Also, your main should be of integer data type, so it can return 0 to the system when it closes. Beyond that, you've referenced a few variables that are not … |