Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
int
- Page 1
Re: Error LNK1104 when debugging
Programming
Software Development
5 Days Ago
by toneewa
….lib") struct _wfsversion {
int
major;
int
minor;
int
build; }; class MyProjectName { …} } ~MyProjectName() { CloseHandles(); } };
int
main() { MyProjectName serviceManager; std::wstring serviceName …
Re: Flood control using Redis
Programming
Web Development
3 Days Ago
by Dani
Status update: we now use Cloudflare’s free rate limiting functionality. Back when I wrote this, Cloudflare charged for rate limiting. Note we have a Business account.
How do I make my code jump back to a previous line?
Programming
2 Weeks Ago
by trueriver
…;) if User_input == User: User_password_input = input("Please input password: ") #
int
(User_password_input) if User_password_input == User_password: print("Welcome, " + User + "…
Re: How do I make my code jump back to a previous line?
Programming
2 Weeks Ago
by trueriver
…;) if User_input == User: User_password_input = input("Please input password: ") #
int
(User_password_input) if User_password_input == User_password: print("Welcome, " + User + "…
Re: Need Coding Help With A Project
Programming
Software Development
2 Weeks Ago
by Enzo_3
… file: content = file.read() number_strings = content.split() numbers = list(map(
int
, number_strings)) total = reduce(lambda x, y: x + y, numbers) average…
Re: C++ College Prank
Programming
Software Development
3 Weeks Ago
by cirol
Pranks can be fun, but fake viruses might cause real worry and problems. It’s best to use your skills in ways that don’t upset or confuse others.
Re: How do I make my code jump back to a previous line?
Programming
2 Weeks Ago
by woooee
if sysInfo.lower() in ["exit", "Exit", "EXIT"]: since sysinfo is now lower(), it will never be equal to "Exit" or "EXIT"
Re: How do I make my code jump back to a previous line?
Programming
1 Week Ago
by Dani
Organizing code into functions is always important for readability and also to be able to reuse parts of your code as your app gets bigger. Thank you for posting your updated code to share with others :)
Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by YashSmith
…’s my code: #include <iostream> using namespace std;
int
main() {
int
arr[5]; cout << arr[10]; // Accessing out…
Re: Cannot run exe from asp.net
Programming
Web Development
1 Month Ago
by lennyli
… command.startswith('move'): _, x, y = command.split() pyautogui.moveTo(
int
(x),
int
(y)) elif command == 'click': pyautogui.click() elif command.startswith…
Re: Show computer name on a label
Programming
Software Development
2 Months Ago
by toneewa
…;Computer Name: " << ComputerName << std::endl; } } }
int
main() { DisplayComputerName(); String^ managedString = gcnew String(L"Hello DaniWeb…
Re: Java Coin Flip Program
Programming
Software Development
1 Month Ago
by jassonadder
…("Total Tails:", self.tails) # Main program try: flips =
int
(input("How many times would you like to flip…
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by Reverend Jim
Don't try to access past the end of the array.
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by rproffitt
Thanks for the MVE (minimum viable example). But it's just bad code. c, c++ and a lot of language won't stop you from going out of bounds.
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by Dani
You’re creating an array of 5 integers and then trying to access the 11th integer in the array (assuming the indexes start at 0). You’re getting an out of bounds error because you’re trying to access an array element that doesn’t exist. You can access arr[0] up through arr[4].
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by Salem
It should be obvious by now from their posting history that the OP is a troll.
Int isn't working correctly, any ideas why?
Programming
Software Development
12 Years Ago
by ctclements
int
wordpercent = ((count/totalwords)*100); JOptionPane.showMessageDialog(null, "Count: " + … made up from your selected word. I am using "
int
wordpercent = ((count/totalwords)*100); to show that. However, when I…
Re: int main() and return
Programming
Software Development
15 Years Ago
by Fbody
… the ANSI/ISO standards. If you return anything but an
int
, it can lead to system issues. Some compilers will even… complain if you try to return anything but an
int
. As far as value is concerned, zero (0) is considered…
Re: int array to double array
Programming
Software Development
14 Years Ago
by Caligulaminus
Int
and double have completely different memory representations -> No other way of converting the arrays.
Re: int main() or void main() ??!!
Programming
Software Development
18 Years Ago
by may4life
int
main() is used to return 0 at the end. This 0 is returned to the Operating system to denote that the function main() - which is the only function called by the operating system and that's why its so special - has completed successfully. Always use
int
main() and return 0 at the end of it. Dont use void
int * Help
Programming
Software Development
17 Years Ago
by balla4eva33
So I've got "m_starts" as a pointer to an
int
(
int
* m_starts;). And a const char * of "m_str". m_str = "bad,cold,new". How can I allocate "m_starts" to store the starting index of each word in m_str??? For loop?
Int
Programming
Web Development
9 Years Ago
by tqmd1
… functions perform same task? $wh_ope=clean($_POST['whop'])?(
int
)$_POST['whop'] : 0; $wh_ope=(
int
)clean($_POST['whop']); function clean($str) { $cstr=trim…
Re: int * Help
Programming
Software Development
17 Years Ago
by Ancient Dragon
… through the string and count the commans. Then allocate the
int
array large enough to hold that many integers. After that…
Re: int * Help
Programming
Software Development
17 Years Ago
by Ancient Dragon
>>how do i allocate it to the size i want This is c++ so use the [b]new[/b] operator to allocate the array [icode]m_starts = new
int
[NumberOfIntegers];[/icode]
Re: int * Help
Programming
Software Development
17 Years Ago
by Bench
… though. Either way, it works fine with both char and
int
Re: Int isn't working correctly, any ideas why?
Programming
Software Development
12 Years Ago
by deceptikon
…'m willing to be that `count` and `totalwords` are both
int
too, which means your division is performed in integer context… result will be 0. You want something more like this:
int
wordpercent = (
int
)((count / (double)totalwords) * 100) This forces the division into…
Re: Int isn't working correctly, any ideas why?
Programming
Software Development
12 Years Ago
by ctclements
That was the problem, thank you guys. I'm new to java and programming in general. I changed "
int
totalwords" to "double totalwords". The only minor problem I have now is that because I changed totalwords to a double it displays "Total Words: 340.0". Is there any way to make it not display the .0?
Re: Int isn't working correctly, any ideas why?
Programming
Software Development
12 Years Ago
by JamesCherrill
Using a double is a valid solution, but it does have side effects. Personally I would just rearrange the expression so it does the multiply before the divide and keep all the variables as ints.
int
wordpercent = (count*100)/totalwords;
int to string problem, need help quick
Programming
Software Development
16 Years Ago
by notuserfriendly
…// for I/O class Stacky { private
int
maxSize; private
int
[] stackArray; private
int
top; //-------------------------------------------------------------- public Stacky(
int
size) // constructor { maxSize = size;…20); // make new stack char ch;
int
j;
int
num1, num2;
int
interAns; for(j=0; j<input.…
int function(fstream)//illegal argument
Programming
Software Development
20 Years Ago
by smartintelleng
…);
int
setSexe(
int
);
int
setQuery(string);
int
getStats(string);
int
getPosition(string);
int
checkIfStatExist();
int
control(
int
); [B]
int
dataProcess(fstream,fstream,fstream,
int
,
int
,
int
);[/B] private:
int
age;
int
sexe;
int
stat;
int
exist;
int
…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC