Search:

Type: Posts; User: Oonej

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    1,586

    We need to have an array of structures holding...

    We need to have an array of structures holding all the students info, and a structure linked list of the students classes he's enrolled in.

    The third structure isn't mandatory, it is something we...
  2. Replies
    14
    Views
    1,586

    Ok, after trying to digest that code I'm still...

    Ok, after trying to digest that code I'm still sorta lost, as is my partner.

    Maybe we just aren't grasping some feature.

    Here is the reworked code:



    typedef struct class_node {
    ...
  3. Replies
    14
    Views
    1,586

    Structures - Linked List

    I have 3 structures:

    The first one is an array, which needs to point to class_node in order to make a list. I am not sure how to approach this. I've reviewed all the web tutorials, the book etc...
  4. Replies
    2
    Views
    783

    Understanding Struct

    trying to compile this example to get a better understanding of structures... but i keep getting errors.


    #include <stdio.h>

    struct database{
    int id_number;
    int age;
    float salary;
    };
  5. SSH Secure Shell - command line

    SSH Secure Shell - command line
  6. too many arguments for format /tmp/cc3hMW6h.o: In...

    too many arguments for format /tmp/cc3hMW6h.o: In function [function name]

    what does that refer to?

    and also how do i amend the math.h file with -lm? never used it before
  7. btw - this compiles fine and works 100% in my...

    btw - this compiles fine and works 100% in my DevC++ IDE, but doesn't compile on the SSH server, do i need to amend the header files in the compile on the SSH or something?
  8. #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <ctype.h>
    #include <math.h>

    can't post code, as this is a class project and students in my class view them... not looking to get a F for...
  9. incompatible implicit declaration of built-in function

    warning: incompatible implicit declaration of built-in function âstrlenâ
    warning: undefined reference to `sqrt'
    warning: implicit declaration of function âstrcmpâ
    warning: implicit declaration...
  10. Replies
    30
    Views
    5,572

    I can't post my full code, since i can't delete...

    I can't post my full code, since i can't delete it and had people from my class taking my work on the last several projects.. not looking to get into trouble for posting full code, but i can post...
  11. Replies
    30
    Views
    5,572

    as for the count to 0, remember we are...

    as for the count to 0, remember we are intializing the first array element uArray, copied from textArray.

    so 1 is fine. since we know that is already in the array.
  12. Replies
    30
    Views
    5,572

    i'm not using global variables, i'm simply taking...

    i'm not using global variables, i'm simply taking the function that gets the words and sending back an int value from that function to a variable in the main function. From there i'm sending the size...
  13. Replies
    30
    Views
    5,572

    Its actually hanging up on the 6th word or...

    Its actually hanging up on the 6th word or something, thats why its crashing.

    by hanging up i mean, it doesn't change words and keeps checking the same words over and over again
  14. Replies
    30
    Views
    5,572

    I did make that change, i made a counter when...

    I did make that change, i made a counter when storing the words to be used in this function.. so if it only stores 137 words it will only loop 137 times in that function. So it works well that way.
  15. Replies
    30
    Views
    5,572

    First glance I noticed a problem with the code,...

    First glance I noticed a problem with the code, it doesn't increment i at all..

    I think I get it. Is this the final code you are suggesting?



    void get_Uwords(){
    int i, j, count = 1;
    ...
  16. Replies
    30
    Views
    5,572

    Yeah I dropped the third dimensionally , made it...

    Yeah I dropped the third dimensionally , made it SOO much easier to work with... but ran into a snag :(

    trying to find unique words but my logic is flawed again, any tips?

    textArray carries all...
  17. Replies
    30
    Views
    5,572

    We wont be doing anything past this little bit...

    We wont be doing anything past this little bit dealing with text i/o from files, we already have our last project which is dealing with a whole different ball park.

    He just had a...
  18. Replies
    30
    Views
    5,572

    We are simply doing a word counter, ignoring all...

    We are simply doing a word counter, ignoring all punctuation and digits
  19. Replies
    30
    Views
    5,572

    The way he broke it down was as follows: [i]...

    The way he broke it down was as follows:

    [i] = lines
    [j] = words
    [k] = characters

    but for the project i don't see the necessity in that. Do you?

    We are just storing the text into arrays,...
  20. Replies
    30
    Views
    5,572

    void get_words(){ int ch, i = 0, j = 0, k =...

    void get_words(){
    int ch, i = 0, j = 0, k = 0, q = 0;


    while ((ch = getc(fp)) != EOF) {


    if(isspace(ch) || iscntrl(ch) || isdigit(ch) || ispunct(ch)){
    ...
  21. Replies
    30
    Views
    5,572

    Yeah i've been trying. Will give it another go...

    Yeah i've been trying. Will give it another go around :) you cleared a few things up! thanks quzah!
  22. Replies
    30
    Views
    5,572

    no it doesn't really do anything, had that in...

    no it doesn't really do anything, had that in there before i added the other code. I wanted it to store the alpha's only. Thanks for the catch. but it doesn't resolve my issue.
  23. Replies
    30
    Views
    5,572

    I'm actually goign with a different approach: ...

    I'm actually goign with a different approach:


    void get_words(){
    int ch, i = 0, j = 0, k = 0;
    char ch_holder;

    while ((ch = getc(fp)) != EOF) {

    ch_holder =...
  24. Replies
    30
    Views
    5,572

    FGETS from text to array

    Hey guys,

    I need to access a text file and store the data into a 3 dimensional array.

    I'm having issues getting the info into an array, from there I can manipulate the text as needed. But the...
  25. Replies
    23
    Views
    3,643

    yeah i caught the missing semicolon, but still...

    yeah i caught the missing semicolon, but still getting for all my functions ; incompatible pointer type.
Results 1 to 25 of 41
Page 1 of 2 1 2