Wednesday, April 24, 2013

PFT: C. Long restructures deal with Rams

Matt FlynnAP

Quarterback Matt Flynn has already been guaranteed something with the Oakland Raiders that he never received while with the Seattle Seahawks last year.

The right to be named the team?s starting quarterback.

Even though Flynn likely thought he?d win the starting job last year with the Seahawks after signing a three-year deal with the team last offseason, head coach Pete Carroll never said that would be the case.

Carroll said Flynn would have to compete with Tarvaris Jackson, and later on rookie Russell Wilson, for the starting job and that he wasn?t going to be handed the job. When the offseason work and training camp began, it was Jackson that was taking the first-team snaps in practice with the team. Flynn would earn the starts for Seattle in their first two preseason games before Wilson supplanted Flynn as the starter for the regular season.

But Flynn already has a leg up in Oakland. According to Vic Tafur of the San Francisco Chronicle, Raiders general manager Reggie McKenzie has named Flynn the starting quarterback as offseason workouts are set to begin. McKenzie said Flynn would have to compete with Terrelle Pryor and any quarterback the Raiders may select in the draft this week but it?s more that he was given in Seattle.

McKenzie was with Flynn in Green Bay for the only two starts he?s made in his NFL career and feels he can be a solid quarterback in the league.

?Two things that I feel are important and that?s presence, as far as leadership and knowing how to move a team down the field, and knowing how to do it,? McKenzie said.

?He has all the intangibles and I think he can play the position. He can throw the ball. I think he?s going to be a solid quarterback. Now how good can he be? We?ll figure that out, but I think he?s got a chance to be a good, solid quarterback.?

Source: http://profootballtalk.nbcsports.com/2013/04/23/chris-long-restructures-deal-with-rams/related/

Brigitte Nielsen Cricinfo Geno Smith ny giants brandon marshall ryder cup Kate Middleton Bottomless

Tuesday, April 23, 2013

Chris Andersen Dunk Prompts Amazing Call By Kevin Harlan

Source: http://www.thehollywoodgossip.com/2013/04/chris-andersen-dunk-prompts-amazing-call-by-kevin-harlan/

eagle cam trayvon martin case affordable care act the line us soccer bobby brown arrested the happening

Coby MID7065


Coby's latest crop of Android tablets?offer low-end performance at rock-bottom prices. The big news here is Google certification?a first for the company?which means the newest models have access to the Google Play app store. The MID7065 ($119.99 list) is the smallest and least expensive model in the lineup. You get the same microSD card slot, mini HDMI out, and relatively clean Android 4.0 "Ice Cream Sandwich" build found on the larger MID1065. But the MID7065 uses an inferior lower-resolution display and features a cheap plastic build. You shouldn't expect much for this price, and if you can spend a little more, you can do much better.?

Editors' Note: The Coby MID7065 is virtually identical to the MID8065?and MID1065?except for screen size and price, so we're sharing a lot of material between these three reviews. That said, we're testing each device separately?and comparing it with the competition in its size/price range.

Design and Features
A generic-looking 7-inch tablet wrapped in unassuming black plastic, the MID7065 measures?7.8 by 4.8 by 0.45 inches (HWD), weighs 11.84 ounces, and is comfortable to hold in one hand. Along the right edge are the power plug connector, 3.5mm headphone jack, micro USB port (for syncing, not charging), and a mini HDMI port. There are Power and Volume buttons along the top edge, with a microSD card slot on the bottom.

The IPS LCD found on the larger MID1065 has been nixed in favor of a far inferior panel. The 1,024-by-600-pixel non-IPS LCD on the MID7065 isn't particularly sharp, with a narrow viewing angle, and low maximum brightness. Colors also run cooler giving white backgrounds a bluish hue, and I noticed some blooming along the tablets edges, which washes out black backgrounds.

The MID7065 is a Wi-Fi only tablet that connects to 802.11b/g/n networks on the 2.4GHz frequency only and Bluetooth 2.1 is on board. The MID7065 comes in a 4GB model for $119.99 or an 8GB model for $129.99, and our 32 and 64GB SanDisk cards worked fine in the microSD card slot.

