Sponsored Content
Homework and Emergencies Homework & Coursework Questions program to find and print a Fibonacci sequence of numbers. --Errors Post 302715107 by jim mcnamara on Saturday 13th of October 2012 10:03:11 PM
Old 10-13-2012
I think you missed one point. gcc -S is going to generate REALLY good assembler, with some optimizations. You should use that as template.

Since you seem to want to rewrite the code read here about optimizations and how to control them. Maybe that is your assignment. In that case:

Optimize Options - Using the GNU Compiler Collection (GCC)
 

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

program to find the uncommon numbers between two files.

Hi, I need to extract the uncommon numbers from file1 and file2 For Example: File1 1 2 3 4 5 File2 1 2 3 4 5 6 (2 Replies)
Discussion started by: salaathi
2 Replies

2. Shell Programming and Scripting

Unix help to find blank lines in a file and print numbers on that line

Hi, I would like to know how to solve one of my problems using expert unix commands. I have a file with occasional blank lines; for example; dertu frthu fghtu frtty frtgy frgtui frgtu ghrye frhutp frjuf I need to edit the file so that the file looks like this; (10 Replies)
Discussion started by: Lucky Ali
10 Replies

3. Shell Programming and Scripting

Shell script to find the sum of first n Fibonacci numbers

pls give me the solution for this i need it for my exam pls pls pls Shell script to find the sum of first n Fibonacci numbers (1 Reply)
Discussion started by: Kshitija
1 Replies

4. Homework & Coursework Questions

Help with shell script to find sum of first n numbers of Fibonacci series

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Shell script to find sum of first n numbers of Fibonacci series 2. Relevant commands, code, scripts,... (0 Replies)
Discussion started by: Kshitija
0 Replies

5. UNIX for Dummies Questions & Answers

Why does fibonacci sequence script stop making sense at 92nd iteration?

