User Profile

Collapse

Profile Sidebar

Collapse
stdvu
stdvu
Last Activity: Nov 14 '08, 06:22 PM
Joined: Oct 14 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • stdvu
    started a topic inherent ambiguity
    in C

    inherent ambiguity

    how do one prove that the language is inherently ambigous? like for example in languages that use unions such as
    L = L1 U L2, where
    L1 = {a^m b^m c^n | m,n>0}
    L2 = {a^m b^n c^n | m,n>0}
    See more | Go to post

  • stdvu
    replied to another problem :s getting an error :s
    in C
    ahaan.......... .thanks neway..........
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to another problem :s getting an error :s
    in C
    gosh ........ that was rude ......
    See more | Go to post

    Leave a comment:


  • stdvu
    started a topic another problem :s getting an error :s
    in C

    another problem :s getting an error :s

    #include <stdafx.h>
    #include <windows.h>

    int CALLBACK WinMain(HINSTAN CE hInstance,HINST ANCE hPrevInstance,L PSTR lpCmdLine,int nCmdShow)
    {
    MessageBox(NULL , "VISUAL PROGRAMMING \n\n FIRST ASSIGNMENT", "Virtual Uinversity of Pakistan", MB_OKCANCEL);
    return 0;
    }


    I am getting an error "Error1 fatal error C1083:...
    See more | Go to post

  • stdvu
    replied to declaring union
    in C
    thanks ! :) thanks for all your help..
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to macro problem
    in C
    hmmm yeah ..... shud do that thanks a lot for help :)
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to declaring union
    in C
    ok so if i write it like this

    #include <stdio.h>

    typedef union
    {
    int a;
    char b;
    }data;
    union data data1;


    is it fine?

    the ques was actually this

    Define a union that can store both char and int type data values. You need to define that in a way such that later, the union name can be used as a data type itself. Declare...
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to declaring union
    in C
    oh ok ...... thanks!
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to macro problem
    in C
    well how about this code ......... temme if its going to work or not ....... i need to submit this tagging macro problem ....... here is the code

    #define SWAP(a, b) {a ^= b; b ^= a; a ^= b};
    int main()
    {
    int x=3;
    int y=6;
    swap (x,y);
    };
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to declaring union
    in C
    I was supposed to define a union as a datatype suppose i gave it a name as store now how am i suppose to declare another union with this named union??
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to declaring union
    in C
    lollllllz

    well i was supposed to write a code which i have written but the last statement in the exercise was something i didnt understand .... and that is

    Declare another union of the same constitution using the previously defined Union.
    See more | Go to post

    Leave a comment:


  • stdvu
    started a topic declaring union
    in C

    declaring union

    how do you declare a union with a defined union?
    See more | Go to post

  • stdvu
    replied to macro problem
    in C
    ok so you mean i simply need to swap 2 variables (int) without going into complexity ....... that is just write a simple program that is defined as macro right??? I will post the code, do temme whether I am correct or not..
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to macro problem
    in C
    I mailed my teacher to ask him what he meant and he answere me briefly saying :

    dear student,

    you can do swap operation on two values.
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to macro problem
    in C
    Ok my teacher replied that perform swap among 2 variables
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to Use case diagram
    in C
    what kind of help do you want? is it that you dont know HOW to solve your problem by use case diagram modeling or is it that the software you are using to draw is producing errors or whether you are having a hard time drawing use case diagram with that particular software?
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to did i solve correct?
    in C
    THannnnnnnkkkkk sssssssss :D
    See more | Go to post

    Leave a comment:


  • stdvu
    started a topic did i solve correct?
    in C

    did i solve correct?

    What will be the output of the following expression:
    ((a >> b) ^ c)& d

    Where a = 12, b =2, c = 5 and d = 2



    Ans ===> 010 (binary form) 2 (decimal form)
    See more | Go to post

  • stdvu
    replied to macro problem
    in C
    I was not trying to be rude :( I was stating the problem...... i will check with the teacher straight away ..... i myself am confused ..... :(
    See more | Go to post

    Leave a comment:


  • stdvu
    replied to macro problem
    in C
    the problem is that the question states exactly the same way as i posted.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...