Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,120 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,772 people online right now. Registration is fast and FREE... Join Now!




PseudoCode C++

 
Reply to this topicStart new topic

PseudoCode C++, using array into queues

maxsaint
14 May, 2007 - 04:25 PM
Post #1

New D.I.C Head
*

Joined: 21 Mar, 2007
Posts: 6


My Contributions
i m writing a program from which i have to write use an array of natural number from 1- 100 and put the even in ones in one queue and odd numbers in other queue. i know i cant ask the code from you. but if you help me with pseudocode i can write a program from it. plz reply ASAP.

thanks
User is offlineProfile CardPM
+Quote Post

Liezel
RE: PseudoCode C++
15 May, 2007 - 02:50 AM
Post #2

New D.I.C Head
*

Joined: 25 Apr, 2007
Posts: 9


My Contributions
Use the standard queue class, declare two queues, one QueueOdd and one QueueEven.

Find arraysize
for 0 to arraysize-1
if array-element divides by 2 leaves 0 as remainder, push onto QueueEven
else push onto QueueOdd
User is offlineProfile CardPM
+Quote Post

maxsaint
RE: PseudoCode C++
15 May, 2007 - 08:15 AM
Post #3

New D.I.C Head
*

Joined: 21 Mar, 2007
Posts: 6


My Contributions
is there is any little more detailed pseudocode? please reply
User is offlineProfile CardPM
+Quote Post

Jayman
RE: PseudoCode C++
15 May, 2007 - 08:35 AM
Post #4

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 6,926



Thanked: 42 times
Dream Kudos: 500
Expert In: C#, VB.NET, Java

My Contributions
If it got any more detailed, we would be essentially giving you the code. That was already detailed instructions on how to do it.
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 10:05PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month