Android and Performance
The tablet is powered by the same dual-core 1.2GHz Amlogic Cortex A9 processor with 1GB RAM and a MALI 400 GPU found in the larger MID1065. It's not the fastest setup, but it bested the Samsung Galaxy Tab 2 (7.0) with its dual-core 1GHz TI OMAP4430 chip in all of our benchmarks and matches the performance of the 7-inch Amazon Kindle Fire HD with its dual-core 1.2GHz TI OMAP4460 processor. Fortunately, Coby uses a different touch screen digitizer that doesn't feel quite as imprecise as the one found on the MID1065, which leads to almost-constant choppiness in navigation. Performance is similar between the 10- and the 7-inch tablets?you'll still notice occasional lag here, but things are a bit smoother. There is still a delay between when the Power button is pressed and when the display wakes up.

Android 4.0 "Ice Cream Sandwich" is now two versions behind the latest 4.2 "Jelly Bean" build, but Coby has left it unskinned. Android newcomers, however, might be better served by the more polished, easy-to-use custom Android skins like Samsung's TouchWiz or the heavily modified Android featured on Amazon's Kindle Fire tablets. If you're a fan of pure Android, however, you'd be better served by the Editors' Choice Google Nexus 7, but you'll need to pony up $199.

Previous Coby tablets only offered second-rate app stores like GetJar, but the MID7065 hooks into the Google Play app store which has more than 800,000 titles, and includes excellent integrated Google apps like Gmail and Maps.?

The tablet can handle Xvid, DivX, MPEG4, H.264, and AVI videos at up to 1080p resolution. For audio, you get MP3, AAC, FLAC, OGG, WAV, and WMA support. Screen mirroring worked fine using a mini HDMI cable, and the tablet was able to output video at 720p or 1080p resolution. There is no rear-facing camera, and the 0.3-megapixel front-facing camera is fine for the occasional Skype call, but not much more.

In our battery rundown test, which loops a video with screen brightness set to max and Wi-Fi on, the MID7065 clocked a positively anemic 2 hours, 45 minutes. The same-size Kindle Fire HD notched 7 hours, while the Nexus 7 lasted 10 hours, 30 minutes in the same test.

Conclusions
With Google certification, and access to the official app store, Coby's latest line of MID tablets is a notable step forward for the company. The MID7065 is the cheapest of the bunch, and for the seriously budget restrained, it's about as low as you can go while still keeping access to Google Play. That said, the refreshed Amazon Kindle Fire?is also a good deal at $159.99, offering similar performance with a much easier to navigate operating system and content ecosystem. The Kindle Fire offers a better display, more battery life, and better build quality. And if you're in it for the untainted Android, spend a little more for the Nexus 7, which is our Editors' Choice for small-screen tablets with excellent performance for an affordable price.

Source: http://feedproxy.google.com/~r/ziffdavis/pcmag/~3/Wx_wZWuv7N4/0,2817,2417887,00.asp

Frys tryptophan BestBuy.com Kohls Black Friday www.walmart.com Macho Camacho Rise of the Guardians

Monday, April 22, 2013

Quebec at Cannes: Add S?bastien Pilote's Le d?mant?lement to the ...

?

Qeubec director S?bastien Pilote is no stranger to themes of family relationships and financial upheaval.

Photograph by: John Kenney , The Gazette

This was originally posted to the Cine Files blog.

Chlo? Robichaud won't be the only Quebec director at Cannes this year.

S?bastien Pilote's Le d?mant?lement will have its world premiere as part of La semaine de la critique, one of two sections (along with the Quinzaine des r?alisateurs) that run in parallel to Cannes's official selection. The film stars Gabriel Arcand as a father who sells his farm in order to help out his daughter, who lives in the big city and is in danger of losing her house. Pilote is no stranger to themes of family relationships and financial upheaval. His acclaimed 2011 film Le vendeur told the story of a small-town car salesman, his adult daughter and grandson while the town pulp and paper mill shuts down.

