Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

asadullah ansari

@asadullah ansari
About
Posts
14
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Can u tell me any things which cannt be done by hardware and which is done by software???
    A asadullah ansari

    this question turns to nice way... sperms is used to produce this system(like same as process to produce cpu, memory etc from silicon etc). U can say it's hardware with embedded some software which can be updated also at different leval of ages. Human Brains works by nerons in a 3D structure of unlimited connections, ultimate speed , unlimited memory. Suppose u r taking an input to brain like " how r u?" This datas is processing to brain. who will process offcourse some software required to process these datas. You can say some embedded sodtware which will give instruction to brain then it will execute and then output will come to output device like sound from mouth(i m fine), face expression, etc. Here software can be updated any time and behave as more and more intelligent way... U can say it's software + hardware both....

    Truth Can'nt be changed

    IT & Infrastructure hardware question

  • Can u tell me any things which cannt be done by hardware and which is done by software???
    A asadullah ansari

    software is bunch of logic to handle some problem made by human.... Human's brain is made by logics, (chemicals theory), offcourse u can say brain is like great software which has unlimited logics...

    Truth Can'nt be changed

    IT & Infrastructure hardware question

  • Can u tell me any things which cannt be done by hardware and which is done by software???
    A asadullah ansari

    i mean nowdays whatever can done by software can be done in hardware also...Is it any case where software only can do and hardware cannt do...

    Truth Can'nt be changed

    IT & Infrastructure hardware question

  • One question about size of empty class...
    A asadullah ansari

    reallly funny ...gud :laugh:

    Truth Can'nt be changed

    C / C++ / MFC question c++ data-structures

  • One question about size of empty class...
    A asadullah ansari

    offcourse C != C++ ...Here offcourse C++ standard requires it so it's there But my question is why they have made like this... Some reason should be for this...

    Truth Can'nt be changed

    C / C++ / MFC question c++ data-structures

  • One question about size of empty class...
    A asadullah ansari

    Dont bore of this 80's question...please excuse me for this... question is very simple... Why empty class's size is one Byte in C++??? Answer 1:suppose in case of creating array of objects of this empty class, then to distinguish them atleast 1 byte is required ... mE fedup of this answer My Doubt for this answer : If this reason is valid then why hell in C, empty structure's size is zero... Here also anyone can create the array of objects of this empty structure.Here no neeed to distinguise. Is It ???? Answer 2: Since in C++ provides function members so like class test { }; this is also empty class but by default every class has some default member's function... test tObject1=test(); test tObject2(tObject1); or class test { public: void fun(); }; test obj; obj.fun(); so to call this function it may required size atleast 1 byte... BUT I M NOT SUTE FOR WHAT REASON IN C++ THEY HAVE TAKEN 1 BYTE FOR EMPTY CLASS AND ZERO BYTE FOR C....PLEASE U CAN SHARE WHAT'S EXACT REASON????

    Truth Can'nt be changed

    C / C++ / MFC question c++ data-structures

  • strcmp for Last five characters
    A asadullah ansari

    simple and excellent logic...

    Truth Can'nt be changed

    C / C++ / MFC help question

  • matrix class
    A asadullah ansari

    u can download from http://www.freedownloadscenter.com/Programming/C\_and\_C++\_Tools\_and\_Components/C\_\_\_Matrix\_Template\_Class\_Library.html

    Truth Can'nt be changed

    C / C++ / MFC c++ question

  • One guidelines for C/C++ programmer
    A asadullah ansari

    first thing if programmer is dump then he can make any mistake... No one gud programmer will do this sort of mistake... So Guidelines for stupid programmer only... As u know why this guidlines.. if(0 == x) : should use as guidelines if(x == 0) : should not use why first one is appreciated for stupid programmer coz he may write as if(0 = x) then error will come in this case in all compiler and second one will not give any error in max compiler...What hell this goin on...How any programmer do this mistake??? I cannt believe...

    Truth Can'nt be changed

    The Weird and The Wonderful help c++

  • One guidelines for C/C++ programmer
    A asadullah ansari

    I am not talking about a single or some person who can take care his code itself nicely. But when you will come to some big organization then Why they follows some process becausethey want minimize defects, minimize manpower,etc. So this small care can save some time .

    Truth Can'nt be changed

    The Weird and The Wonderful help c++

  • One guidelines for C/C++ programmer
    A asadullah ansari

    In your project, If you are using if condition like

    enum
    {
    Blue_c,
    Yellow_c,
    Red_c
    };
    int color;

    if( color == yellow_c)
    {
    .....
    ......
    }
    or
    if(color != Red_c)
    {
    ....
    .....
    }

    Now you know by mistake if you forget one = or ! means if(color = yellow_c) or if(color = Red_c) then no error will come and bug fixing cost for your projects So To avoid this cost you should use

    if(yellow_c == color)
    {
    .....
    ......
    }
    or
    if(Red_c != color)
    {
    ....
    .....
    }

    Now if you forgot to put one = ot ! then compilation error will come.. So this should be in coding standard to use like this...

    Truth Can'nt be changed

    The Weird and The Wonderful help c++

  • Magic C++ Program
    A asadullah ansari

    are you goin to 80s??? i am really goin to mad!!!

    Truth Can'nt be changed

    The Weird and The Wonderful c++

  • strange sum
    A asadullah ansari

    This sort of problem we should not bothered. It can give any result depends on compiler inplements it how???

    Truth Can'nt be changed

    Clever Code c++ csharp visual-studio question

  • strange sum
    A asadullah ansari

    This sort of thing also dependent on how compiler inplements it, like left to right or right to left. If from left to right or left to right c= ++a means c=6 now a=6 c=6+ ++a means c=7 now a=7 c=13+ ++a means c=8 now a=8 c=13+8 c=21 this results on GCC/g++ compiler. But some compiler evaluate first and then assignment like ++a=>>>a=6 ++a=>>a=7 ++a=>>>a=8 Now c=8+8+8=24 But i dont know how it's giving 22.. No points to give 22 as i think...

    Truth Can'nt be changed

    Clever Code c++ csharp visual-studio question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups