Tsukuyomi's Profile User Rating: -----

Reputation: -3 Dishonored
Active Members
Active Posts:
113 (0.07 per day)
22-February 11
Profile Views:
Last Active:
User is offline Jun 03 2015 11:36 AM

Previous Fields

Dream Kudos:
Icon   Tsukuyomi has not set their status

Posts I've Made

  1. In Topic: Bunch of Errors after creating a project

    Posted 20 May 2015

    View Postandrewsw, on 20 May 2015 - 03:59 PM, said:


    ActionBarActivity cannot be resolved to a type MainActivity.java

    I know nothing of Android but there is some information here about ActionBarActivity. A very brief look seems to suggest that switching to Activity might be a solution.

    Of course, you could search that error message to find other resources.

    Thanks. Is still got errors. is not recognize R:
    getMenuInflater().inflate(R.menu.main, menu);


    if (id == R.id.action_settings)
  2. In Topic: Bunch of Errors after creating a project

    Posted 20 May 2015

    View Postmodi123_1, on 20 May 2015 - 06:47 AM, said:

    Start with the more obvious questions - do you have android, java, etc all installed right?


    I have both java and android installed
  3. In Topic: Maverick Virtual Box internet connection

    Posted 5 Mar 2015

    View Postmodi123_1, on 05 March 2015 - 11:59 AM, said:

    Does your VM have a virtual network adapter with it? Is the VM set up to even deal with internet connectivity?

    I'm not sure. Can you tell how I can set it up?
  4. In Topic: Can't run because of Errors

    Posted 16 Feb 2015

    View PostAKMafia001, on 15 February 2015 - 11:31 PM, said:

    I don't know what to say or where to start. I think you need to read the book more thoroughly. Maybe you are skipping sections and jumping to the codes.

    Didn't you notice the spelling error in mFalseButton on line 26?

    To use onclick(), you either have to set it for a specific button, or implement it for a whole class by implementing View.onclickListener and then registering the listener for each button using this.

    As for the rest of the errors, refer to the previous post about errors in the resources. If there are none, then the problem is probably with the support library linking.

    setonclickListener is on red so that means an error. But how do I fix it?

    Is not recognizing findViewById(R.id.true_button) too. It's saying unknown class. I'm on Page 24 of Android Programming The Big Nerd Ranch Guide

    import android.os.Bundle;
    import android.support.v7.app.ActionBarActivity;
    import android.view.Menu;
    import android.view.MenuItem;
    import android.view.View;
    import android.widget.Button;
    import android.widget.Toast;
    public class QuizActivity extends ActionBarActivity {
        private Button mTrueButton;
        private Button mFalseButton;
        protected void onCreate(Bundle savedInstanceState) {
        mTrueButton  = (Button)findViewById(R.id.true_button);
        mTrueButton.setonclickListener(new View.onclickListener(){
            public void onclick(View v){
                //Does nothing yet, but soon!
        mFalseButton = (Button)findViewById(R.id.false_button);
        mFalseButton.setonclickListener(new View.onclickListener(){
            public void onclick(View v){
                //Does nothing yet, but soon!
        public boolean onCreateOptionsMenu(Menu menu) {
            // Inflate the menu; this adds items to the action bar if it is present.
            getMenuInflater().inflate(R.menu.menu_quiz, menu);
            return true;
        public boolean onOptionsItemSelected(MenuItem item) {
            // Handle action bar item clicks here. The action bar will
            // automatically handle clicks on the Home/Up button, so long
            // as you specify a parent activity in AndroidManifest.xml.
            int id = item.getItemId();
            //noinspection SimplifiableIfStatement
            if (id == R.id.action_settings) {
                return true;
            return super.onOptionsItemSelected(item);

    Posted Image
  5. In Topic: Iterators problems

    Posted 31 Dec 2014

    View PostAnarion, on 26 December 2014 - 06:08 PM, said:

    std::vector::begin() returns a random access iterator, which does not support addition of two iterators by using operator+ and therefore, your code does not compile. The supported arithmetics for a random access iterator are:
    • iterator + integer
    • integer + iterator
    • iterator - integer
    • iterator - iterator

    Though as CTphpnwb said, what you are doing in that line does not make sense aside from calling an undefined operator+.

    vector<int> iter = inputVec.begin();
    	std::advance(iter, (inputVec.end()-2));
        //get the second from last element
       // auto itSecondLast = ;
        //add first and last element
        auto sum1 = inputVec.begin() + inputVec.end();
        auto sum2 = inputVec.begin() + iter;
    	cout<<"\nThe sum of the first and last element using iterators is "<<sum1<<endl;
    	cout<<"The sum of the second element and second from the last element using iterator is "<<sum2<<endl;

    STILL got Errors:

    no match for 'operator+' (operand types are 'std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}' and 'void')	
    no matching function for call to '__iterator_category(std::vector<int>&)'	
    no type named 'difference_type' in 'struct std::iterator_traits<std::vector<int> >'	
    no type named 'iterator_category' in 'struct std::iterator_traits<std::vector<int> >'	

My Information

Member Title:
D.I.C Head
Age Unknown
Birthday Unknown

Contact Information




Tsukuyomi has no profile comments yet. Why not say hello?