Topic profile page for Integers.
This page has aggregated data from forum posts, threads, listings, online discussions, newsgroups, messageboards, and other online sources which contain user generated content for the term: Integers.
Topic "Integers" was discussed 8,566 times on 830 sites in last 3 months
Here's another example. There are as many positive... Here's another example. There are as many positive integers: 1,2,3.. as there are total ints: 1,-1,2,-2.. despite the inclusion of the negs. 2:29 AM Jul 5th from web
Started 1 week, 2 days ago (2009-11-26 01:00:00)
by Timmah339
hi all, i need to find the mode of an array of integers. i've completed literally every part of my assignment except for the mode and i'm lost. any help? here's my code: CODE #include #include #include #include using namespace std; int main() { //variables int one=0, two=0, three=0, four=0, five=0, six=0, seven=0, eight=0, nine=0, ten=0; int avgsum=0; int average=0; ...
Started 1 week, 3 days ago (2009-11-24 16:44:00)
by Tom2009
I have a extra credit problem in class, I am trying to write two functions, one for integers and one for real numbers. Integer arguments will be defined as an argument whose characters consist only of decimal digits Real arguments will be defined as an argument whose characters consist only of decimal digits and exactly one decimal point somewhere in the string. I have ...
Started 2 weeks ago (2009-11-20 14:56:00)
by sgalland
Hi, I am reading in strings and integers and I am wondering, am I doing this correctly where I will prevent overflow problems and also not have a bunch of issues with my strings? Since I started messing with C, I have had tremendous problems getting this stuff to work and I think I got it now. I am just wondering how to improve the code I wrote. Code: #include #include #...
Started 2 weeks, 5 days ago (2009-11-16 05:54:00)
by JamesT
Sequential Files, integers. VB6 I'm creating a program for school which involves storing an integer value for different people using the program. The integer file is the amount of currency the player has in the game, and when they make or lose money I want to write to the file with a simple addition line. I can get a file ...
Started 2 weeks, 6 days ago (2009-11-14 16:42:00)
by mbruce10
Hi guys, I am trying to implement with a class called Sort a function to read in an array of integers from a file and a function to display that array. public class Sort { public static int [] read(String file) throws IOException { /* Create Reader object to read contents of file */ BufferedReader br = new BufferedReader( new...
Started 3 weeks, 1 day ago (2009-11-12 17:18:00)
by Sernomicus
Making several digital times in to integers and playing around Ok lemme tell ya this is one toughie to explain. Basicly, I have a textbox with digital times on different lines, i.e 22:25 23:56 21:33 etc My program attempts to find all the times in between two given times i.e I tell it to look for all times in...
Started 3 weeks, 2 days ago (2009-11-12 05:54:00)
by dogfrost...
proposition: the product of any two consecutive integers is divisible by 2. integer = n consecutive integer = n+1 n * (n+1) = n^2 + n So I need to prove that 2 divides n^2 +n By the definition of divides, I can say there exists an integer x such that n^2 + n = 2(x) x = (n^2 + n)/2 In order for this equation to hold true, x must be an integer and n must be an ...
Started 3 weeks, 2 days ago (2009-11-12 00:59:00)
by georgio777
scaning two integers with scanf() and the conflict with the while() loop Hi everyone, I'm having trouble making work a function program related to simple math calculations. In this case is in the Division function. For this project I have to make the user answer some simple divisions problems that must also include an integer result with it's modulus. For example: ...
Started 2 days, 2 hours ago (2009-12-03 08:27:00)
by Nat
First of all - loving the book. OOP is completely new to me although I have coded before in FORTRAN and a bit of HTML and ASP and I have found the structure and techniques brilliant. In Chapter 7 on page 168 the code: Code: last = (int) randomNumber.Next(max); is used. Why is the "(int)" necessary? and why is it not used when assigning to "current" three lines later? ...
Started 2 days, 20 hours ago (2009-12-02 14:00:51)
by layer7
Hoping someone can help with this particular issue I'm experiencing. Some background. An ASP page where a user can login, not using ASP Login control but simple txtbox approach to gather username & password, authenticate against the AD (windows 2008 and using system.directoryservice.accountmanagement) and if their password has expired, or it is the first time they've logged on, then they are ...
Started 1 week ago (2009-11-27 20:59:00)
by Mike in Cornell
I am using Excel's solver to work out an integer problem. Although the answers are indeed integers, the number in the formula bar is not. For example: although 7 is the answer, the formula bar give 6.99987584. Even if I try to format the cell for 0 decimal places, it does not correct. This is leading to calculations down the line. Anyone have any ideas.
Started 6 days, 23 hours ago (2009-11-28 11:50:00)
by evangela
I need to write a program that accepts an integer n, where n is the number of elements going into the array. Have the user input n, integers. Have a function that ouputs the current array. And have another function that bubblesorts the array. Then have the output function, output the sorted array. I have written this code thus far, however. When compiled and run, it will ask for n,...
I was having troubles figuring this question out. It is a quantitative comparison. Column A: The sum of all integers from 19 to 59, inclusive. Column B: The sum of all integers from 22 to 60, inclusive. What is the quick way of doing this without busting out the formulas?
Started 2 days, 5 hours ago (2009-12-03 05:31:00)
by totoro
For how many integers n is 2 n = n 2 ? (A) None (B) One (C) Two (D) Three (E) More than three Does anyone know how to solve this algebraically? I know i can get the answer by guessing the value of n but would like to know if there a way to solve this algebraically.
Started 4 days, 7 hours ago (2009-12-01 03:06:00)
by Robert Crandal
I have two large arrays of integers that I would like to initialize when my workbook is opened. Since it seems too difficult (and maybe impossible) to make these arrays global to ALL of my VBA code modules, I thought of the following solution: How about I create one hidden sheet in my workbook and use the cells to simulate an ...
Started 2 days, 21 hours ago (2009-12-02 13:47:00)
by Chris Tiaan
Good Morning, I need to call a dll from C# that was generated by magic edeveloper. I think it is a C dll. It is a program that takes in 3 parameters all integers. Adds the first to and pass the sum to the 3rd parameter. I have registered the dll in windows and I can add a reference in visual studio via the Project Add Reference menu. I have the following code in my project int a = 5 ; int...