Saturday, April 27, 2013

Computer scientists suggest new spin on origins of evolvability: Competition to survive not necessary?

Apr. 26, 2013 ? Scientists have long observed that species seem to have become increasingly capable of evolving in response to changes in the environment. But computer science researchers now say that the popular explanation of competition to survive in nature may not actually be necessary for evolvability to increase.

In a paper published this week in PLOS ONE, the researchers report that evolvability can increase over generations regardless of whether species are competing for food, habitat or other factors.

Using a simulated model they designed to mimic how organisms evolve, the researchers saw increasing evolvability even without competitive pressure.

"The explanation is that evolvable organisms separate themselves naturally from less evolvable organisms over time simply by becoming increasingly diverse," said Kenneth O. Stanley, an associate professor at the College of Engineering and Computer Science at the University of Central Florida. He co-wrote the paper about the study along with lead author Joel Lehman, a post-doctoral researcher at the University of Texas at Austin.

The finding could have implications for the origins of evolvability in many species.

"When new species appear in the future, they are most likely descendants of those that were evolvable in the past," Lehman said. "The result is that evolvable species accumulate over time even without selective pressure."

During the simulations, the team's simulated organisms became more evolvable without any pressure from other organisms out-competing them. The simulations were based on a conceptual algorithm.

"The algorithms used for the simulations are abstractly based on how organisms are evolved, but not on any particular real-life organism," explained Lehman.

The team's hypothesis is unique and is in contrast to most popular theories for why evolvability increases.

"An important implication of this result is that traditional selective and adaptive explanations for phenomena such as increasing evolvability deserve more scrutiny and may turn out unnecessary in some cases," Stanley said.

Stanley is an associate professor at UCF. He has a bachelor's of science in engineering from the University of Pennsylvania and a doctorate in computer science from the University of Texas at Austin. He serves on the editorial boards of several journals. He has over 70 publications in competitive venues and has secured grants worth more than $1 million. His works in artificial intelligence and evolutionary computation have been cited more than 4,000 times.

Share this story on Facebook, Twitter, and Google:

Other social bookmarking and sharing tools:


Story Source:

The above story is reprinted from materials provided by University of Central Florida.

Note: Materials may be edited for content and length. For further information, please contact the source cited above.


Journal Reference:

  1. Joel Lehman, Kenneth O. Stanley. Evolvability Is Inevitable: Increasing Evolvability without the Pressure to Adapt. PLoS ONE, 2013; 8 (4): e62186 DOI: 10.1371/journal.pone.0062186

Note: If no author is given, the source is cited instead.

Disclaimer: Views expressed in this article do not necessarily reflect those of ScienceDaily or its staff.

Source: http://feeds.sciencedaily.com/~r/sciencedaily/computers_math/information_technology/~3/yFudqCEhgpw/130426115612.htm

agoraphobia andrew lloyd webber obscura grok cirque du freak paul pierce pope joan

Researchers track evolution of Philly's odd accent

PHILADELPHIA (AP) ? Will Philly no longer be a place where residents drink wooder and root for the Iggles?

Gid eowt!

A University of Pennsylvania linguistics professor says the Southern-inflected sound of the Philadelphia dialect is moving toward a more Northern accent. Some of Philly's trademark twangy, elongated vowel sounds are becoming less so, though others are getting stronger.

"Certain changes have continued in the same direction over 100 years and everybody's doing it," said Bill Labov, who has studied the Philadelphia accent since 1971 and recorded hundreds of native speakers born between 1888 and 1992 and living in dozens of neighborhoods. "It doesn't make a difference if you come from Port Richmond or Kensington or South Philadelphia."

With apologies to comedian Jeff Foxworthy, you might be a Philadelphian if: you say beggle (bagel), wooder (water), tal (towel), beyoodeeful (beautiful), dennis (dentist) or Fit Shtreet (Fifth Street). Your pronunciation of your own hometown might come out more like Philuffya, you call your football team the Iggles, you say "ferry" and "furry" the same way, and "radiator" rhymes with "gladiator."

Technological advances have allowed Labov and his colleagues to turn their decades of field recordings into voice spectrographs ? computer-generated visualizations of the human voice like an EKG ? to track speech variations over time. Regional dialects are cemented by adolescence, so a recording of a 75-year-old Philadelphian made in 1982, for example, should provide a snapshot of what people sounded like around 1925.

The researchers' recent paper in the journal Language, titled "One Hundred Years of Sound Change in Philadelphia," concludes that the city's linguistic character is not disappearing altogether ? but it is changing, with the most dramatic shifts occurring in the mid-20th century. The reasons aren't entirely clear but higher education appears to be a factor, as does simply being aware that certain local inflections are disparaged by outsiders.

"When we came to one of the most important Philadelphia features, of saying 'gow' for 'go,' it got stronger and stronger," Labov said, "until people born around 1950, 1960, when it turned around and it went the other way."

The Philly accent is getting thicker in other ways, however. Younger speakers use sharper "i'' sounds than their parents and grandparents, pronouncing "fight" and "bike" more like "foit" and "boik," and their "a'' sounds are closer to "e'' so words like "eight" and "snake" are closer to "eat" and "sneak."

"Children speak like their peer groups, not their parents," said Penn linguistics doctoral student Josef Fruehwald, so changes tend to occur by generation.

The familiar Philly-ism "wooder" also might be drying up.

"That sound is moving toward 'ah' so instead of 'cawfee' more Philadelphians are saying 'coffee,' 'wooder' becomes 'water,'" Labov said. "As people become aware ... they tend to reverse them. They say, 'Oh we shouldn't talk that way.'"