Le d?mant?lement co-star Sophie Desmarais has the lead role in Robichaud's Sarah pr?f?re la course, which will be screening in Cannes's Un certain regard section. Other members of the cast include Gilles Renaud, Lucie Laurier, Johanne-Marie Tremblay and Dominique Leduc. The film is produced by Bernadette Payeur and Marc Daigle for ACPAV Inc.

tdunlevy@montrealgazette.com

Twitter: @tchadunlevy

? Copyright (c) The Montreal Gazette

?

?

?

?

?

?

Source: http://www.montrealgazette.com/entertainment/movie-guide/Quebec+Cannes+S%C3%A9bastien+Pilote+d%C3%A9mant%C3%A8lement/8276920/story.html

Sally Ride Ichiro minka kelly James Holmes court Rupert Sanders bachelorette penn state

Europe?s Carbon Market Is Sputtering as Prices Dive

[unable to retrieve full-text content]The low price of carbon credits means the market is not doing its job: pushing polluters to reduce carbon emissions, which most climate scientists believe contribute to global warming.
    


Source: http://www.nytimes.com/2013/04/22/business/energy-environment/europes-carbon-market-is-sputtering-as-prices-dive.html?partner=rss&emc=rss

Sim City Manchester United Alvin Lee mila kunis hugo chavez nicki minaj jamie lynn spears

Bombing suspect under heavy guard

BOSTON (AP) ? Boston Marathon bombing suspect Dzhokhar Tsarnaev lay hospitalized in serious condition under heavy guard Saturday ? apparently in no shape to be interrogated ? as investigators tried to establish the motive for the deadly attack and the scope of the plot.

People across the Boston area breathed easier the morning after Tsarnaev, 19, was pulled, wounded and bloody, from a tarp-covered boat in a Watertown backyard. The capture came at the end of a tense day that began with his 26-year-old brother, Tamerlan, dying in a gunbattle with police.

There was no immediate word on when Tsarnaev might be charged and what those charges would be. The twin bombings killed three people and wounded more than 180.

The most serious charge available to federal prosecutors would be the use of a weapon of mass destruction to kill people, which carries a possible death sentence. Massachusetts does not have the death penalty.

President Barack Obama said there are many unanswered questions about the bombing, including whether the Tsarnaev brothers ? ethnic Chechens from southern Russia who had been in the U.S. for about a decade and lived in the Boston area ? had help from others. The president urged people not to rush judgment about their motivations.

U.S. officials said an elite interrogation team would question the Massachusetts college student without reading him his Miranda rights, something that is allowed on a limited basis when the public may be in immediate danger, such as instances in which bombs are planted and ready to go off.

The American Civil Liberties Union expressed concern about that possibility. Executive Director Anthony Romero said the legal exception applies only when there is a continued threat to public safety and is "not an open-ended exception" to the Miranda rule, which guarantees the right to remain silent and the right to an attorney.

The federal public defender's office in Massachusetts said it has agreed to represent Tsarnaev once he is charged. Miriam Conrad, public defender for Massachusetts, said he should have a lawyer appointed as soon as possible because there are "serious issues regarding possible interrogation."

Massachusetts Gov. Deval Patrick said Saturday afternoon that Tsarnaev was in serious but stable condition and was probably unable to communicate. Tsarnaev was at Boston's Beth Israel Deaconess Medical Center, where 11 victims of the bombing were still being treated.

"I, and I think all of the law enforcement officials, are hoping for a host of reasons the suspect survives," the governor said after a ceremony at Fenway Park to honor the victims and survivors of the attack. "We have a million questions, and those questions need to be answered."

The all-day manhunt Friday brought the Boston area to a near standstill and put people on edge across the metropolitan area.

The break came around nightfall when a homeowner in Watertown saw blood on his boat, pulled back the tarp and saw a bloody Dzhokhar Tsarnaev hiding inside, police said. After an exchange of gunfire, he was seized and taken away in an ambulance.

Raucous celebrations erupted in and around Boston, with chants of "USA! USA!" Residents flooded the streets in relief four days after the two pressure-cooker bombs packed with nails and other shrapnel went off.

