Programowanie w języku C/C++

C++ exercises

  • 2016-04-13 01:31
  • 2 komentarze
  • 703 odsłony
  • Oceń ten tekst jako pierwszy
Exercise T1
Write a program that asks the user to type in numbers. After each entry, the program should report the cumulative sum of the entries to date. The program should terminate when the user enters 0. For example, it can look like this:
Enter a number
The sum of numbers: 5
Enter a number
The sum of numbers: 11
Enter a number
The sum of numbers: 13
Enter a number
Press <RETURN> to close the console

Exercise T2
Write a program that requests the user to enter two integers. The program should then calculate and report the sum of all the integers between and including the two integers. At this point, assume that the smaller integer is entered first. For example, if the user enters 2 and 9, the program should report that the sum of all the integers from 2 through 9 is 44.

Exercise P1

Write a program that asks the user to enter two integers to be stored in the variables a and b respectively. Declare two pointers ptrA and ptrB. Let ptrA point to a and ptrB point to b. Show the values of a and b using pointers ptrA and ptrB.

Exercise G1
Create a Qt program that draws something like this on the screen:[...]download/Pong-1920x1200-31.jpg

2 komentarze

mali123456 2016-09-14 08:36

<p>A signature Michael Kors Stores & Online 1990s sitcom is Coach Outlet Stores coming back for a new Michael Kors Factory Outlet chapter. Michael Kors Outlet NBC has given series order to Coach, with original star Craig T. Nelson on Coach Factory Outlet Online board. Making Coach Outlet Online the normal jokey-jokes about everything that Coach Factory Outlet lead up to the accident last Coach Outlet night feels like it would be in poor taste, but we know that both Tamra and Vicki survived and have fully recovered from Coach Outlet their injuries, so let’s tread lightly in that direction, or, at the Coach Outlet very least, Sac Chanel poke a little fun at Meghan, who would Coach turn out to be Michael Kors the episode’s unlikely villain.View the basic Official Michael Kors Handbags COH stock chart on Coach Factory Outlet Yahoo Coach Factory Outlet Finance. Change michael kors outlet online the date range, chart type and Coach Outlet Store compare Coach, Inc. Common Stock Coach Outlet against other companies.Performance 2D Louis Vuitton Universe. Like the Bus, Chi flat iron the Coach is Michael Kors Outlet Online one of the heaviest Valentin Outlet vehicles in the Coach Outlet Online games. It is Michael Kors Outlet reasonably fast for its size, and Coach Factory Outlet has decent Michael Kors Outlet Online brakes.A Biography of Coach Outlet Fashion Designer. Learn how Michael Kors got started in the Fashion Coach Outlet Online Store industry. Apply to 52 Michael Kors Outlet website Fashion Designer jobs in United States on LinkedIn. Sign-up Michael Kors today, leverage Coach Outlet your professional Michael Kors Outlet Wallet network, and get hired.<br>

<p>coach factory outlet michael kors outlet christian louboutin outlet north face outlet coach factory outlet hermes birkin outlet michael kors outlet pascher hermes coach outlet coach factory online ray ban 90% off sale uk ralph lauren outlet cheap oakley sunglasses cheap ray ban uk michael kors outlet coach outlet online coach factory outlet ray ban outlet coach outlet stores true religion outlet michael kors outlet model de sac chanel sac blanc marc jacobs outlet coach factory outlet coach factory outlet
When we released our last Ultimate Bag Guide, many of you asked us to
give the same treatment to the iconic Chanel Classic Flap Bag, and we
thought it was an excellent suggestion. This month marks the
revolutionary shoulder bag¡¯s 60th anniversary, and somehow, it¡¯s even
more popular now than it was in 1955.<br>