Not sure if you've heard the Philly patois? Listen to TV commentators Chris Matthews or Jim Cramer and you'll hear it leeowd (loud) and clear. "Jackass" star Bam Margera, who is from nearby West Chester, has it. So does Israeli Prime Minister Benjamin Netanyahu, his Philly-flecked American English a vestige of his childhood years in suburban Cheltenham.

Philadelphia characters often sound like New Yorkers ? think Rocky Balboa ? perhaps because Philly's nasal twang is tougher for non-natives to mimic. In last year's "Silver Linings Playbook," Robert DeNiro hung out with an uncle of co-star (and suburban Philadelphia native) Bradley Cooper to get the dialect down, though his wife played by Australian actress Jacki Weaver comes closest to nailing it.

The generational shift in the dialect was evident during a recent school event at The Franklin Institute, a science museum. Labov and several graduate assistants conducted hands-on demonstrations including one that asked, "Does Mad Rhyme With Sad?" Most of the youngsters answered yes, as in "mahd" and "sahd," while many adults said no, pronouncing "mad" with what linguists call a "tense a" ? sort of like "meeyad."

"I don't know how they can rhyme," said Betty McGonagle, who was on a field trip with students from the Harbor Baptist Christian Academy in Hainesport, N.J. "You're mad (meeyad), and you're sad (sahd)." For her teenage students, the words rhyme.

Mia Weathers, a freshman at the city's Science Leadership Academy, tried with some difficulty to pronounce "mad" as McGonagle does naturally.

"That is just, wow. That's strange," she said with a laugh.

Now the researchers' goal is answering what Labov calls "the most important and most mysterious" question about language change.

"How is it possible that people in every neighborhood in Philadelphia are moving in the same direction?" he said. "We don't have the answer yet."

Source: http://news.yahoo.com/researchers-track-evolution-phillys-odd-accent-064035245.html

bay bridge band of brothers presidents george washington horsetail falls ice t new york knicks

Wes Craven Set To Direct MTV's 'Scream' TV Reboot?

Big-screen horror franchise is slated to get the television treatment next summer.
By MTV News Staff

Source: http://www.mtv.com/news/articles/1706375/scream-mtv-series.jhtml

jobs act greg mortenson jim marshall died 2013 toyota avalon the secret life of bees full moon aubrey o day

Legendary Country Singer George Jones Dead At 81 (VIDEO)

Legendary Country Singer George Jones Dead At 81 (VIDEO)

George Jones dead at 81George Jones, the popular country singer who had tons of hit songs about party times and regrets, has passed away at the age of 81. The “He Stopped Loving Her Today” star died at Vanderbilt University medical Center in Nashville today after being hospitalized with irregular blood pressure and a high fever. George Jones had ...

Legendary Country Singer George Jones Dead At 81 (VIDEO) Stupid Celebrities Gossip Stupid Celebrities Gossip News

Source: http://stupidcelebrities.net/2013/04/legendary-country-singer-george-jones-dead-at-81-video/

ron white ron white buckyballs buckyballs awake mario batali lone ranger

Monday, April 15, 2013

Select Sony Bravia W-series TVs now available for pre-order in Europe

Select Sony Bravia Wseries TVs now available for preorder in Europe

In a quiet announcement that's decidedly less exciting than last week's 4K pricing reveal, Sony's European arm shared news today that select W-series TVs are now available for customers to pre-order. A press release published in Europe lists several CES models, including the KDL-W905A, KDL-W805A, KDL-W650A and KDL-W600A, though only a few have made their way to the company's online store. In the UK, for example, you can pick up the W905 in 40-, 46- and 55-inch flavors for £1,299 (about $2,000), £1,699 (about $2,600), or £2,399 (about $3,700), respectively, with an estimated ship date in early May. The other aforementioned models have appeared with pricing across the pond, albeit without a pre-order link, so HD-hungry consumers will need to hold out for a bit before reserving one of those sets. With those W950 MSRPs approaching the top end for their class, though, we're tempted to hold out for Sony's 4K versions, which are set to ship for $5,000 and up beginning this very weekend.

Filed under: , ,

Comments

Source: Sony Europe

Source: http://feeds.engadget.com/~r/weblogsinc/engadget/~3/tL5zzQ6KG6U/

soulja boy punxsutawney phil ground hog groundhog day 2012 serrano staten island chuck dr jekyll and mr hyde

Therapy: A true Haunting

Need some people.
Basic idea: Mentally unstable people who are seeking help undergo 'treatment' within a secluded mansion. They will encounter spirits, other troubled minds and come to terms with something much darker within the mansion walls. If it sounds intersting come check us out. :]

Therapy: A True Haunting

Source: http://feedproxy.google.com/~r/RolePlayGateway/~3/DniV0JAFFrM/viewtopic.php

cell phone jammer g8 summit netanyahu aipac vanessa minnillo super tuesday epidemiology

The Bootlegger Modular Pack On Kickstarter Is Three Very Different Backpacks In One

0ec4f6a13fc918b8965aa36b22038740_largeSan Francisco-based Boreas Gear, Inc. is funding its latest product through Kickstarter, in an attempt to build a modular pack system that provides three bags in one. If you're a bag enthusiast like myself (that might not be a real thing but I still have tons of them) then you'll appreciate the idea of a simple system that makes it easy to covert a single frame into a daypack, waterproof bag and simple hydration/light carry bag quickly and easily.

Source: http://feedproxy.google.com/~r/Techcrunch/~3/wUeScerQLyc/

nicki minaj beez in the trap video food network f/a 18 f 18 crash virginia tenebrae the lake house petrino arkansas

Attack kills Iraqi election candidate, 2 others

