User Profile

Collapse

Profile Sidebar

Collapse
yaoc1987
yaoc1987
Last Activity: Oct 31 '10, 06:26 PM
Joined: Mar 1 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • yaoc1987
    started a topic why is my program printing the same thing twice
    in Java

    why is my program printing the same thing twice

    i have a problem with the jcombobox i made
    im guessing the problems are at getSalutation() and getSuffix() but im not completely sure

    i want it to print to console once when the user clicks on the option but for some reason it is printing out twice

    also how do i use requestFocus() with jcombobox?

    please help me out!!!
    thank you!!!

    Code:
    // 221 Fall 2010 Homework 1
    ...
    See more | Go to post

  • yaoc1987
    started a topic what's wrong with my copy function?
    in C

    what's wrong with my copy function?

    my assignment was to implement a sequence class with dynamic array

    for some reason the only error is this:
    1>c:\documents and settings\joe\de sktop\spring 2010\csc 212\hw\hw #3\sequence2.cx x(53) : error C3861: 'copy': identifier not found

    ^there are 3 of these since i used copy 3 times

    copy is part of algorithm and i did the #include<algori thm>

    ive look through this code MANY MANY...
    See more | Go to post

  • yaoc1987
    replied to indenting using recursion.
    in C
    non-existent?? wow

    here is my code can u check it out tho



    actual output:

    this sentence!
    ...this sentence!
    ......this sentence!
    .........this sentence!
    ......this sentence!
    ...this sentence!
    this sentence!

    needed output:

    this sentence!
    ...this sentence!
    ......this sentence!
    .........this sentence!
    .........this...
    See more | Go to post

    Leave a comment:


  • yaoc1987
    replied to indenting using recursion.
    in C
    ok but how can i put more indents(/t) in front of the sentence???

    ie:
    sentence 1st call
    ...sentence 2nd call
    ......sentence 3rd call
    and so on then it goes back the other way
    ......sentence 1st call
    ...sentence 2nd call
    sentence 3rd call

    i dont know if im explaining this properly

    its sort of like the triangle with * but i dont know how to start this using /t
    See more | Go to post

    Leave a comment:


  • yaoc1987
    started a topic how to declare ostream???
    in C

    how to declare ostream???

    1>c:\documents and settings\joe\de sktop\spring 2010\csc 212\hw\hw #5\rec_fun.h(10 ) : error C2061: syntax error : identifier 'ostream'

    i keep getting this error

    how do i declare ostream???
    See more | Go to post

  • yaoc1987
    started a topic indenting using recursion.
    in C

    indenting using recursion.

    is this even possible with recursion?

    ive only done this with loops but i cant do it with recursion

    anyone can help think of algorithm or a short code for this???

    thanks!
    See more | Go to post

  • yaoc1987
    replied to what is wrong with my copy function?
    in C
    definitely

    i included the <algorithm> and the others in the test file, header file, and implementation file but somehow i still get this error

    my brother told me it could be the parameters of the copy function but i checked already the parameters are correct

    sigh... hopefully my professor will grade according to the codes and not just whether the program works...
    See more | Go to post

    Leave a comment:


  • yaoc1987
    started a topic what is wrong with my copy function?
    in C

    what is wrong with my copy function?

    hello everyone

    im writing a program for "sequence class with dynamic arrays"
    every time i compile it gives me this error:



    i believe all 3 is the same
    to use copy i know i have to include algorithm

    here is my copy function codes used in this program:

    Code:
    sequence::sequence(const sequence& source)
          {//copy constructor
    ...
    See more | Go to post
    Last edited by Banfa; Mar 3 '10, 09:31 AM. Reason: Change quote tags to code tags
No activity results to display
Show More
Working...