Search:

Type: Posts; User: TIMBERings

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    2,803

    Quadratic and Gaussian Blur

    This is a paint like program, where on a click or drag, a circle with certain fills will appear.

    I'm having issues with the Quadratic and Gaussian Brushes. Each provide me with a small dot, the...
  2. Replies
    5
    Views
    3,155

    The first four are the headers, the last is where...

    The first four are the headers, the last is where I'm trying to implement it.


    /**
    * \author CSci5107 Guru
    *
    * \file BrushApp.h
    * \brief Main application class for the Brush assignment
    ...
  3. Replies
    5
    Views
    3,155

    Everything seems its where it should be for...

    Everything seems its where it should be for headers.
  4. Replies
    5
    Views
    3,155

    Inheritance issue

    I'm trying to run this line of code:

    m_brush = new ConstantBrush(m_brush->m_color, m_brush->m_flow, m_brush->m_radius);

    m_brush is of type Brush, which is a superclass to ConstantBrush. I'm...
  5. Replies
    4
    Views
    1,203

    Is there a different way to load .gif and .jpeg...

    Is there a different way to load .gif and .jpeg as opposed to .txt or .html? If not, we can't load the images.
  6. Replies
    4
    Views
    1,203

    You guys were both right, thank you.

    You guys were both right, thank you.
  7. Replies
    1
    Views
    1,218

    SOLVED: Web Server Issues in C

    I am having an issue sending information to my browser on a valid request.
    This is the header file we create on a valid file, printed out to the console.


    My socket is set up to listen, and...
  8. Replies
    4
    Views
    1,203

    Web Server Issues

    I am having an issue sending information to my browser on a valid request.
    This is the header file we create on a valid file, printed out to the console.


    My socket is set up to listen, and...
  9. Replies
    0
    Views
    1,780

    Doxygen maps

    I'm trying to create an include graph for my doxygen. I get a section for it, but no actual graph. The same thing with collaboration graphs,. I also want an include graph to go on my main page, but...
  10. Replies
    1
    Views
    1,835

    string padding

    I'm getting this error
    Game.cpp:645: warning: cannot pass objects of non-POD type ‘struct std::string’ through ‘...’; call will abort at runtime
    Game.cpp:645: warning: format ‘%*s’ expects type...
  11. Replies
    9
    Views
    1,472

    I got it, turns out i copied a similar code to...

    I got it, turns out i copied a similar code to make this one and forgot to change "foul" to "shot", I was looking at it for 30 minutes without finding it.

    Thank you though.
  12. Replies
    9
    Views
    1,472

    That's what the ...

    That's what the
    (event->getType().compare("shot")==0) is for. Each GameEvent has a variable string type which tells me that it's a shot. Also, I'm know why the segfault exists, but I'm wondering...
  13. Replies
    9
    Views
    1,472

    dynamic_cast

    I'm trying to downcast from a GameEvent* to a Shot*


    void Game::addEvent(GameEvent* event) {
    boardTime=&(Time)(event->getTime());
    int timePeriod=event->getTime().getPeriod();
    if...
  14. Replies
    9
    Views
    2,408

    I finished with this, and it compiled. Now I...

    I finished with this, and it compiled. Now I just hope it gets me what I want;


    const Player* Team::getPlayer(int number) const{
    map<int,Player>::const_iterator it;
    ...
  15. Replies
    9
    Views
    2,408

    While we're at it, along the same lines: ...

    While we're at it, along the same lines:





    map<int, Player> players;

    const Player* Team::getPlayer(int number) const{
  16. Replies
    9
    Views
    2,408

    I know there's not a pointer in this one. That's...

    I know there's not a pointer in this one. That's why I hadn't put const at the end of the declaration, because I thought it only applied to pointers.
  17. Replies
    9
    Views
    2,408

    const string Person::getName() const{ const...

    const string Person::getName() const{
    const holder=name;
    return holder;
    }


    This works. I thought the const after the function dealt with the pointer, not the function itself.
  18. Replies
    9
    Views
    2,408

    const string Person::getName(){ const...

    const string Person::getName(){
    const holder=name;
    return holder;
    }
  19. Replies
    9
    Views
    2,408

    TICPP and const issues

    I'm getting this error:



    ticpp::Element Game::toXML() const {

    Team* home=homeTeam;
    Team* away=awayTeam;

    ticpp::Element game=("Game");
  20. I've looked and asked else where, and I just...

    I've looked and asked else where, and I just can't find a solution. Is it the makeargv that's the problem?
  21. it is static

    it is static
  22. Error: cannot call member function without object

    We have been stuck on this for an hour now.

    We're getting an error:


    Here's our code:


    GameEvent* GameEvent::fromString(const Game &g, const string &s){
    const char *inputHold=s.c_str();
  23. what we had was something like: Time(){} and...

    what we had was something like:


    Time(){} and GameEvent(){}

    We were asked to remove these, and once we did we started getting those errors.
  24. Erros with lack of default constructors and inheritance

    We're dealing with inheritance and we've been asked to remove the default constructors. I've been looking for answers in 3 different books and online and how found nothing really helpful.

    ...
  25. Thanks, been looking at this code for a while and...

    Thanks, been looking at this code for a while and just overlooked it.
Results 1 to 25 of 44
Page 1 of 2 1 2