So, Just for practice, I wrote a simple fibonacci sequence script in bash. (03:08:02\$ cat fib #!/usr/bin/bash ret () { echo -ne "\n" sleep .5 } a=1 b=2 echo -n $a #1 A ret echo -n $b #2 B ret (8 Replies)
Discussion started by: DeCoTwc
8 Replies

6. Shell Programming and Scripting

Need to find the gap in the sequence of numbers

Hi Guys, I have a file with numbers in sequence. The sequence have been broken somewhere.. I need to find out at which number the sequence has been broken... For an example, consider this sequence, it needs to give me output as 4 (as 5 is missing) and 6(as 7 is missing) Thanks for... (3 Replies)
Discussion started by: mac4rfree
3 Replies

7. Shell Programming and Scripting

How to find the matched numbers between 2 text file using perl program??

hi dudes, I nee you kind assistance, I have to find the matched numbers from 2 text files and output of matched numbers should be in another text file.. I do have text files like this , for example File 1 787 665*5-p 5454 545-p 445-p 5454*-p File 2 5455 787 445-p 4356 2445 144 ... (3 Replies)
Discussion started by: sureshraj
3 Replies

8. Shell Programming and Scripting

find common entries and match the number with long sequence and cut that sequence in output

Hi all, I have a file like this ID 3BP5L_HUMAN Reviewed; 393 AA. AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3; DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot. DT 05-JUL-2004, sequence version 1. DT 05-SEP-2012, entry version 71. FT COILED 59 140 ... (1 Reply)
Discussion started by: manigrover
1 Replies

9. Shell Programming and Scripting

Find common numbers and print yes or no

Hi I have 2 files with following data First file, sp|Q676U5|A16L1_HUMAN, Autophagy-related protein 16-1 OS=Homo sapiens GN=ATG16L1 PE=1 SV=2, Maximum coiled-coil residue probability: 0.657 in position 163. Maximum dimeric residue probability: 0.288 in position 163. ... (1 Reply)
Discussion started by: manigrover
1 Replies

10. Programming

Program wont print prime numbers

The problem I'm having is that when you put in the two numbers the answer is just prime.... nothing. I cannot figure this out ive been working on this forever, can someone please god just tell me how to fix this without encrypted "hints". #include <iostream> #include <cmath> using... (3 Replies)
Discussion started by: c++newb
3 Replies
std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >(3cxx)		 std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >(3cxx)

NAME
std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits > - SYNOPSIS
Public Types typedef std::ptrdiff_t difference_type typedef std::forward_iterator_tag iterator_category typedef const value_type * pointer typedef const value_type & reference typedef basic_regex< _Ch_type, _Rx_traits > regex_type" typedef sub_match< _Bi_iter > value_type Public Member Functions regex_token_iterator () regex_token_iterator (_Bi_iter __a, _Bi_iter __b, const regex_type &__re, int __submatch=0, regex_constants::match_flag_type __m=regex_constants::match_default) regex_token_iterator (_Bi_iter __a, _Bi_iter __b, const regex_type &__re, const std::vector< int > &__submatches, regex_constants::match_flag_type __m=regex_constants::match_default) template<std::size_t _Nm> regex_token_iterator (_Bi_iter __a, _Bi_iter __b, const regex_type &__re, const int(&__submatches)[_Nm], regex_constants::match_flag_type __m=regex_constants::match_default) regex_token_iterator (const regex_token_iterator &__rhs) bool operator!= (const regex_token_iterator &__rhs) const value_type & operator* () regex_token_iterator & operator++ () regex_token_iterator operator++ (int) const value_type * operator-> () regex_token_iterator & operator= (const regex_token_iterator &__rhs) bool operator== (const regex_token_iterator &__rhs) Detailed Description template<typename _Bi_iter, typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>class std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits > Iterates over submatches in a range (or splits a text string). The purpose of this iterator is to enumerate all, or all specified, matches of a regular expression within a text range. The dereferenced value of an iterator of this class is a std::sub_match object. Definition at line 2353 of file regex.h. Constructor &; Destructor Documentation template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::regex_token_iterator () Default constructs a regex_token_iterator. Todo Implement this function. A default-constructed regex_token_iterator is a singular iterator that will compare equal to the one-past-the-end value for any iterator of the same type. template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::regex_token_iterator (_Bi_iter__a, _Bi_iter__b, const regex_type &__re, int__submatch = 0, regex_constants::match_flag_type__m = regex_constants::match_default) Constructs a regex_token_iterator... Parameters: a [IN] The start of the text to search. b [IN] One-past-the-end of the text to search. re [IN] The regular expression to search for. submatch [IN] Which submatch to return. There are some special values for this parameter: o -1 each enumerated subexpression does NOT match the regular expression (aka field splitting) o 0 the entire string matching the subexpression is returned for each match within the text. o >0 enumerates only the indicated subexpression from a match within the text. m [IN] Policy flags for match rules. Todo Implement this function. Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::regex_token_iterator (_Bi_iter__a, _Bi_iter__b, const regex_type &__re, const std::vector< int > &__submatches, regex_constants::match_flag_type__m = regex_constants::match_default) Constructs a regex_token_iterator... Parameters: a [IN] The start of the text to search. b [IN] One-past-the-end of the text to search. re [IN] The regular expression to search for. submatches [IN] A list of subexpressions to return for each regular expression match within the text. m [IN] Policy flags for match rules. Todo Implement this function. Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> template<std::size_t _Nm> std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::regex_token_iterator (_Bi_iter__a, _Bi_iter__b, const regex_type &__re, const int(&)__submatches[_Nm], regex_constants::match_flag_type__m = regex_constants::match_default) Constructs a regex_token_iterator... Parameters: a [IN] The start of the text to search. b [IN] One-past-the-end of the text to search. re [IN] The regular expression to search for. submatches [IN] A list of subexpressions to return for each regular expression match within the text. m [IN] Policy flags for match rules. Todo Implement this function. Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::regex_token_iterator (const regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits > &__rhs) Copy constructs a regex_token_iterator. Parameters: rhs [IN] A regex_token_iterator to copy. Todo Implement this function. Member Function Documentation template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> bool std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::operator!= (const regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits > &__rhs) Compares a regex_token_iterator to another for inequality. Todo Implement this function. template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> const value_type& std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::operator* () Dereferences a regex_token_iterator. Todo Implement this function. template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> regex_token_iterator& std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::operator++ () Increments a regex_token_iterator. Todo Implement this function. template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> regex_token_iterator std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::operator++ (int) Postincrements a regex_token_iterator. Todo Implement this function. template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> const value_type* std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::operator-> () Selects a regex_token_iterator member. Todo Implement this function. template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> regex_token_iterator& std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::operator= (const regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits > &__rhs) Assigns a regex_token_iterator to another. Parameters: rhs [IN] A regex_token_iterator to copy. Todo Implement this function. template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>> bool std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::operator== (const regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits > &__rhs) Compares a regex_token_iterator to another for equality. Todo Implement this function. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >(3cxx)
All times are GMT -4. The time now is 03:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy