Activity Stream
48,167 MEMBERS
64742 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 11

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    1. Write a function to insert elements into a sorted list.

    2. Write a program that reads a string, enter it into a pile and then empty the stack.

    3. Write a function to scan the list of vertices and return the position of a vertex.

    4. Write the following expression in infix form.
    a b c + *
    djflakf1 Reviewed by djflakf1 on . homework C++ Hello i'm looking somebody that can help me for a c++ codes but is wrote in spanish so maybe if you know C++ with structs you can help me :) if you are interested send me a private for answer here :) ---------- Post added 14th Nov 2012 at 05:00 AM ---------- Previous post was 13th Nov 2012 at 11:35 PM ---------- i'm looking a coder in C++ for a struct work please HELP Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    deutsche-doujins.to
    Quote Originally Posted by djflakf1 View Post
    1. Write a function to insert elements into a sorted list.

    2. Write a program that reads a string, enter it into a pile and then empty the stack.

    3. Write a function to scan the list of vertices and return the position of a vertex.

    4. Write the following expression in infix form.
    a b c + *
    What are you able to use?
    if you can't use stl try s.th. like this

    1:
    - Set i to the index of the last element in the array
    - If the element to insert is larger then a[i] then insert the element at index i+1 and stop.
    - Otherwise set a[i+1] = a[i] then decrease i and repeat the previous step.
    - If i reaches 0, insert the element at the start.
    --> http://stackoverflow.com/questions/4...on-linked-list
    if you can use stl: http://www.cplusplus.com/reference/stl/list/insert/ && http://www.cplusplus.com/reference/stl/list/sort/

    2:
    with stl: http://www.cplusplus.com/reference/stl/stack/empty/
    without stl: i don't know what pile ist (sry, english isn't my primary language) so i don't really know what to do.
    Reading a string via StringBuffer or charbuffer

    3:
    well just iterate through you list? Compare the Stack-Place of your vertices to gain the exact position

    4:
    a b c + * looks like postfix notation.
    so to get it to "normal" algebra we have to figure out what happens in postfix: read the wiki
    so. lets begin:
    okay, first thin is an a - and first operation is an * (take 1 left and 1 right)
    so: a * - add braces, because of *
    next is b and + so add this to our equation:
    a * (b+
    What's left? the c is left.
    so add this
    a * (b+c
    close all braces:
    a* (b+c)

    finished ;P

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pay for homework C++ coding
    By djflakf1 in forum Web Development Area
    Replies: 10
    Last Post: 14th Nov 2012, 08:55 AM
  2. Doing homework for money.(Real or fake)
    By Umar.Work22 in forum Webmasters, Money Making
    Replies: 11
    Last Post: 25th Aug 2012, 07:45 AM
  3. Homework help :S
    By Netguy in forum General Discussion
    Replies: 10
    Last Post: 1st May 2011, 07:24 PM
  4. [Hiring] Do my Homework for RS 1month(s)
    By ShareShiz in forum Completed Transactions
    Replies: 12
    Last Post: 9th Mar 2010, 04:25 AM
  5. Fail Homework.
    By Super in forum General Discussion
    Replies: 26
    Last Post: 16th Nov 2009, 09:09 PM

Tags for this Thread

BE SOCIAL