Anarion's Profile User Rating: *****

Reputation: 384 Architect
Author w/DIC++
Active Posts:
1,664 (0.65 per day)
16-May 09
Profile Views:
Last Active:
User is online 17 minutes ago
Viewing Topic: What is your favorite text/code ...

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   Anarion has not set their status

Posts I've Made

  1. In Topic: What is your favorite text/code editor?

    Posted 2 May 2016

    My go-to editor is Vim, although I don't consider myself a pro Vim user. There's A LOT to learn about it.
  2. In Topic: Debug help, anagram solver

    Posted 1 May 2016

    What does the compile error say for line 23? That should be fairly descriptive. In Eclipse:


    Syntax error on tokens. They can be merged to form +=

    Notice that += is a single operator, there should be no space in between them.

    Also, the quotation marks on line 25 are incorrect.
  3. In Topic: Is this the best way to add and display two names ?

    Posted 23 Apr 2016

    Please use code tags when putting code in your posts. Like this:

    By adding two names, if you mean concatenating two strings, you could do it this way:
    string concat = n1 + " " + n2;

    And of course I am not saying this way it's better.

    Also, you probably want to have using namespace std; after all of the #include lines.
  4. In Topic: Copy a String Into a Vector

    Posted 17 Apr 2016

    Since both string and vector are standard containers, you could also use std::copy combined with back_inserter:
    #include <iostream>
    #include <string>
    #include <vector>
    #include <algorithm>
    #include <iterator>
    using namespace std;
    int main() {
        string str("some string");
        vector<char> vec;
        copy(str.begin(), str.end(), back_inserter(vec));
        for (char c: vec) {
            cout << c << " ";
        return 0;
  5. In Topic: arrays in class objects

    Posted 2 Apr 2016

    Generally speaking, there are a number of things that you could do to improve the code (some of them may be more advanced for now but maybe worth getting exposed to?):
    • Const correctness
    • Passing by reference vs passing by value (passing by reference is sometimes tied closely with const correctness)
    • Using a map data structure to eliminate the if/else section. Alternatively, you could also adapt your code to just use the array index as the integer that gets mapped to something else (in your case, a string).


My Information

Member Title:
The Persian Coder
23 years old
May 17, 1992
Music, Tennis, Programming, KitKat, Cars, Bikes
Full Name:
Years Programming:
Programming Languages:
C++, R, Java, Javascript, Bash

Contact Information



Page 1 of 1
  1. Photo

    Xupicor Icon

    31 Aug 2015 - 13:05
    Well, you can hit me up on Steam or gmail at the same handle. ;) I'm also from time to time at TeamSpea if you prefer that, I don't use Skype.
  2. 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...
  3. Photo

    Xupicor Icon

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

    Hybrid SyntaX Icon

    10 Feb 2014 - 14:02
  5. Photo

    estherNamogo Icon

    03 Nov 2013 - 06:33
    Nice to meet you write
    me at ([email protected]) i will send you my picture OK.
  6. Photo

    jatinjindalj Icon

    06 Sep 2012 - 09:01
    Hey Regarding your code snippet at>
    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;<...
  7. 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.
  8. 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.
  9. Photo

    David W Icon

    07 Jun 2012 - 00:31
    Shalom shalom my Regal Persian Coder Friend
  10. 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 :)
  11. 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
  12. 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 ?
  13. Photo

    hamishehiran Icon

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

    Anarion Icon

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

    saSBH2 Icon

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