Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: killbill689

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    436

    Bresenham algorithm

    I use bresenhams line algorithm to draw a line.Sometimes when the slope is close to 0.5 the line isn't drawing correctly.Some parts of the line are thicker than other or the line that is drawn looks...
  2. Replies
    5
    Views
    877

    Re: problem with clock()

    I used gettimeofday() but i have the same problem


    struct timeval start,end;

    gettimeofday(&start,NULL);
    take_forks(i);
    gettimeofday(&end,NULL);

    double...
  3. Replies
    5
    Views
    877

    Re: problem with clock()

    The value of start is also 0.On failure clock() returns -1 thus it did not failed. Is there another way to benchmark my function?
  4. Replies
    5
    Views
    877

    problem with clock()

    I want to calculate the time elapsed since the execution of take_forks() but the value of "b" and "end"are always 0.Why this happens?



    clock_t start,end;
    start=clock();//clocks before taking...
  5. Replies
    1
    Views
    921

    segmentation fault

    # include <pthread.h>

    # include <stdio.h>

    # include <stdlib.h>

    # define NUM_THREADS 10
  6. Thread: Odbc

    by killbill689
    Replies
    0
    Views
    751

    Odbc

    i try to connect to a database remotely bu i get the following error
    "java.sql.SQLException: [Microsoft] [Driver Manager ODBC] did not find the name of the data source and has no default driver...
  7. Replies
    1
    Views
    534

    compiler error

    i have written a function but
    compiler gives this message no `void ptisi::Oura(epibaths)' member function declared in class `ptisi.' Declaration seems ok to me i cant find where is the problem ....
  8. Replies
    4
    Views
    1,383

    Re: Insert object in linked list

    the class has more variables

    my idea was every object of this class is a flight and the user can change the details of a flight
    by changing the members of the object .If iwant to add a flight i...
  9. Replies
    4
    Views
    1,383

    Re: Insert object in linked list

    int main()
    {
    Chain<flight> L;
    flight *k;
    flight v;
    L.Insert(0,*k);

    L.Find(0,v);
    v.code=3;
    cout<<v.code<<endl;
  10. Replies
    2
    Views
    379

    Re: friend class

    It works thanks!!
  11. Replies
    4
    Views
    1,383

    Insert object in linked list

    I want to instert objects of another class into a linked list i have written these functions what i have to change to pass objects of other classes like flight


    template<class T>
    class Chain;
    ...
  12. Replies
    2
    Views
    379

    friend class

    i get this error when iam trying to compile" `Chain' is neither function nor member function; cannot be declared friend " but i cant find what causes this.


    #include<iostream>
    using namespace...
  13. Replies
    4
    Views
    538

    Re: pass by reference

    Thank you very much for the answers
  14. Replies
    4
    Views
    538

    pass by reference

    #include <iostream>
    using namespace std;

    void prevnext (int *x, int *prev, int *next)
    {
    *prev = *x-1;
    *next = *x+1;
    }

    int main ()
  15. Replies
    12
    Views
    680

    Re: using throw

    thanks if i add const it works!!Can you explain why it needs const before?
    And something else if i have a throw without a catch and try the program will terminate when executes throw?


    if(n=0)...
  16. Replies
    12
    Views
    680

    using throw

    this program when a=0 terminates with the following error "this applicationhas requested the runtime to terminate it in an unusual way" normally it have to print "error" am i wrong?


    #include...
Results 1 to 16 of 16


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center