Search:

Type: Posts; User: Mikro

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    3,201

    Mixing BASH with C

    How do you mix BASH with C. What I am trying to do is with a c-program take input into two arrays and then send them into any BASH command and execute the command. I have tried doing it with copy but...
  2. Replies
    2
    Views
    1,880

    Model View Control (MVC)

    Is there a book or a website that goes in detail about MVC. I have only seen very brief introduction to MVC and now would I like to know more about it.
  3. Replies
    3
    Views
    1,797

    How about this. #include ...

    How about this.



    #include <fstream>
    #include <iostream>

    using namespace std;

    int main()
  4. Replies
    4
    Views
    1,829

    http://cboard.cprogramming.com/showthread.php?t=54...

    http://cboard.cprogramming.com/showthread.php?t=54127
  5. Replies
    20
    Views
    24,335

    Finally it has been solved void filter()...

    Finally it has been solved



    void filter()
    {
    int rsum = 0;
    int gsum = 0;
    int bsum = 0;
    int ksum = 0;
  6. Replies
    20
    Views
    24,335

    void filter() { int rsum = 0; int gsum =...

    void filter()
    {
    int rsum = 0;
    int gsum = 0;
    int bsum = 0;
    int ksum = 0;
    Pixel p;
    bmp = new Bitmap(bitmap.getHeight(), bitmap.getWidth()); // Dynamically createas an empty Bitmap...
  7. Replies
    20
    Views
    24,335

    Latest version of my source. void...

    Latest version of my source.



    void filter()
    {
    int rsum = 0;
    int gsum = 0;
    int bsum = 0;
    int ksum = 0;
  8. Replies
    20
    Views
    24,335

    Huh, I didn't manage to get this thing to work so...

    Huh, I didn't manage to get this thing to work so I asked two of my friends if they were able to pull it off and neiter of them succeded. I am beginning to wonder if there is something wrong with the...
  9. Replies
    20
    Views
    24,335

    void MyImageProcessingApp::sharpen() { ...

    void MyImageProcessingApp::sharpen()
    {
    bmp->initFromBMP("test.bmp");
    Pixel **matrix = new Pixel*[bmp->getHeight()];

    for (int i = 0; i < bmp->getHeight(); i++)
    matrix[i] = new...
  10. Replies
    20
    Views
    24,335

    Bubba thanks but what I am trying to do is a...

    Bubba thanks but what I am trying to do is a solution that is close to standard C++ as much as it can be. I am aware of getCopyOfPixel() and setPixel() are not standard. It feels like I have hit the...
  11. Replies
    20
    Views
    24,335

    void MyImageProcessingApp::sharpen() { ...

    void MyImageProcessingApp::sharpen()
    {
    bitmap1.initFromBMP("test.bmp"); // Reads the Bitmap file
    t = new Bitmap(bitmap1.getHeight(), bitmap1.getWidth()); // Dynamically createas an...
  12. Replies
    20
    Views
    24,335

    void sharpen() { int sharpen[3][3] = {{0,...

    void sharpen()
    {
    int sharpen[3][3] = {{0, -1, 0}, {-1, 5, -1}, {0, -1, 0}};
    bitmap2.initFromBMP("test.bmp"); // Reads the bitmap file

    for(int i=0; i < bitmap2.getHeight();...
  13. Replies
    20
    Views
    24,335

    Blur and sharpen a bitmap

    Is there a tutorial or an algorithm that describes how you implement a blur or sharpen function for bitmaps in standard C++.
    I am not talking about Microsoft or UNIX stuff but independent stuff.
    ...
  14. Thread: What is size_t?

    by Mikro
    Replies
    2
    Views
    1,492

    What is size_t?

    What is size_t and when do you use it. I can't find any info about it in my books.
  15. Replies
    3
    Views
    6,326

    Subclass and subtype.

    In oop what is the difference between a subclass and a subtype?
  16. It works, thanks.

    It works, thanks.
  17. How to check if two circles intersects each other?

    How can you check if two circles intersects each other in one way or another? The intersect function in CCircle.cpp is the one that I am having trouble with.

    This is what I have done so far.


    ...
  18. Thread: Merge Link list

    by Mikro
    Replies
    4
    Views
    1,396

    Take a look here....

    Take a look here.
    http://cboard.cprogramming.com/showthread.php?t=54127
  19. Think now the problem has been solved. ...

    Think now the problem has been solved.

    IntLinkedList.h



    #ifndef _INTLINKEDLIST_H_
    #define _INTLINKEDLIST_H_

    struct Node
  20. My printlist function. void...

    My printlist function.



    void PrintList(struct Node * L)
    {
    struct Node * P = L;

    if (L == NULL)
    printf("Empty list\n");
  21. I have made the changes but when I insert for...

    I have made the changes but when I insert for example the following numbers 5, 7, 4, 6 and then using the mergesort. I get the result 5, 6, 7, 4138088 instead of 4, 5, 6, 7
  22. Translating Java to C. Mergesorting linked list.

    I am having some trouble translating this java code in to C. There is something wrong with my merge sort in C. Don't know what since I get error at runtime.

    Compiler: Dev-cpp 4.8.8.0
    OS: Windows...
  23. Replies
    4
    Views
    1,333

    I have now talked to another intructor and he...

    I have now talked to another intructor and he said that placing struct in .h or a .c file makes no difference.
  24. Replies
    4
    Views
    1,333

    Correct way of using struct?

    My instructor said to me that the correct way of using a struct always should be done in a .c file instead in a header file. BUT he couldn't explain why a struct should be in a .c file.

    Can anyone...
  25. Replies
    2
    Views
    1,302

    Oh I see now what I did wrong, thanks.

    Oh I see now what I did wrong, thanks.
Results 1 to 25 of 37
Page 1 of 2 1 2