BAGHDAD (AP) ? Iraqi authorities say a roadside bomb explosion followed by a gunbattle north of Baghdad killed three people, including a Sunni candidate running in the upcoming provincial elections.

Police officials said Sunday's attack occurred when a roadside bomb hit the convoy of Najam Saeed. The blast was followed by shooting between gunmen and the candidate's bodyguards.

Police say two of Saeed's brothers were killed and that the candidate's son and three bodyguards were wounded in the attack near Muqdadiyah town, 90 kilometers (60 miles) north of Baghdad.

Medics in a nearby hospital confirmed the death casualties.

All officials spoke on condition of anonymity because they were not authorized to talk to the media.

At least 13 other candidates have been killed in previous attacks ahead of the April 20 ballot.

Source: http://news.yahoo.com/attack-kills-iraqi-election-candidate-2-others-130800227.html

jason wu for target collection nick diaz vs carlos condit the patriot hall of fame occupy dc ufc 143 fight card my fair lady

Tuesday, April 9, 2013

Immigration Plan Will Be Ready This Week, Sen. Chuck Schumer Says

WASHINGTON - As the Senate returns from recess this week, Sen. Chuck Schumer, D-N.Y., said he thinks the bi-partisan Gang of Eight will have its immigration plan completed by the end of the week.

"We hope that we can have a bipartisan agreement among the eight of us on comprehensive immigration reform by the end of the week," Schumer said today on CBS' "Face the Nation." "Over the last two weeks, we've made great progress. There have been kerfuffles along the way, but each one of those, thus far, has been settled."

Schumer said that the staffs of each Gang of Eight member has worked 12 hours a day to fine-tune the details of their immigration plan and reach an agreement on every issue.

In an interview on NBC's "Meet the Press," Sen. Lindsey Graham, R-S.C., also a member of the Gang of Eight, set a longer time frame of a "couple of weeks" before the plan is completed.

But one Republican member of the bi-partisan group has expressed concern that the deal on immigration reform is being reached in haste.

Sen. Marco Rubio, R-Fla., has called for more hearings and time to review the plan in order to encourage "healthy public debate."

"Arriving at a final product will require it to be properly submitted for the American people's consideration, through the other 92 senators from 43 states that weren't part of this initial drafting process," Rubio said in a statement last week. "In order to succeed, this process cannot be rushed or done in secret."

Sen. John McCain, R-Ariz., disputed the idea that the plan is being rushed, saying on CBS' "Face the Nation," "I reject this notion that something is being railroaded through. This is the beginning of the process, not the end of it."

Graham defended Rubio, even though questions have been raised about whether he will ultimately agree to a bi-partisan plan.

"Marco Rubio has been a game changer in my party," Graham said. "He will be there only if the Democrats will embrace a guest worker program and a merit-based immigration system to replace the broken one and we'll regain our sovereignty by securing our borders and having control of jobs through E-Verify. Marco will be there."

Also Read

Source: http://news.yahoo.com/immigration-plan-ready-week-sen-chuck-schumer-says-210019506--abc-news-politics.html

Turkey Cooking Times Butterball mashed potatoes Apple Black Friday how to cook a turkey emma stone Frys

Body of Nobel laureate Pablo Neruda exhumed in murder probe

AFP - Getty Images

A photo from Oct. 21, 1971, shows writer, poet and diplomat Pablo Neruda, then Chilean ambassador to France, answering journalists' questions in Paris. Neruda's remains were exhumed Monday in an effort to determine whether he was poisoned.

By Rodrigo Garrido, Reuters

ISLA NEGRA, Chile -- The body of Chilean Nobel laureate Pablo Neruda, dead nearly four decades, was exhumed on Monday after his former driver said the poet was poisoned under Augusto Pinochet's dictatorship.

Neruda, famed for his passionate love poems and staunch communist views, is presumed to have died from prostate cancer on Sept. 23, 1973.

But Manuel Araya, who was Neruda's chauffer during the ailing writer's last few months, says agents of the dictatorship took advantage of his illness to inject poison into his stomach while he was bedridden at the Santa Maria clinic in Santiago.

"We're hoping for a positive result because Neruda was assassinated. Pinochet made an error when he ordered Neruda be killed," said Araya. Results are expected in coming months.

Neruda was a supporter of socialist President Salvador Allende, who was toppled in a military coup on September 11, 1973, nearly two weeks before the poet's death at age 69. Around 3,000 people are thought to have been killed by the brutal 17-year-long dictatorship that ensued.

Neruda was buried in his coastal home of Isla Negra beside his third wife, Matilde Urrutia.

His remains will be brought to Santiago for analysis. Some samples could be sent to laboratories abroad.

Chilean judiciary via AFP - Getty Images

Coroner's office personnel and relatives of Chilean poet Pablo Neruda carry a coffin containing his remains after their exhumation in Isla Negra, 75 miles west of Santiago, on Monday.

Ricardo Eliecer Neftali Reyes Basoalto, better known by his pen name, was a larger-than-life fixture in Chile's literary and political scene.

While best known for his collection "Twenty Love Poems and a Song of Despair," published in 1924, Neruda was also an important political activist during a turbulent time in Chile.

He organized a ship to bring about 2,000 Spanish refugees fleeing the civil war there to Chile in 1939, campaigned for Allende and was ambassador to France during the socialist's presidency.

The Andean country's intelligentsia frequently congregated in Isla Negra, as well as in his Santiago home "La Chascona" -- so named for his then-mistress Urrutia's messy red hair -- and La Sebastiana, his ship-themed home in the port town of Valparaiso.

Democratically elected Allende committed suicide in the presidential palace as it was under attack by the military, experts confirmed last year, amid accusations he had been murdered during the coup.