Michael Spellman said he bought tickets to Saturday's Red Sox game at Fenway Park to help send a message to the bombers.

"They're not going to stop us from doing things we love to do," he said, sitting a few rows behind home plate. "We're not going to live in fear."

During the long night of violence leading up to the capture, the Tsarnaev brothers killed an MIT police officer, severely wounded another lawman and took part in a furious shootout and car chase in which they hurled explosives at police from a large homemade arsenal, authorities said.

"We're in a gunfight, a serious gunfight. Rounds are going and then all of the sudden they see something being thrown at them and there's a huge explosion," Watertown Police Chief Edward Deveau said Saturday of the melee.

The chief said one of the explosives was the same type used during the Boston Marathon attack, and authorities later recovered a pressure cooker lid that had embedded in a car down the street. He said the suspects also tossed two grenades before Tamerlan ran out of ammunition and police tackled him.

But while handcuffing him, officers had to dive out of the way as Dzhokhar drove the carjacked Mercedes at them, Deveau said. The sport utility vehicle dragged Tamerlan's body down the block, he said. Police initially tracked the escaped suspect by a blood trail he left behind a house after abandoning the Mercedes, negotiating his surrender hours later after an area resident saw blood and found the suspect huddled in his boat.

Chechnya, where the Tsarnaev family has roots, has been the scene of two wars between Russian forces and separatists since 1994. That spawned an Islamic insurgency that has carried out deadly bombings in Russia and the region, although not in the West.

Investigators have not offered a motive for the Boston attack. But in interviews with officials and those who knew the Tsarnaevs, a picture has emerged of the older one as someone embittered toward the U.S., increasingly vehement in his Muslim faith and influential over his younger brother.

The Russian FSB intelligence service told the FBI in 2011 about information that Tamerlan Tsarnaev was a follower of radical Islam, two law enforcement officials said Saturday.

According to an FBI news release, a foreign government said that Tamerlan Tsarnaev appeared to be strong believer and that he had changed drastically since 2010 as he prepared to leave the U.S. for travel to the Russian region to join unspecified underground groups.

The FBI did not name the foreign government, but the two officials said it was Russia. The officials spoke on condition of anonymity because they were not authorized to talk about the matter publicly.

The FBI said that in response, it interviewed Tamerlan Tsarnaev and relatives, and did not find any domestic or foreign terrorism activity. The bureau said it looked into such things as his telephone and online activity, his travels and his associations with others.

An uncle of the Tsarnaev brothers said he had a falling-out with Tamerlan over the man's increased commitment to Islam.

Ruslan Tsarni of Montgomery Village, Md., said Tamerlan told him in a 2009 phone conversation that he had chosen "God's business" over work or school. Tsarni said he then contacted a family friend who told him Tsarnaev had been influenced by a recent convert to Islam.

Tsarni said his relationship with his nephew basically ended after that call.

As for Dzhokhar Tsarnaev, "he's been absolutely wasted by his older brother. I mean, he used him. He used him for whatever he's done," Tsarni said.

Albrecht Ammon, a downstairs-apartment neighbor of Tamerlan Tsarnaev in Cambridge, said in an interview that the older brother had strong political views about the United States. Ammon quoted Tsarnaev as saying that the U.S. uses the Bible as "an excuse for invading other countries."

Tamerlan Tsarnaev studied accounting as a part-time student at Bunker Hill Community College in Boston for three semesters from 2006 to 2008, the school said. He was married with a young daughter. Dzhokhar Tsarnaev was a student at the University of Massachusetts Dartmouth.

As of Saturday, more than 50 victims of the bombing remained hospitalized, three in critical condition.

___

Associated Press writers Denise Lavoie and Steve Peoples in Boston; Mike Hill in Watertown, Mass.; Colleen Long in New York; Pete Yost in Washington; Eric Tucker in Montgomery Village, Md.; and AP Sports Writer Jimmy Golen in Boston contributed to this report.

Source: http://news.yahoo.com/boston-bomb-suspect-hospitalized-under-heavy-guard-181337320.html

