Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #4K
~7K People Reached
Favorite Forums
Favorite Tags
Member Avatar for nightcrew

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

Member Avatar for omgerg
0
3K
Member Avatar for nightcrew

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 …

Member Avatar for raptr_dflo
0
1K
Member Avatar for nightcrew

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 …

Member Avatar for Onlineshade
0
200
Member Avatar for Limiter

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

Member Avatar for sergent
0
216
Member Avatar for scobi

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.

Member Avatar for scobi
0
306
Member Avatar for ekvenkatesh

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 …

Member Avatar for nightcrew
0
2K
Member Avatar for brainfo

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.

Member Avatar for nightcrew
0
143
Member Avatar for dudekill123

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 …

Member Avatar for nightcrew
0
149