User Profile

Collapse

Profile Sidebar

Collapse
ashwini1680
ashwini1680
Last Activity: Feb 23 '08, 06:56 PM
Joined: Sep 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ashwini1680
    started a topic program in c++
    in C

    program in c++

    I want to draw the design like this using c++ program
    Code:
    1>
               &     &    &    &    &    &   &  
                      &    &    &    &    &
                            &    &    &   
                                  &
    
    
    2>                                  &
                                    &         &
    ...
    See more | Go to post
    Last edited by Ganon11; Dec 8 '07, 11:55 PM. Reason: Added [CODE] tags to preserve spacing.

  • ashwini1680
    replied to What is k-map in lgebra?
    Yes,I want to know what it is?
    I have seen one example but i don'i understand.I need help....
    See more | Go to post

    Leave a comment:


  • ashwini1680
    started a topic What is k-map in lgebra?

    What is k-map in lgebra?

    What is k-map in lgebra?Please explain.I am not at all understanding.P ls explain with example
    See more | Go to post

  • ashwini1680
    started a topic What;s row major n column major ?
    in C

    What;s row major n column major ?

    What;s row major n column major ?pls explain.
    See more | Go to post

  • what's the function in excel to find slope of a straight line?

    is there any function in excel to find slope of a straight line iin excel?
    what's it? Suggest a site or book for studing excel.advance thanks.
    See more | Go to post

  • ashwini1680
    replied to Insertion sort?
    in C
    What is insertion sort?Which is the fastest & best to use sorting method?...
    See more | Go to post

    Leave a comment:


  • ashwini1680
    replied to probem with file handling
    in C
    Thank you.Would u pls tell me more abt using iostream & namespace.
    I have not yet used it,If we r using iostream.h what's the problem or what's the difference bet this two?Please explain....
    See more | Go to post

    Leave a comment:


  • ashwini1680
    replied to probem with file handling
    in C
    Actually,I have not posted the code.But i have written record using write() fun The last rec is not repeated while writing.But on reading thro read() fun they r not printed properly.as i have used read write method data is stored in binary form.So its not a rext file.Still problem is there.Please help...

    [Code=cpp]


    #include<fstrea m.h>
    #include<conio. h>
    #include<stdio. h>
    ...
    See more | Go to post
    Last edited by sicarie; Oct 10 '07, 07:51 PM. Reason: Close on the code tags, but you can look on the box at the right and see what they're supposed to be

    Leave a comment:


  • ashwini1680
    started a topic probem with file handling
    in C

    probem with file handling

    Hello there,i am doing programming in c== using files.But when i am writing some record in file through class objects they r written properly but on printing the rec i am getting some strange characters or other numbers that i have not written in file.Sometimes the record r read & displayed properly but the last rec is displayed twice?Why it's happening?Pleas e help
    See more | Go to post

  • ashwini1680
    replied to Problem with file handling in c++
    in C
    i have also used ifstream & ofstream.But in case of modification we have to write the new rec in position where the old rec was.That's why before reading every rec its position in file(using tellg())in terms of byteno is taken & then file pointer is moved at that byte no(using seekg()) & the rec is written in file using write fun.That's what the logic is I don't understand what's wrong in it.In book also the program is written like this?If...
    See more | Go to post

    Leave a comment:


  • ashwini1680
    started a topic Insertion sort?
    in C

    Insertion sort?

    I have aproblem in selection sort.Why we store minimum int value(int_min)i n
    0 th positin.What's the use?
    In stead of dsoing this if we consider the actual 1st element as smallest then also we can follow the method then why int_min is used in c++?
    Please Help.
    See more | Go to post

  • ashwini1680
    replied to Writing Objects
    in C
    I have same problem.Either i am getting strange characters or records are printed twice or only last rec is printed twice.If u get solution pls forward it to me.Thank you....
    See more | Go to post

    Leave a comment:


  • ashwini1680
    replied to Problem with file handling in c++
    in C
    The code is for modyfying a record in an existing file
    So i have taken emp id from user & then that id is searched in a file.If it matches with the id of any re in file whole rec is modified.But when i wrote loop for traversing throug rec in file it shows rec not found.I traced my program n i found that it doesn't go inside the loop even if rec are present in file
    I hope my question is clear now n i will get solution for it....
    See more | Go to post

    Leave a comment:


  • ashwini1680
    replied to Graphics in c++
    in C
    pls send details of opengl.idon't know what is it?
    See more | Go to post

    Leave a comment:


  • ashwini1680
    started a topic Graphics in c++
    in C

    Graphics in c++

    I want to do a project in c++.
    For giving good look to projecti want to use graphics.but i don't know anything abt it.Suggestme some good books which includes the basic fundas.Or send me sample code .I have used graphics in c a littlebit.Or is there any othe option for graphics?
    See more | Go to post

  • ashwini1680
    started a topic Problem with file handling in c++
    in C

    Problem with file handling in c++

    I have a problem working with files in c++.This is my code for modifying a record in a file.When i execute it ,it doesn't check rec in file & comes out .What's wrong???
    Many time working with file(adding record &then printing on screen or after deletion print the rec )last rec is read twice or otherwise each rec ie read twice I have checked my code.Still it's not working Pls help me If u can give correct code it will help me.
    ...
    See more | Go to post
    Last edited by Ganon11; Oct 6 '07, 09:07 PM. Reason: Fixing [CODE] tags.

  • ashwini1680
    replied to Which one is safe? (pointers)
    in C
    I have a question related to your code.
    In case 2 u hav assigned addr of temp to ptr.But when we print it,we don't et addr
    if temp is a char var char temp='a';
    then aalso on assigning addr of temp to p & printing p's valuse on screen we don't get addr How's that?Pls help me I am very confused
    if names[]={ "asd","wer","qw e"}
    here also

    char *p;
    ...
    See more | Go to post

    Leave a comment:


  • ashwini1680
    replied to related to pointer
    in C
    hi,
    I checked my code.It's correct,I have taken it from a book.
    the point of confusion for me is that,
    pointer var always stores addresses.
    so when we write,
    int *ptr;
    int i=10;ptr=&i;
    then if we write,
    cout<<ptr
    we get address of int i stored in ptr.
    but in case of char
    like

    char *ptr;
    char c='a'
    ...
    See more | Go to post

    Leave a comment:


  • ashwini1680
    replied to related to pointer
    in C
    As the replies I got for the same problem i changed my code as
    cout<<&c_ptr
    but it gives the addr of pointer & not the addr of te var to which it points.
    Where the addr is stored?
    as we initialises pointer with the addr.
    Same if i have

    char *a[]={"Pointer","Co mputer","Scienc e"};
    then
    printing
    a[0],a[1],a[2] gives...
    See more | Go to post

    Leave a comment:


  • ashwini1680
    started a topic Why 'this' pointer?
    in C

    Why 'this' pointer?

    Hi there,
    Why 'this' pointer is used?As we always call function with object name so fun knows which objects's values r to be used? What's d exact use of this pointer?
    If possible explain with code.
    See more | Go to post
No activity results to display
Show More
Working...