new jersey devils torn acl derrick rose injury st louis news correspondents dinner i am legend san antonio spurs

Random Numbers Help - 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'] = 319084; //]]>

    5 Replies - 50 Views - Last Post: 48 minutes ago Rate Topic: -----

    #1 makeitloud ?Icon User is online

    Reputation: 0

    • Posts: 50
    • Joined: 08-April 13

    Posted Today, 12:57 PM

    hello guys, i have a question. in this test program im making it does so if you get a problem wrong it re does the question, but it generates the same number, is their a way to generate a different number?
    
#include <iostream> #include <string> #include <ctime> using namespace std;  int main() { 	srand (time(NULL));  	int grade, operands[2], userAnswer;  	string quiz, name;  	char answer, again;  	cout << "What is your name?\n"; 	cin >> name; 	cout << "Were going to take a quiz, are you ready? <y/n>\n"; 	cin >> answer; 	if(answer == 'y' || answer == 'Y') 	{ 	cout << "Ok lets get started " << name << endl; 		cout << "First lets do a math problem.\n"; 		operands[0] = rand()%50; 		operands[1] = rand()%20; 		 		do 		{ 		cout << "What is " << operands[0] << " + " << operands[1] << " ?\n"; 		cin >> userAnswer; 		 	if(userAnswer==operands[0] + operands[1]) 	{ 		cout << "You got the Problem right, off to the next question\n"; 	} 	else 		{ 		cout << "Problem incorrect\n"; 		cout << "Would you like to try again?\n"; 		cin >> again; 		} 		}while(again == 'y' || again == 'Y'); 		 	} 	 	 	  	system("pause"); 	return 0; }


    Is This A Good Question/Topic? 0

    Replies To: random numbers help

    #2 CTphpnwb ?Icon User is offline

    Reputation: 2473

    • Posts: 8,474
    • Joined: 08-August 08

    Re: random numbers help

    Posted Today, 01:12 PM

    Have you tried putting your "if" statement inside the do ... while loop instead of enclosing it?


    #3 makeitloud ?Icon User is online

    Reputation: 0

    • Posts: 50
    • Joined: 08-April 13

    Re: random numbers help

    Posted Today, 01:15 PM

    i dont understand what you are saying.


    #4 CTphpnwb ?Icon User is offline

    Reputation: 2473

    • Posts: 8,474
    • Joined: 08-August 08

    Re: random numbers help

    Posted Today, 01:23 PM

    Think about it.


    #5 makeitloud ?Icon User is online

    Reputation: 0

    • Posts: 50
    • Joined: 08-April 13

    Re: random numbers help

    Posted Today, 05:32 PM

    
do 	{ 	if(answer == 'y' || answer == 'Y') 	{ 	cout << "Ok lets get started " << name << endl; 		cout << "First lets do a math problem.\n"; 		operands[0] = rand()%50; 		operands[1] = rand()%20; 		/*******************first question********************************/ 		 		 		cout << "What is " << operands[0] << " + " << operands[1] << " ?\n"; 		cin >> userAnswer; 		 	if(userAnswer==operands[0] + operands[1]) 	{ 		cout << "You got the Problem right, off to the next question\n"; 		system("cls"); 		 	} 	else 		{ 		cout << "Problem incorrect\n"; 		cout << "Would you like to try again?\n"; 		cin >> again; 		} 		}while(again == 'y' || again == 'Y');

    was this what you were talking about

    also on

    
char again;   

    im getting a run time error on it saying it is no initialized and i cant find the reason behind it. if you no anything about that. thank you

    #6 #define ?Icon User is online

    Reputation: 936

    • Posts: 3,268
    • Joined: 19-February 09

    Re: random numbers help

    Posted 48 minutes ago

    You could have a function for the math problem, and another to check whether to go again.


    Page 1 of 1


    Source: http://www.dreamincode.net/forums/topic/319084-random-numbers-help/

    noaa Jessica Ridgeway ipad mini Kevin Krim Autumn Pasquale ann coulter minecraft