<p>valentino shoes ray-ban sunglasses ray ban outlet oakley sunglasses ray ban sunglasses chanel porte monnaie valentino rockstud shoes valentino shoes ray ban sunglasses cheap oakley outlet oakley outlet coach outlet oakley sunglasses valentino outlet ray ban sunglasses oakley outlet oakley sunglasses cheap ray ban outlet oakley sunglasses oakley outlet valentino rockstud sac chanel,sac a main ray ban outlet ralph lauren outlet cheap oakley sunglasses cheap oakley outlet christian louboutin oakley sunglasses outlet sac chanel ray ban sunglasses toms shoes coach factory online oakley sunglasses ray ban outlet christian louboutin shoes michael kors outlet valentino shoes oakley sunglasses ray ban outlet true religion outlet coach factory ray ban outlet michael kors outlet sac longchamp michael kors outlet online abercrombie and fitch coach factory outlet online ray ban outlet online coach outlet valentino shoes christian louboutin shoes coach factory outlet store coach outlet michael kors outlet online michael kors outlet online coach outlet coach outlet True Religion michael kors outlet oakley vault sunglasses True Religion Outlet<br>

<p>Valentino Shoes ,Ray ban Outlet ,Giuseppe Zanotti ,Ray ban Sunglasses ,Oakley Sunglasses ,Oakley Sunglasses ,Sac Chanel,sac a main ,sac Louis Vuitton ,Valentino Shoes Outlet ,True Religion Outlet | cheap oakley sunglasses , michael kors outlet online , coach outlet , cialis for sale!

ninestab123 2016-08-18 07:46