Chilean courts are also investigating the death of ex-President Eduardo Frei Montalva, who is presumed to have died in 1982 of an infection after a hernia operation. Some say he was poisoned by Pinochet's agents.

Related:

Communists ask to exhume Neruda's body

Copyright 2013 Thomson Reuters. Click for restrictions.

Source: http://feeds.nbcnews.com/c/35002/f/653387/s/2a78e6da/l/0Lworldnews0Bnbcnews0N0C0Inews0C20A130C0A40C0A80C176556540Ebody0Eof0Enobel0Elaureate0Epablo0Eneruda0Eexhumed0Ein0Emurder0Eprobe0Dlite/story01.htm

brandon knight brandon knight daylight savings time The Bachelor 2013 Time earthquake today earthquake today

Monday, April 8, 2013

Writing And Reading.error - C And C++ | Dream.In.Code


Example
#{example}
"); ipb.editor_values.get('templates')['togglesource'] = new Template("
??? Cancel Source Edit
"); ipb.editor_values.get('templates')['toolbar'] = new Template(""); ipb.editor_values.get('templates')['button'] = new Template("
  • Icon
  • "); ipb.editor_values.get('templates')['menu_item'] = new Template("
  • #{title}
  • "); ipb.editor_values.get('templates')['togglesource'] = new Template("
    ??? Cancel Source Edit
    "); ipb.editor_values.get('templates')['emoticons_showall'] = new Template(""); ipb.editor_values.get('templates')['emoticon_wrapper'] = new Template("

    Emoticons

    "); // Add smilies into the mix ipb.editor_values.set( 'show_emoticon_link', false ); ipb.editor_values.set( 'bbcodes', $H({"snapback":{"id":"1","title":"Post Snap Back","desc":"This tag displays a little linked image which links back to a post - used when quoting posts from the board. Opens in same window by default.","tag":"snapback","useoption":"0","example":"[snapback]100[/snapback]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"topic":{"id":"5","title":"Topic Link","desc":"This tag provides an easy way to link to a topic","tag":"topic","useoption":"1","example":"[topic=1]Click me![/topic]","switch_option":"0","menu_option_text":"Enter the topic ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"post":{"id":"6","title":"Post Link","desc":"This tag provides an easy way to link to a post.","tag":"post","useoption":"1","example":"[post=1]Click me![/post]","switch_option":"0","menu_option_text":"Enter the Post ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"spoiler":{"id":"7","title":"Spoiler","desc":"Spoiler tag","tag":"spoiler","useoption":"0","example":"[spoiler]Some hidden text[/spoiler]","switch_option":"0","menu_option_text":"","menu_content_text":"Enter the text to be masked","single_tag":"0","optional_option":"0","image":""},"acronym":{"id":"8","title":"Acronym","desc":"Allows you to make an acronym that will display a description when moused over","tag":"acronym","useoption":"1","example":"[acronym='Laugh Out Loud']lol[/acronym]","switch_option":"0","menu_option_text":"Enter the description for this acronym (EG: Laugh Out Loud)","menu_content_text":"Enter the acronym (EG: lol)","single_tag":"0","optional_option":"0","image":""},"hr":{"id":"12","title":"Horizontal Rule","desc":"Adds a horizontal rule to separate text","tag":"hr","useoption":"0","example":"[hr]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"1","optional_option":"0","image":""},"php":{"id":"14","title":"PHP Code","desc":"Allows you to enter PHP code into a formatted/highlighted syntax box","tag":"php","useoption":"0","example":"[php]$variable = true;\n\nprint_r($variable);[/php]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"html":{"id":"15","title":"HTML Code","desc":"Allows you to enter formatted/syntax-highlighted HTML code","tag":"html","useoption":"0","example":"[html]\n \n[/html]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"sql":{"id":"16","title":"SQL Code","desc":"Allows you to enter formatted/syntax-highlighted SQL code","tag":"sql","useoption":"0","example":"[sql]SELECT p.*, t.* FROM posts p LEFT JOIN topics t ON t.tid=p.topic_id WHERE t.tid=7[/sql]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"xml":{"id":"17","title":"XML Code","desc":"Allows you to enter formatted/syntax-highlighted XML code","tag":"xml","useoption":"0","example":"[xml]\n \n Test\n \n[/xml]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"member":{"id":"31","title":"Member","desc":"Given a member name, a link is automatically generated to the member's profile","tag":"member","useoption":"1","example":"[member=skyhawk133] runs this site.","switch_option":"0","menu_option_text":"Input Username of Member","menu_content_text":"","single_tag":"1","optional_option":"0","image":"memberbbcode.png"},"extract":{"id":"33","title":"Extract Blog Entry","desc":"This will allow users to define an extract for an entry. Only this piece of the entry will be displayed on the main blog page and will show up in the RSS feed.","tag":"extract","useoption":"0","example":"[extract]This is an example![/extract]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"blog":{"id":"34","title":"Blog Link","desc":"This tag provides an easy way to link to a blog.","tag":"blog","useoption":"1","example":"[blog=100]Click me![/blog]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"entry":{"id":"35","title":"Blog Entry Link","desc":"This tag provides an easy way to link to a blog entry.","tag":"entry","useoption":"1","example":"[entry=100]Click me![/entry]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"twitter":{"id":"36","title":"Twitter","desc":"A tag to link to a user's twitter account","tag":"twitter","useoption":"0","example":"[twitter]userName[/twitter]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":"twitter.png"},"inline":{"id":"37","title":"Inline Code","desc":"Formats code inline instead of in a seperate code box. ","tag":"inline","useoption":"0","example":"[inline]style=\"font-size: 12px;\"[/inline]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"il":{"id":"38","title":"Abbreviated Inline (IL)","desc":"Abbreviated version of the [inline] tag. ","tag":"il","useoption":"0","example":"[il]Code Here[/il]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":"il2.png"},"code":{"id":"41","title":"Code","desc":"Allows you to enter general code","tag":"code","useoption":"1","example":"[code]$text = 'Some long code here';[/code]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"1","image":""}}) ); ipb.vars['emoticon_url'] = "http://cdn.dreamincode.net/forums/public/style_emoticons/default"; //Search Setup ipb.vars['search_type'] = 'forum'; ipb.vars['search_type_id'] = 15; ipb.vars['search_type_2'] = 'topic'; ipb.vars['search_type_id_2'] = 317822; //]]>

    4 Replies - 60 Views - Last Post: Today, 01:48 PM Rate Topic: -----

    #1 man silence ?Icon User is offline

    Reputation: 0

    • Posts: 11
    • Joined: 31-March 13

    Posted Today, 12:38 PM

    in my program /i want to save employees data /using fstream as file employees.txt
    and reading the data from the file of employees.txt to choosing the number of employees whose salaries are over (12000)
    any one can help me to add this im my prgram.
    I tried to do it in more ways than one, but there are many errors,I do not know what way
    Is there a good way ?
    thanks
    
