Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 18 results for
intege
- Page 1
For loop
Programming
Software Development
13 Years Ago
by ccube921
…;<"Please enter an integer.\n"; int
intege
; cin>>
intege
; cin.ignore(); cout<<"Please enter… ( int inte = 1; inte = 1; ) { cin>> integ; if (
intege
==integ) { inte=0 cout<<"Thank You, please…
Doesn't terminate on execution
Programming
Software Development
13 Years Ago
by ccube921
…;<"Please enter an integer.\n"; int
intege
; int integ; for ( int inte = 1; …inte = 1; ) { cin>>
intege
; cin.ignore(); cout<<"Please enter it …cin>> integ; cin.ignore(); if (
intege
==integ) { inte=0; cout<<"…
Re: Doesn't terminate on execution
Programming
Software Development
13 Years Ago
by Milton Neal
…an integer.\n"; int
intege
; int integ; bool result; do { cin&…gt;>
intege
; cin.ignore(); cout<<"… cin>> integ; cin.ignore(); if (
intege
==integ) { cout<<"Thank You, please…
Code after for loop doesn't execute
Programming
Software Development
13 Years Ago
by ccube921
…;<"Please enter an integer.\n"; int
intege
; int integ; for ( int inte = 1; …inte = 1; ) { cin>>
intege
; cin.ignore(); cout<<"Please enter it …cin>> integ; cin.ignore(); if (
intege
==integ) { inte=0; cout<<"…
Re: Code after for loop doesn't execute
Programming
Software Development
13 Years Ago
by StuXYZ
… call your variables something slightly more descriptive, using inte, integ
intege
is asking to make a typo and cause piles of…
Positive integers that are not the sum of the cubes of nine different positive intege
Programming
Computer Science
14 Years Ago
by MCMLXXXVIII
we are given a problem to make this in a program but i don't quite understand what it means or requires. • Look for positive integers that are not the sum of the cubes of nine different positive integers. can someone help me out.. Thanks
Re: Positive integers that are not the sum of the cubes of nine different positive intege
Programming
Computer Science
14 Years Ago
by Firewolf
Just an idea... The first 9 positive integers are: 1, 2, ..., 9 Their cubes are: 1, 4, ..., 81 The sum of these cubes is: 285 285 has to excluded from the list And so on...
Re: Positive integers that are not the sum of the cubes of nine different positive intege
Programming
Computer Science
14 Years Ago
by mrnutty
>>[b] Their cubes are: 1, 4, ..., 81[/b] no their cubes are 1^3, 2^3 , 3^3 ... 9^3
This factory buffers messages, so the message sizes must be in the range of an intege
Programming
Web Development
12 Years Ago
by vuyiswamb
Good Day All i am having a strange error here. I am using Silverlight and i am accessing an Asp.net page inside a RadHtmlContainer. i am doing an Insert that will insert only two records and i am calling a Service that i tested independently with a wcftest client and it work , now i am doing in my Silverlight app and i get the Following error…
Re: For loop
Programming
Software Development
13 Years Ago
by Stefano Mtangoo
[URL="http://www.cplusplus.com/doc/tutorial/control/"]Hint[/URL]: [CODE=C++]int i=0; for(i=0; i<100;i++){ cout<<i<<"\n"; }[/CODE]
Re: For loop
Programming
Software Development
13 Years Ago
by ccube921
I'm not quite sure what you meant by that, but apparently it was because I forgot a semicolon. Funny how it marks the next command as wrong.
Re: Doesn't terminate on execution
Programming
Software Development
13 Years Ago
by Milton Neal
Hi Need to add: [code=c++] return 0; [/code] at line 33 This will force a "return" from function "main" and terminate your program. Cheers Milton
Re: For loop
Programming
Software Development
13 Years Ago
by Stefano Mtangoo
[QUOTE=ccube921;1339522]I'm not quite sure what you meant by that, but apparently it was because I forgot a semicolon. Funny how it marks the next command as wrong.[/QUOTE] Because semicolon is a "punctuation mark". It sees two statements as one statement. like I Love Tanzania It is most beautiful! (Two sentence but missing full stop)…
Re: Doesn't terminate on execution
Programming
Software Development
13 Years Ago
by ccube921
That didn't help. The program still didn't terminate until I killed it manually (close button).
Re: Doesn't terminate on execution
Programming
Software Development
13 Years Ago
by ccube921
What is wrong with the for loop?
Re: Doesn't terminate on execution
Programming
Software Development
13 Years Ago
by ccube921
Thank you, milton. Inspired by your code, I moved my return(0); into my if statement. My only question is why it didn't work outside the statement?
Re: Doesn't terminate on execution
Programming
Software Development
13 Years Ago
by ccube921
New problem starting new thread
Re: Code after for loop doesn't execute
Programming
Software Development
13 Years Ago
by ccube921
The solution I found was to correct my mistake involving my conditional, in which I wrote: [CODE]for( int inte = 1; inte = 1; ) { } [/CODE] I changed it to: [CODE]for( int inte = 1; inte == 1; ) { } [/CODE]
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
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
© 2024 DaniWeb® LLC