<P>But instyler these vans shoes kinds nike free run of p90x3 debates swarovski jewelry over replica rolex local asics running shoes policies ugg boots are jordan 3 why michael kors canada Mainers moncler outlet like canada goose Ms. air jordan retro Gould nike outlet who considers north face jackets herself nike free a doudoune canada goose Democrat, sac vanessa bruno but christian louboutin has coach outlet online voted air max for moncler outlet US michael kors outlet Sens. hogan sito ufficiale Olympia air force Snowe, hollister a links of london uk Republican, sac louis vuitton and louis vuitton uk Angus pandora jewelry King, nike air max 2015 an air max independent lancelmichael kors handbags clearance remain ugg boots uk relatively chanel handbags moderate beats headphones and ray ban outlet demand christian louboutin shoes moderation nike roshe run uk of uggs outlet their guess pas cher political gucci representatives.</P>
<P>“When longchamp you louis vuitton outlet online live longchamp in ugg uk a vans small ralph lauren outlet town, fake oakleys you prada outlet have gucci belts to louboutin see jordan 12 your michael kors outlet neighbors vanessa bruno pas cher every ugg boots day. oakley sunglasses You’ve burberry sale got cheap gucci to oakley sunglasses rub ugg boots elbows michael kors with north face pas cher them; replica watches your cheap oakley sunglasses kids longchamp bags are louboutin in nike blazer pas cher school polo ralph lauren together,” abercrombie and fitch uk she mulberry says. oakley sunglasses “It’s polo ralph lauren uk not jimmy choo that sac louis vuitton pas cher you hermes bags can’t nike free run disagree, nike air max but true religion jeans you ray ban sunglasses can’t ray ban uk be cheap uggs mean nike huaraches about scarpe hogan it. burberry You’ve discount oakley sunglasses got oakley to nike factory outlet maintain rolex watches respect.”</P>
<P>MAINERS’ coach bags BIPARTISAN canada goose outlet APPROACH polo ralph lauren IN sac michael kors WASHINGTON</P>
<P>Sen. thomas sabo uk Susan reebok shoes Collins nike tn of michael kors outlet Maine cheap nfl jerseysuggs a karen millen Republican gucci outlet considered polo ralph lauren pas cher by wedding dress the coach outlet Lugar longchamp outlet Center, canada goose jackets a converse shoes bipartisan pandora charms policy oakley sunglasses cheap think louis vuitton outlet online tank, louis vuitton canada to coach outlet store online be longchamp handbags the wedding dresses most louis vuitton outlet bipartisan coach outlet politician louboutin outlet in hollister clothing the michael kors uk chamber michael kors pursescanada goose jackets thinks nike air max this louboutin is air max pas cher why lululemon canada she’s supra shoes been reebok outlet able montre homme to michael kors handbags remain tiffany and co more ghd hair moderate pandora jewelry even new balance while louis vuitton outlet stores Congress michael kors has jordan 4 become ralph lauren polo more canada goose polarized ugg around mulberry handbags her. nike air max pas cher Senator celine bags Collins michael kors outlet broke ferragamo belts from louboutin party cheap jordans ranks burberry handbags after swarovski the moncler uk terrorist nike air max uk attack nike roshe in louboutin Orlando, tiffany jewelry Fla., jordan 11 for air jordan shoes example, nike air max to michael kors fashion ugg outlet a abercrombie bipartisan true religion jeans gun celine handbags control ghd straighteners bill.</P>
<P>And coach outlet store online that nike air max is hogan outlet only nike blazer the jordan retro most birkin bag recent michael kors outlet online sale example longchamp uk of soccer shoes Maine’s hollister federal chaussures louboutin representatives new balance pas cher crossing new balance party canada goose jackets lines. ugg boots William canada goose pas cher Cohen, hollister clothing store as nike outlet a true religion outlet Republican longchamp bags member mulberry uk of new balance outlet the moncler sito ufficiale House uggs outlet Judiciary ray ban sunglasses Committee, cheap ugg boots recommended nike roshe run impeaching nike air max President bottes ugg pas cher Nixon jordan future in louis vuitton outlet 1974. ray ban sunglasses outlet Edmund oakley sunglasses cheap Muskie ralph lauren outlethermes belt a ugg australia former canada goose US ray ban senator moncler and moncler jackets secretary true religion of ralph lauren State, mcm handbags and michael kors outlet online sale perhaps ray ban the michael kors state’s canada goose most burberry factory outlet famous michael kors outlet online Democrat oakley glasseslongchamp pliage “actively baseball bats supported christian louboutin shoes liberal nike store social ghd hair straighteners causes rolex watch while ray ban sunglasses fighting north face outlet to oakley hold louis vuitton down air max 2015 excessive juicy couture outlet Government nike free run spending,” roshe run pas cher The nike air huarache New ralph lauren outlet online York hollister Times nike air max wrote cheap oakley in gucci outlet online its louis vuitton 1996 hollister pas cher obituary.</P>
<P>Whether uggs it’s polo ralph lauren outlet because abercrombie of michaelkors-outlet-store gerrymandering, louis vuitton outlet their cheap sunglasses personal ugg boots clearance ethos, abercrombie or true religion outlet apathy, sunglasses outlet many babyliss pro voters coach outlet store in christian louboutin uk other longchamp soldes states phone cases don’t ray ban sunglasses demand north face outlet that canada goose outlet their uggs outlet politicians louis vuitton remain longchamp outlet online moderate jordan pas cher the louis vuitton bags way michael kors pas cher Maine tn pas cher voters moncler do, lululemon Collins nike free uk believes.</P>
<P>While marc jacobs most bottes ugg pas cher of toms outlet the ralph lauren uk attendees louis vuitton pas cher filtered michael kors canada back timberland pas cher to vans outlet their michael kors outlet cars, tiffany and co Barbara michael kors Gould tiffany jewelry stayed hermes pas cher behind lululemon outlet to herve leger talk longchamp outlet with air max 2015 some air max friends. abercrombie and fitch She longchamp says coach purses it juicy couture was nike huarache one uggs on sale of sac longchamp pas cher the air max more hermes contentious michael kors outlet online discussions cheap oakley sunglasses the polo lacoste town vans has air jordan pas cher had jordan 6 since converse it pandora charms voted hermes birkin a michael jordan shoes few swarovski uk years burberry ago burberry pas cher to nike air max disband new jordans the nike roshe run town’s polo ralph lauren local oakley sale police uggs canada force.</P>polo outlet michael kors handbags louis vuitton purses burberry outlet lululemon outlet canada hollister air jordan nike roshe run bottes ugg lunette oakley pas cher iphone case true religion outlet moncler oakley pas cher nike roshe uk ralph lauren mont blanc michael kors handbags kate spade ugg italia lancel pas cher burberry outlet online moncler jackets karen millen uk michael kors outlet online longchamp outlet online the north face oakley outlet polo ralph lauren outlet insanity workout oakley vault polo lacoste pas cher p90x workout swarovski crystal christian louboutin outlet uggs outlet air jordan 11 nike free run uk sac burberry iphone cases nike free louboutin shoes kate spade outlet jordans for sale bottega veneta longchamp bags replica watches uk ugg boots jordans longchamp pas cher toms shoes the north face air jordan longchamp outlet fake rolex jerseys ralph lauren pas cher coach factory longchamp montre pas cher uggs on sale moncler jordan retro 11 timberland moncler louboutin outlet louis vuitton handbags ugg boots clearance moncler jordan xx9 cheap oakley sunglasses wedding dresses uk uggs sac guess timberland boots vans pas cher north face jackets valentino shoes north face vans scarpe ralph lauren outlet canada goose outlet replica watches oakley vault canada goose moncler louis vuitton outlet nfl jerseys oakley sunglasses louis vuitton nike roshe canada goose uk red bottom shoes ferragamo shoes jordan 5 cheap oakley sunglasses converse nike air max 2015 burberry outlet online moncler louboutin pas cher michael kors hollister jordan shoes abercrombie michael kors outlet online michael kors outlet air max nike free run pas cher north face jackets jimmy choo shoes kate spade handbags canada goose outlet louis vuitton uggs on sale ugg soldes longchamp handbags louis vuitton nike free sac longchamp nike free pas cher ugg outlet nike trainers uk moncler pas cher sac lancel true religion jeans lunette ray ban pas cher ralph lauren louboutin shoes michael kors outlet online sale mac cosmetics nike air force ghd thomas sabo abercrombie north face outlet online mulberry bags michael kors outlet canada ugg pas cher p90x pandora uk gucci bags nike tn pas cher mulberry outlet prada handbags replica handbags oakley store ugg rolex watches michael kors bags chi flat iron moncler outlet tory burch nike trainers nike sneakers hollister coach handbags louis vuitton north face outlet rolex watches for sale michael kors handbags converse pas cher abercrombie and fitch oakley sunglasses cheap uggs lululemon outlet online true religion outlet north face uk michael kors michael kors outlet online sale hollister uk gucci shoes new balance shoes jimmy choo outlet rolex replica watches nike factory nike roshe run pas cher michael kors louboutin uk nike shoes cheap nike shoes ugg canada goose jackets michael kors outlet online coach factory outlet sac hermes rolex replica coach outlet nike air max uk oakley sunglasses wholesale true religion jeans jordan 1 christian louboutin outlet ugg outlet cheap ugg boots outlet polo ralph lauren outlet online canada goose outlet air jordans michael kors bags michael kors outlet online moncler outlet oakley sunglasses outlet uggs canada goose tory burch outlet oakley vault burberry mont blanc pens oakley vault babyliss north face christian louboutin louis vuitton handbags louis vuitton ugg air max vanessa bruno bottes ugg asics shoes lacoste pas cher uggs outlet ugg boots clearance louboutin replica watches ugg boots christian louboutin links of london michael kors marc jacobs handbags ugg air huarache hollister canada sac louis vuitton hermes handbags abercrombie and fitch polo ralph lauren polo ralph lauren outlet doudoune moncler uggs christian louboutin burberry outlet lululemon outlet coach outlet kate spade outlet online ray ban pas cher ray ban uggs michael kors outlet longchamp outlet online beats by dre moncler jackets hogan prada shoes retro jordans montre femme ugg soldes ugg pas cher lululemon tory burch outlet online instyler ionic styler longchamp nike roshe gucci handbags soccer jerseys air max wedding dresses longchamp pas cher