Search:

Type: Posts; User: alexhollis

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    3,076

    Matrix File:

    Here's the matrix for input.

    To use, redirect stdio Unix style "./a.out < input.txt"

    --

    Thanks


    Alex
  2. Replies
    5
    Views
    3,076

    I was having issues with the matrix formatting...

    I was having issues with the matrix formatting when copying it to the forum. Here's a google drive link to the dat file with the matrix. I use cygwin gcc to compile the code. It runs with unix...
  3. Replies
    5
    Views
    3,076

    Glitch with Dijkstra's Algorithm

    Hello,


    I'm working on implementing Dijkstra's Algorithm in C, and have run into a glitch. I can't seem to tack down the source of the glitch, but whenever I give my program the 25 node matrix,...
  4. Replies
    7
    Views
    6,358

    Segmentation Fault with Vectors~

    I'm attempting to create a Hash Table using vectors for open hashing. The issue is the program runs just fine in NetBeans IDE, however when run on the older unix based test server, it seg faults....
  5. Replies
    2
    Views
    2,582

    Updated Code:

    I've gotten it to now connect to external websites, but they keep sending back a 404 page, or bad request.

    I'm using the get request "GET /index.html HTTP/1.0\r\n\r\n"

    Here's the new code:
    ...
  6. Replies
    2
    Views
    2,582

    C http proxy remote server issues

    I'm having an issue with my attempt at a single threaded proxy server. It appears I have established a proper connection with the remote server specified by the client (ex:...
  7. Replies
    1
    Views
    3,412

    C Proxy Write problems

    I wrote an HTTP server and simple single threaded proxy for a class awhile back, and I'm now trying to fix an issue that came up then that only happened when testing it using an external browser....
  8. Replies
    1
    Views
    2,838

    C++ Program Problem - Tree

    I have been having some difficulty with implementing a program that makes a LCRS Binary Tree from the users input. I need to have the program implement insertion, search, height, and preorder. So far...
  9. Replies
    5
    Views
    4,267

    Just put in the destructor, it works! thank you...

    Just put in the destructor, it works! thank you for pointing me in the right direction.
  10. Replies
    5
    Views
    4,267

    Sorry about the surplus blank lines, I fixed...

    Sorry about the surplus blank lines, I fixed those with Notepad++, but is there a tool like TextFX that can do that in Netbeans?
  11. Replies
    5
    Views
    4,267

    C++ Binary Adder Error on exit

    I have been having some difficulty with one of my first more complex C++ programs. The program adds the input as I would expect, the problem is when I give it the quit command, it works fine in...
  12. Sorting array of pointers to structures, nothing swapping??

    I have managed to get this most recent project of mine to compile and run just fine, the data displays as it should, however, the purpose of this project was to sort structs (DBrecords) in various...
  13. Replies
    9
    Views
    8,800

    Yes, that is correct, but as this is a intro...

    Yes, that is correct, but as this is a intro programming course, they promised to only give 319 "names" no longer than 30 characters. But in the future, we will be utilizing "malloc" to make the...
  14. Replies
    9
    Views
    8,800

    Updated Search and Driver

    I went and made changes to the search and driver, the search still doesn't finish, it gets killed by linux. I removed the weird "+/- 5 parts" after thinking through what it was doing.

    search.c
    ...
  15. Replies
    9
    Views
    8,800

    Re:

    Fixed the scanf no more '&', as for the cat and keyboard reference, this program doesn't get input from the user, I give it a file called data.dat through unix, and that fills in the array.
  16. Replies
    9
    Views
    8,800

    Sorting Strings: Binary Search for string

    I need help fixing the search method for my program. I have managed to get a variety of errors from "Killed" to "Segmentation Fault: 11" when it comes time to find the number for a word, then use bit...
  17. Replies
    8
    Views
    2,186

    :D:D:D:D I managed to find the problem after re...

    :D:D:D:D I managed to find the problem after re reading over my code, I had two variables flipped, so it was changing my main array to memory allocations. The only difficulty I'm having now if...
  18. Replies
    8
    Views
    2,186

    I modified the code to now ask for the array to...

    I modified the code to now ask for the array to fill in, and all compiles, but I'm thinking somewhere along the way the mainarr is being changed, because at output all of the scores are memory...
  19. Replies
    8
    Views
    2,186

    Compiles, but there's a problem with the output.

    The program now compiles, but either an array isn't storing properly, or handing over properly.
    Here's the updated code:



    #include "constants.h"#include <stdio.h>


    int StudentAverage(int...
  20. Replies
    8
    Views
    2,186

    Need help returning Arrays,

    I need help getting my latest program to return arrays. I now know I'm supposed to use pointers, because you can't directly return an array, but I have no idea how to convert my program to do this....
  21. Replies
    14
    Views
    6,073

    yes, it appears that the checks aren't working,...

    yes, it appears that the checks aren't working, or formatted right, which is what is making none of the counts increase.
  22. Replies
    14
    Views
    6,073

    Need help working with Strings in C

    I have been trying to understand how to accomplish the tasks needed for this project I'm working on which goes in and returns number of sentences, etc, but I'm pretty sure I'm either leaving out a...
  23. Replies
    3
    Views
    13,819

    Updated Code

    I went and applied the fixes, it works now, but it pauses with that flush code, is there a better place for the flush while command?


    // Program Two CSE 1030 Alexander Hollis...
  24. Replies
    3
    Views
    13,819

    C Programming Assignment Problem

    I have a programming assignment where the user selects from pre-defined choices for a day of the week (S-Sunday, R-Thursday, A-Saturday, etc.) and then if it is a weekend, it prints back it's the...
  25. Replies
    1
    Views
    2,131

    Need help with rounding in simple program

    I've copied my code below, basically I'm making a program where the user gives the dimensions of the room to be painted, and the number of windows, doors, and skylights each have a standard area...
Results 1 to 25 of 25