Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
skips
- Page 1
HELP compiler skips the Try and goes to the Catch{}
Programming
Software Development
16 Years Ago
by matthewc
… (Exception e) { System.err.println(e.toString()); } [/CODE] The compiler
skips
the try{} and goes directly to the catch{} ... any ideas…
readprocessmemory skips bytes
Programming
Software Development
14 Years Ago
by nschessnerd
… get information on a game, but for some reason it
skips
two bytes.. part of my structure is similar to [code…
Script skips line? VB 2008
Programming
Software Development
14 Years Ago
by Nexx
… like a quick login. But for some reason it always
skips
the part when it should navigate to the login webpage…
for loop skips some data
Programming
Web Development
12 Years Ago
by Ichcha
…[/ATTACH] the following code displays output as in attachment.. it
skips
some of the value.. in the above output, am not…
Getline() skips the first part of string line?
Programming
Software Development
11 Years Ago
by Sara Tech
…! AND, If I keep `cin>> company_name;`the getline
skips
the first part from the string. Thanks in advance for…
Program skips second loop of inputting with cin.
Programming
Software Development
9 Years Ago
by nathan.pavlovsky
… be put into secondList (EOF to quit): ";`, the program
skips
the cin in the loop's decision, goes on without…
PHP foreach loop skips parts of statement for some array values.
Programming
Web Development
9 Years Ago
by Jaklins
… on [StackOverflow](http://stackoverflow.com/questions/29074953/php-foreach-loop-
skips
-parts-of-statement-for-some-array-values)
I need help, when i run this python code it skips the part with the quiz.
Programming
1 Year Ago
by Encray
it
skips
line 11-29 it is really annoying can you pls …
BufferedReader Skips first line
Programming
Software Development
11 Months Ago
by epsilonb
… import a list from a txt file, but the reader
skips
the first line and also adds the last "null…
Re: BufferedReader Skips first line
Programming
Software Development
11 Months Ago
by epsilonb
ok it was stupidly easy and I am still hitting my head on the wall, inside the while, the first line is `line=bf.readLine()` right? well with this it
skips
the first line so I simply needed to add this after the `else` and everything works
Re: loop that skips a number
Programming
Software Development
17 Years Ago
by WolfPack
Use the [inlinecode]continue[/inlinecode] keyword. It
skips
to the next iteration. [code=c] for (i = 0; i < count; i++ ) { if ( i == 5 ) continue; stuff }[/code]
Re: HELP compiler skips the Try and goes to the Catch{}
Programming
Software Development
16 Years Ago
by Ezzaral
It can't "skip the try". An exception is occurring and you need to figure out what it is. I would recommend putting e.printStackTrace() in your catch block.
Re: readprocessmemory skips bytes
Programming
Software Development
14 Years Ago
by Ancient Dragon
Just a guess, but if you are trying to read the contents of a structure perhaps there are holes in the structure, such as the packing factor is something other than 1. [code] #pragma pack(1) struct mystuff { WORD a; DWORD b; // etc }; #pragma pack() [/code]
Re: readprocessmemory skips bytes
Programming
Software Development
14 Years Ago
by nschessnerd
thanks! that worked great... you just know the answer to everything dont you?
Re: for loop skips some data
Programming
Web Development
12 Years Ago
by ddymacek
for off move your $size = sizeof... code what is $GroupName coming from and why is in the middle of your while loop.... never mind try this: [CODE] while($rowmain=mssql_fetch_array($resultmain)) { $course = $rowmain['GroupID']; //$groupname is an array foreach($GroupName as $key => $value) { // check your values echo "…
Re: for loop skips some data
Programming
Web Development
12 Years Ago
by Ichcha
[CODE] // groupname.php file contains GroupName array. 2D array. include 'groupname.php'; for($i = 0; $i <= sizeof($GroupName); ++$i){ if($GroupName[$i][0]== $course) echo "<td><font size'3'>{$GroupName[$i][1]}</font></td>"; }[/CODE] [ATTACH]22041[/ATTACH] [ATTACH]22042[/ATTACH] the …
Re: for loop skips some data
Programming
Web Development
12 Years Ago
by Ichcha
here is my full code. please help.[CODE]<?php session_start(); include("passwords.php"); check_logged(); ob_start(); ?> <html><SCRIPT LANGUAGE='javascript'>try { if (top == self) {top.location.href='main.php'; } } catch(er) { } </SCRIPT></html> <?php ob_end_flush(); $dblink = …
Re: for loop skips some data
Programming
Web Development
12 Years Ago
by ddymacek
try some more debugging. I'm also all about using a foreach. but if you must use the for($i... statement... inside of it try this: [CODE] if($GroupName[$i][0]== $course) echo "<td><font size'3'>{$GroupName[$i][1]}</font></td>"; } else { // this will only happen when groupname$i0 != 'course' is this …
Re: for loop skips some data
Programming
Web Development
12 Years Ago
by Ichcha
problem solved.. value from database contains white spaces,trim added to remove it.. from : [CODE]$course = $rowmain['GroupID'];[/CODE] to : [CODE]$course = trim($rowmain['GroupID']);[/CODE]
Re: Getline() skips the first part of string line?
Programming
Software Development
11 Years Ago
by CodeWeaver
Could you please post the whole section of code including variable declarations etc.
Re: Getline() skips the first part of string line?
Programming
Software Development
11 Years Ago
by NathanOliver
If you are mixing the `>>` operator and getline you need to use `ignore()` before calling getline. Give this a try cin.ignore(); <-- added this cout << "Enter the company name: "; getline(cin, company_name);
Re: Getline() skips the first part of string line?
Programming
Software Development
11 Years Ago
by Sara Tech
Actually, I incidentally founded a solution, but I don't know how it works! :P I had to add cin.get(); Any help to explain the work of cin.get() function Thanks for your help std::cout << "Enter the name of the company: "; cin.get(); std::getline (std::cin,company_name); std::cout <<…
Re: Getline() skips the first part of string line?
Programming
Software Development
11 Years Ago
by NathanOliver
The problem you are getting is that you are mixing your input types. Using the `>>` operator leaves the newline in the stream. When you call getline after that it reads in the newline and then stops. That is how getline works. It will keep reading untill it sees a newline.
Re: Program skips second loop of inputting with cin.
Programming
Software Development
9 Years Ago
by NathanOliver
I bet you need to clear the stream after the first while loop. Add `cin.clear()` in between the two while loops.
Re: Program skips second loop of inputting with cin.
Programming
Software Development
9 Years Ago
by nathan.pavlovsky
Nope. That did not work. This is what I have in code: // Program that takes two linked list objects and concatenates #include <iostream> #include "List.h" using namespace std; int main() { //create two linked lists List<int> firstList; List<int> secondList;…
Re: Program skips second loop of inputting with cin.
Programming
Software Development
9 Years Ago
by NathanOliver
Do `cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n')` before the clear just to make sure the buffer is empty. I think there is still a newline in the buffer. You will need to include <limits> for this. /... } cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n') cin.clear(); cout <&…
Re: Program skips second loop of inputting with cin.
Programming
Software Development
9 Years Ago
by nathan.pavlovsky
Nope.... Here's what happens: // Program that takes two linked list objects and concatenates #include <iostream> #include <limits> #include "List.h" using namespace std; int main() { //create two linked lists List<int> firstList; List<int> secondList;…
Re: Program skips second loop of inputting with cin.
Programming
Software Development
9 Years Ago
by NathanOliver
You need the ingnore outside the while loop like I posted. When cin gets the EOF it set the EOF flag which causes `cin >> input` to be false and the while loop will not execute the last time. I actually switched how it should be done. You need to call clear before you call ignore so it should look like this: /... end of first while …
Re: Program skips second loop of inputting with cin.
Programming
Software Development
9 Years Ago
by nathan.pavlovsky
OK. Here's what I have: // Program that takes two linked list objects and concatenates #include <iostream> #include <limits> #include "List.h" using namespace std; int main() { //create two linked lists List<int> firstList; List<int> secondList;…
Re: Program skips second loop of inputting with cin.
Programming
Software Development
9 Years Ago
by iamthwee
What is 'List.h' post the code. >I also want the program to check if the input is a valid number, Simple enough, although you'll have to accept all input as strings, that way you won't get the issues you are having flushing the input stream, if that is indeed the issue. E.g does string contain only characters 0-9, and check numbers don't have…
1
2
3
17
Next
Last
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
Forums
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
© 2024 DaniWeb® LLC