#include<iostream> #include <vector> #include <fstream>   std::ofstream outfile;  struct employee                   //ahmed.ha.hnd {     char name[20];     float  salary;     int birthday;     char sex [10]; };   int main() { outfile.open("employees.txt");                   employee emp[100];      {         int n;                std::cout << "A program for collecting employee information";         std::cout << std::endl;         std::cout << "And displaying the collected information";         std::cout << std::endl << std::endl;         std::cout << "How many employees:";         std::cin >> n;         std::cout << std::endl;         std::cout << "Enter the following information:"<<std::endl;         std::cout << std::endl;              for(int i=0; i<n; i++)         {             std::cout << "Enter information for employee no: " << i<< std::endl;             std::cout << "=================================" << std::endl;             std::cout<<"Enter the Employee name :" ;std::cin>>emp[i].name;             std::cout<<"Enter the salary :";std::cin>>emp[i].salary;             std::cout<<"Enter the birthday :";std::cin>>emp[i].birthday ;             std::cout<<"Enter the sex :";std::cin>>emp[i].sex;             std::cout<<std::endl;             }           {             employee temp;             for(int i = 0; i < n; i++)             {                 for(int j = i+1; j < n; j++)                 {                     if(emp[i].salary<emp[j].salary)                     {                         temp=emp[i];                         emp[i]=emp[j];                         emp[j]=temp;                     }                 }             }                   std::cout << "Employee entered information:"<< std::endl;                 std::cout << "============================" << std::endl;                 std::cout << "Name  salary birthday   Sex       " << std::endl;               for(i = 0; i < n; i++)             {                         std::cout << emp[i].name                << "\t";                         std::cout << emp[i].salary << "\t";                         std::cout << emp[i].birthday; std::cout << "\t";                         std::cout << emp[i].sex    ;                         std::cout << std::endl;                            }               int highest_salary=0;              int total_salary=0;              for(i = 0; i < n; i++)             {                 if(emp[i].salary > highest_salary)                 {                     highest_salary = emp[i].salary;                 }                 total_salary += emp[i].salary;             }             std::cout<<std::endl;             std::cout << "Total Salary: "   << total_salary <<std::endl;             std::cout << "============"<<std::endl;             std::cout << "Highest Salary: " << highest_salary << std::endl;             std::cout << "=============="<<std::endl;             std::cout<<std::endl;       int number = 0;  for(i = 0; i < n; i++) {     if(emp[i].salary>=15000)  	{         number++; 	} }   std::cout<<"Number of employees who salary more than 15000 :"<<std::endl; std::cout<<"=============================================="<<std::endl; std::cout<<number<<std::endl; std::cout<<std::endl;               float tax=0;                        for(i = 0; i < n; i++) 	{             if(emp[i].salary <= 1999)             {                 tax = (emp[i].salary*5)/100.0;             }             else if (emp[i].salary<=2999)             {                 tax=(emp[i].salary*7.5)/100.0;             }                  else if (emp[i].salary<=3999)             {                 tax=(emp[i].salary*10)/100.0;             }             else  if (emp[i].salary>4000)             {                 tax=(emp[i].salary*15)/100.0;             }               emp[i].salary -= tax; 	}             std::cout<<"Salary after tax :"<<"  Employee Name :   "<<std::endl;             std::cout<<"================ " <<"   ============="<<std::endl;             for(i = 0; i < n; i++)             std::cout <<  emp[i].salary<<"                   "  <<  emp[i].name << std::endl;                                 std::cout<<std::endl;  outfile <<emp[i].name,emp[i].salary,emp[i].birthday,emp[i].sex ; outfile.close();      return 0;  	 }  }  }


    Is This A Good Question/Topic? 0

    Replies To: writing and reading.error

    #2 tlhIn`toq ?Icon User is offline

    Reputation: 4839

    • Posts: 10,230
    • Joined: 02-June 10

    Re: writing and reading.error

    Posted Today, 12:42 PM

    Obviously a continueation of this thread:
    http://www.dreaminco...1&#entry1831457

    Your question is pretty much "can anyone give me the code to do this".
    We're not going to write your homework for you, or give you code for your homework.

    You tried: That's good.
    You got errors: That can be addressed.
    What code did you try and what were the errors?

    Quote

    I tried to do it in more ways than one, but there are many errors,


    Does not help us, to help you. Specifically show us the code you are using and the errors you got.

    #3 man silence ?Icon User is offline

    Reputation: 0

    • Posts: 11
    • Joined: 31-March 13

    Re: writing and reading.error

    Posted Today, 01:05 PM

    Yes, you're right
    This my code
    http://www.dreaminco...1&#entry1831457
    When I finished calculating the number of employees who paid more than 15000
    Now I save data staff and the prgram gave me this problem :

    Now the code works without errors
    But out of this in the file employees.txt:
    ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????


    #4 tlhIn`toq ?Icon User is offline

    Reputation: 4839

    • Posts: 10,230
    • Joined: 02-June 10

    Re: writing and reading.error

    Posted Today, 01:45 PM

    Still the code for your save function.


    #5 macosxnerd101 ?Icon User is online

    Reputation: 8904

    • Posts: 33,005
    • Joined: 27-December 08

    Re: writing and reading.error

    Posted Today, 01:48 PM

    Please avoid duplicate posting.


    Page 1 of 1


    Source: http://www.dreamincode.net/forums/topic/317822-writing-and-readingerror/

    nikki haley stan van gundy navy jet crash virginia beach crash stephen hawking marion barry virginia beach jet crash

    Former NFL player arrested for Dallas robbery

    WFAA

    Posted on April 6, 2013 at 5:10 PM

    Updated today at 6:40 PM

    DALLAS ? A former Baylor Bears football player who also had a brief stint in the NFL is under arrest for aggravated robbery in Dallas.

    Antareis Bryan was booked into the Dallas County Jail early Saturday on $25,000 bond.

    Bryan ? a Carter High School graduate ? was a practice squad player for the Chicago Bears in 2011, and played cornerback in 34 games for Baylor University from 2007 to 2010.

    Source: http://www.wfaa.com/news/local/Former-NFL-player-arrested-for-Dallas-robbery-201781581.html

    ravens Ravens vs Patriots 49ers Vs Falcons Mama Movie flyers epo suits

    HopStop Launches Crowd-Sourced Transit Alerts Through HopStop Live!

    Screen Shot 2013-04-08 at 9.09.45 AMHopStop, the location services app that helps you navigate the wacky world of public transportation, has today unveiled its biggest product launch ever, with the release of HopStop Live! The service is integrated with HopStop’s default iPhone app, as well as having its own standalone app called “Live!” The apps let users crowd-source information in real-time about delays to subways or trains, giving even more clarity to the morning commute. HopStop already accounts for delays that are marked on the MTA’s web site for service disruptions, but that isn’t an all-encompassing view. Many times, trains will be delayed because of police investigations or accidents, and the corresponding delay alert doesn’t appear online for many hours after, or not at all. Still, these delays can really bork up a day, and so HopStop is letting its massive user base start calling out issues for fellow users. Though crowd-sourcing public transit delays has been done before ? most notably by Waze and NextTrain, along with some other mobile apps ? HopStop brings a new level of scale to the recipe. As of today, HopStop has announced that its userbase has surpassed 2 million monthly active users, and the app access data points for 700 transit agencies, 20,000 lines, and 750,000 stops. Here’s what CEO Joe Meyer had to say about it: The real-time public transportation space has attracted so much attention over the past twelve months with a countless number of new transit apps all professing to have the answer to real-time. The problem with the vast majority of these is that as impressive and headline-grabbing as their goals or claims may be ?they all lack the critical ingredient for any crowd-sourced service to be useful ?a big enough crowd of endemic users. Over the past nine years, HopStop has grown to be the biggest independent player in the transit routing market, and today?s launch of HopStop Live! will leverage our large user base and strong commitment to product excellence to define the future of real-time public transportation information. The main goal is that users will build and foster mini-communities around their particular commute, keeping each other in the know about delays and service disruptions in a way that official lines of communication are too slow for. For now, the HopStop Live! service is only available for iPhone, but the company is working on rolling it out to other major platforms in

    Source: http://feedproxy.google.com/~r/Techcrunch/~3/SwE8Dk95U_E/

    dexter dexter ny times paul mccartney Sandy Hook Victims new york times columbine

    Saturday, April 6, 2013

    Chinese bird flu toll rises to 6

    Global Post China killed thousands of birds at Shanghai markets, and shut down all wholesale poultry markets, as the death toll from the H7N9 virus rose to six on April 5th.

    Over 20,000 birds were killed at a live bird-trading zone in Shanghai Friday,wrote CNN, including chickens, ducks, geese and pigeons. Every live poultry market in the city will soon be shut.

    Vendors complained about killing the birds,?wrote the Wall Street Journal,?although the Shanghai Agricultural Commission announced farmers would be given 50 percent of the market price of the birds in exchange for carrying out the cull.

    ?In the past usually you would see chickens dying before any infections occurred in humans, but this time we?ve seen that many species of poultry actually have no apparent problems, so that makes it difficult because you lose this natural warning sign,? said infectious disease expert?David Hui to CBC.

    The bird flu virus death toll continues to rise, with the 5th death announced on Thursday, and the 6th on Friday. The ages of the victims (some who have recovered)?range from 4 to 83.

    A total of 14 have been sickened along China?s Eastern seaboard,?writes CBC,?and it?s suspected the disease is transmitted by live fowl. There?s as yet no evidence that bird flu can spread from person to person.

    The US consulate in China reassured citizens both in China and abroad,?notes the WSJ,?and has not called for any travel restrictions.

    ?At this point the risk for international disease spread is considered low?.?The latest advisory from the World Health Organization as of April 4 is that no travel or trade restrictions with China should be applied based on the current information.?

    Source: http://salon.com.feedsportal.com/c/35105/f/648624/s/2a628c19/l/0L0Ssalon0N0C20A130C0A40C0A50Cchinese0Ibird0Iflu0Itoll0Irises0Ito0I60Ipartner0C/story01.htm

    animal house invincible jesse jackson whitney houston funeral video tyler perry whitney houston r kelly r. kelly

    Could N. Korea hit its neighbors with nukes?

    WASHINGTON (AP) ? North Korea is widely recognized as being years away from perfecting the technology to back up its bold threats of a pre-emptive strike on America. But some nuclear experts say it might have the know-how to fire a nuclear-tipped missile at South Korea and Japan, which host U.S. military bases.

    No one can tell with any certainty how much technological progress North Korea has made, aside from perhaps a few people close to its secretive leadership. And, if true, it is unlikely that Pyongyang would launch such an attack, because the retaliation would be devastating.

    The North's third nuclear test on Feb. 12, which prompted the toughest U.N. Security Council sanctions yet against Pyongyang, is presumed to have advanced its ability to miniaturize a nuclear device. And experts say it's easier to design a nuclear warhead that works on a shorter-range missile than one for an intercontinental missile that could target the U.S.

    The assessment of David Albright at the Institute for Science and International Security think-tank is that North Korea has the capability to mount a warhead on its Nodong missile, which has a range of 800 miles (1,280 kilometers) and could hit in South Korea and most of Japan. But he cautioned in his analysis, published after the latest nuclear test, that it is an uncertain estimate, and the warhead's reliability remains unclear.

    He contends that the experience of Pakistan could serve as precedent. Pakistan bought the Nodong from North Korea after its first flight test in 1993, then adapted and produced it for its own use. Pakistan, which conducted its first nuclear test in 1998, is said to have taken less than 10 years to miniaturize a warhead before that test, Albright said.

    North Korea also obtained technology from the trafficking network of A.Q. Khan, a disgraced pioneer of Pakistan's nuclear program, acquiring centrifuges for enriching uranium. According to the Congressional Research Service, Khan may also have supplied a Chinese-origin nuclear weapon design he provided to Libya and Iran, which could have helped the North in developing a warhead for a ballistic missile.

    But Siegfried Hecker at Stanford University's Center for International Security and Cooperation, who has visited North Korea seven times and been granted unusual access to its nuclear facilities, is skeptical the North has advanced that far in miniaturization of a nuclear device.

    "Nobody outside of a small elite in North Korea knows ? and even they don't know for sure," he said in an e-mailed response to questions from The Associated Press. "I agree that we cannot rule it out for one of their shorter-range missiles, but we simply don't know."

    "Thanks to A.Q. Khan, they almost certainly have designs for such a device that could fit on some of their short- or medium-range missiles," said Hecker, who last visited the North in November 2010. "But it is a long way from having a design and having confidence that you can put a warhead on a missile and have it survive the thermal and mechanical stresses during launch and along its entire trajectory."

    The differing opinions underscore a fundamental problem in assessing a country as isolated as North Korea, particularly its weapons programs: solid proof is very hard to come by.

    For example, the international community remains largely in the dark about the latest underground nuclear test. Although it caused a magnitude 5.1 tremor, no gases escaped and experts say there was no way to evaluate whether a plutonium or uranium device was detonated. That information would help reveal whether North Korea has managed to produce highly enriched uranium, giving it a new source of fissile material, and help determine the type and sophistication of the North's warhead design.

    The guessing game about the North's nuclear weapons program dates back decades. Albright says that in the early 1990s, the CIA estimated that North Korea had a "first-generation" design for a plutonium device that was likely to be deployed on the Nodong missile ? although it's not clear what information that estimate was based on.

    "Given that twenty years has passed since the deployment of the Nodong, an assessment that North Korea successfully developed a warhead able to be delivered by that missile is reasonable," Albright wrote.

    According to Nick Hansen, a retired intelligence expert who closely monitors developments in the North's weapons programs, the Nodong missile was first flight-tested in 1993. Pakistan claims to have re-engineered the missile and successfully tested it, although doubts apparently persist about its reliability.

    Whether North Korea has also figured out how to wed the missile with a nuclear warhead has major ramifications not just for South Korea and Japan, but for the U.S. itself, which counts those nations as its principal allies in Asia and retains 80,000 troops in the two countries.

    U.S. intelligence appears to have vacillated in its assessments of North Korea's capabilities.

    In April 2005, Lowell Jacoby, director of the Defense Intelligence Agency, told the Senate Armed Services Committee that North Korea had the capability to arm a missile with a nuclear device. Pentagon officials, however, later backtracked.

    According to the Congressional Research Service, a report from the same intelligence agency to Congress in August 2007 said that "North Korea has short and medium-range missiles that could be fitted with nuclear weapons, but we do not know whether it has in fact done so."

    In an interview Friday in Germany, Gen. Martin Dempsey, chairman of the Joint Chiefs of Staff, said the U.S. does not know whether North Korea has "weaponized" its nuclear capability.

    Still, Washington is taking North Korea's nuclear threats seriously.

    The bellicose rhetoric follows not just the nuclear test in February, but the launch in December of a long-range North Korean rocket that could potentially hit the continental U.S. According to South Korean officials, North Korea has moved at least one missile with "considerable range" to its east coast ? possibly the untested Musudan missile, believed to have a range of 1,800 miles (3,000 kilometers).

    This week, the U.S. said two of the Navy's missile-defense ships were positioned closer to the Korean peninsula, and a land-based system is being deployed for the Pacific territory of Guam. The Pentagon last month announced longer-term plans to beef up its U.S.-based missile defenses.

    South Korea is separated from North Korea and its huge standing army by a heavily militarized frontier, and the countries remain in an official state of war, as the Korean War ended in 1953 without a peace treaty. Even without nuclear arms, the North positions enough artillery within range of Seoul to devastate large parts of the capital before the much-better-equipped U.S. and South Korea could fully respond.

    And Japan has been starkly aware of the threat since North Korea's 1998 test of the medium-range Taepodong missile that overflew its territory.

    Yet in the latest standoff, much of the international attention has been on the North's potential threat to the U.S., a more distant prospect than its capabilities to strike its own neighbors. Experts say the North could hit South Korea with chemical weapons, and might also be able to use a Scud missile to carry a nuclear warhead.

    Darryl Kimball, executive director of the Arms Control Association, acknowledges the North might be able to put a warhead on a Nodong missile, but he sees it as unlikely. He says the North's nuclear threats are less worthy of attention than the prospects of a miscalculation leading to a conventional war.

    "North Korea understands that a serious attack on South Korea or other U.S. interests is going to be met with overwhelming force," he said. "It would be near suicidal for the regime."

    ____

    Associated Press writers Foster Klug in Seoul, South Korea, and Robert Burns in Stuttgart, Germany, contributed to this report.

    Source: http://news.yahoo.com/could-nkorea-hit-neighbors-nukes-074051848--politics.html

    flower delivery e cards kate upton sports illustrated outback chaka khan taylor swift safe and sound delilah

    Obama Budget Vs. March Jobs Report: Timing is No Coincidence

    Well, that certainly answers the "Why now?" question.

    President Obama?s budget is not coming out until Wednesday, but already we have some details of what he?ll be proposing ? including money-saving changes in Social Security and Medicare that are winning him praise from at least one tough critic.

    That news, so unusual in a Democratic president?s official spending blueprint, came a few hours before the Bureau of Labor Statistics announced its downer of a March jobs report. The economy added only 88,000 jobs, less than half what some had predicted.

    Since the president is notified of the jobs numbers the day before they are released, the White House knew it was going to face bad news Friday morning that would dominate media chatter through the weekend if it was out there alone. The budget proposal provides stiff competition on the fiscal-news front and could turn out to be far more significant to the fate of the nation than the March jobs report.

    Republicans have been looking for signs that they could trust Obama on entitlements. His plans to trim Social Security benefits and raise Medicare charges for wealthier recipients are not new ? they were on the table during his negotiations with House Speaker John Boehner in 2011 and they?ve been mentioned in brief on the White House website for weeks ? but offering specifics in an official budget document takes his commitment to another level.

    The ?ask? of Republicans is that they agree to more spending on infrastructure (likely to be promoted by White House senior adviser Dan Pfeiffer as a way to create both short-term and long-term jobs in appearances Sunday on Fox and ABC) and new taxes on the wealthy, corporations, and cigarettes. Both parts of that equation are stretches for Republicans, since they are focused on spending cuts and almost all of them have signed a pledge to never, ever raise taxes.

    But Obama?s budget is also a stretch. Tellingly, the first reaction to his proposals came from the left. "You can't call yourself a Democrat and support Social Security benefit cuts,? Stephanie Taylor, cofounder of the Progressive Change Campaign Committee, said in a statement. Anna Galland, executive director of MoveOn.org, called the plan ?unconscionable? and ?outrageous.? Both groups threatened primary challenges to any congressional Democrat who supported Obama?s ideas.

    Still, many Democrats accept that we need to curb the growth of entitlement spending and would be willing to accept Obama?s ideas if they were matched by Republican agreement to raise taxes ? the ?balanced? approach which Obama promoted during his campaign and which polls show is supported by a majority of the public. Furthermore, Obama?s plan would reportedly include protections for low-income and very old seniors. So the main effect of the liberal dismay likely will be to make Obama seem like a reasonable centrist unafraid to confront his base.

    Boehner?s initial reaction to the budget details was harsh. He said Obama?s offers ?never lived up to his rhetoric? when the pair were negotiating in 2011, and said the ?modest entitlement savings? the president is now suggesting should not be ?held hostage for more tax hikes.? For now, that gives Senate Republicans responsibility to lead the movement toward a long-term debt-reduction compromise.

    A number of them are displaying interest in a deal, even one that would raise some taxes. And Boehner has shown he will sometimes let the House vote on packages that have won broad Senate support. So there is at least a chance that Obama?s blueprint, rather than being dead on arrival, will lead to talks and, if we are lucky, an achievement that gives both parties reason to brag.

    Source: http://news.yahoo.com/obama-budget-vs-march-jobs-report-timing-no-154015059--politics.html

    victoria azarenka Royal Rumble 2013 senior bowl norovirus Coachella 2013 Eclampsia Kendrick Lamar

    Anthony scores 41, Knicks win 11th straight

    NEW YORK (AP) ? Carmelo Anthony scored 41 points, tying a franchise record with this third straight 40-point game, and the New York Knicks beat the Milwaukee Bucks 101-83 on Friday night.

    Anthony, who had 50 points and 40 in his previous two games, equaled Bernard King's 1984-85 mark.

    J.R. Smith added 30 points for the Knicks, who used a huge third quarter to turn around the game after a lackluster first half on the night they honored their 1972-73 NBA championship team.

    Brandon Jennings scored 25 points for the Bucks.

    Source: http://news.yahoo.com/anthony-scores-41-knicks-win-11th-straight-021453083--spt.html

    Romney Bosses Day 2012 Arlen Specter Winsor McCay Amanda Todd washington nationals Gary Collins