Anarion's Profile User Rating: -----

Reputation: 372 Architect
Group:
Author w/DIC++
Active Posts:
1,647 (0.72 per day)
Joined:
16-May 09
Profile Views:
38,471
Last Active:
User is offline Yesterday, 11:51 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
1200

Latest Visitors

Icon   Anarion has not set their status

Posts I've Made

  1. In Topic: Several constructor questions

    Posted 27 Aug 2015

    I think it would be worthy to mention the rule of right-to-left at this point. Sometimes it might be confusing with all the const, & and * symbols. The link talks about C, however almost the same goes for C++.

    Quote

    References and pointers are similar, they refer to, or point to, something else in memory

    The C++ FAQ describes references this way:

    Quote

    Even though a reference is often implemented using an address in the underlying assembly language, please do not think of a reference as a funny looking pointer to an object. A reference is the object. It is not a pointer to the object, nor a copy of the object. It is the object.
  2. In Topic: IFSTREAM inside of WHILE

    Posted 26 Aug 2015

    Also:
    • Use proper indentation. It's not for being classy or cool. It's for readability and that's critical.
    • Make sure you read this tutorial. It helps explain the loop/reading part.
  3. In Topic: I'm having problem with the output of the day.

    Posted 26 Aug 2015

    Please post your code inside the code tags:
    :code:

    Regarding your problem, you haven't specified how the output is wrong. What inputs are you using and what outputs are you getting? What would be the desired output? This section of the code modifies the days after doing the subtraction:
    for(i=byear; i<=cyear; i++) { //Calculate the leap year
        if((i%4==0&&i%100!=0) || (i%400==0)) {
            day = day+1;
        }
    }
    

    I have tried it with today's date and 17 May 1992, your code gives me 15 Days, 3 Months, 23 Years. According to this link, the age would be 9 Days, 3 Months, 23 Years. If that's the output you are expecting, then the problem is your leap year calculation which modifies the days.
  4. In Topic: I've messed up and I don't know how to fix it, please help

    Posted 23 Aug 2015

    Well, what are the errors? Usually the error states clearly what is wrong (there are times that the error may be too verbose and confusing though).
  5. In Topic: I've messed up and I don't know how to fix it, please help

    Posted 23 Aug 2015

    Trying to compile the code gives undeclared variable error for these lines:
    for(i=0; i<counter; i++) {
        printf("\n\t\t%0.2f", price[i]);
        printf("\t\t%d", qty[i]);
        printf("\t\t%s\n", pizza[c][0]);
        printf("\t\t%s\n", sides[c][0]);
        printf("\t\t%s\n", drinks[c][0]);
        total=total+price[i];
        fflush(stdout);
    }
    

    c is undeclared.

My Information

Member Title:
The Persian Coder
Age:
23 years old
Birthday:
May 17, 1992
Gender:
Interests:
Music, Tennis, Programming, KitKat, Cars, Bikes
Full Name:
Kian N.
Years Programming:
7
Programming Languages:
C++, PHP, R, JavaScript, HTML, CSS

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    Xupicor Icon

    27 Aug 2015 - 08:06
    You're doing a nice job, in the help and in the tutorial section, yourself. ;) I was seriously thinking about making a video tutorial on C++, featuring exempts from the standard to source stuff (they'd be shown as a visual side-note, since they themselves would be way too dry for a beginner), but it's a scary amount of work...
  2. Photo

    Xupicor Icon

    26 Aug 2015 - 07:00
    You really went to town with those upvotes today. :P
  3. Photo

    Hybrid SyntaX Icon

    10 Feb 2014 - 14:02
    sup?
  4. Photo

    estherNamogo Icon

    03 Nov 2013 - 06:33
    Hello
    Nice to meet you write
    me at (esther2namogo@hotmail.com) i will send you my picture OK.
  5. Photo

    jatinjindalj Icon

    06 Sep 2012 - 09:01
    Hey Regarding your code snippet at
    http://www.dreamincode.net/code/snippet4621.htm-->
    Can you please explain:
    why when at line 37 and 38,If I do
    while(q!= NULL) {//Line 37
    q = q->link;
    }
    t = new node;
    t->data = str;
    t->link = NULL;<...
  6. Photo

    Anarion Icon

    07 Aug 2012 - 06:23
    Thanks! I had made it for DIC Signature Contest and put it on my sig since then.
  7. Photo

    AnalyticLunatic Icon

    06 Aug 2012 - 09:05
    Just wanted to drop by and say Sweet Sig. Sometime I need to make one for myself.
  8. Photo

    David W Icon

    07 Jun 2012 - 00:31
    Shalom shalom my Regal Persian Coder Friend
  9. Photo

    Anarion Icon

    16 Mar 2011 - 00:56
    @abrsefid: ba arze sharmandegi, komaki az man sakhte nist. Az beine portha faghat ba USB kar kardam oon ham dar sathe kheili payin. Be shoma pishnahad mikonam baraye javabe soaletun dar internet jostejoo konid :)
  10. Photo

    yogesh201010 Icon

    05 Mar 2011 - 18:41
    hi i am yogesh
    how to connect internet by mob in linux.
    and tell me book for linux learning
    thanks
  11. Photo

    abrsefid Icon

    27 Feb 2011 - 05:23
    salam man donbale 1 code c++ (ubuntu) migardam vase send o receive data ba port serial mishe rahnamaeem konid ?
  12. Photo

    hamishehiran Icon

    10 Aug 2010 - 23:02
    thanks for add! ;) nice to meet you!
  13. Photo

    Anarion Icon

    28 Mar 2010 - 08:27
    Thanks! Happy new year to you too :)
  14. Photo

    saSBH2 Icon

    28 Mar 2010 - 07:03
    Happy New Year :)
Page 1 of 1