Search:

Type: Posts; User: PunkyBunny300

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,187

    Vector Iteration Problems

    Hi. I've declared a vector and now I want to add 1 to every spot in it that comes up from a random number generator. So if the number 6 came up I would want to increment vector[6] by 1. I have...
  2. Replies
    1
    Views
    1,072

    Vector Iteration Problems

    Hi. I've declared a vector and now I want to add 1 to every spot in it that comes up from a random number generator. So if the number 6 came up I would want to increment vector[6] by 1. I have...
  3. Replies
    0
    Views
    1,335

    BST Add word Node

    So I am trying to make a BST function that adds words from a .txt file. I want the function to add word, with the first letter as a sibling and all following letters as children. If a word has...
  4. Replies
    1
    Views
    1,347

    Reading in a Char*[] from file

    Hey. I"m trying to read a file of words into the array char* array[80] and I can't seem to make it work. I keep getting runtime errors when I use this:




    char* word[80];
    char str[80];
    ...
  5. Replies
    1
    Views
    722

    Accessing something in a Class

    Hey. I have this class


    class Railcar
    {
    private:
    string cartype;
    int ID;
    int train;
    public:
  6. Replies
    4
    Views
    989

    thats all the declarations before main.

    thats all the declarations before main.
  7. Replies
    4
    Views
    989

    Class issue

    This gives me an error about not recognizing railcar. What am I doing wrong?


    //
    #include <iostream>
    #include <string>
    #include <fstream>
    #include <cmath>
    #include <stack>
    #include <ctime>
  8. Replies
    5
    Views
    1,764

    stuct words *ALL[50]; Is how words got...

    stuct words *ALL[50];

    Is how words got defined! :)
  9. Replies
    5
    Views
    1,764

    Malloc problems

    THis isn't working! Help! =P



    all = (words *) malloc(sizeof(words));

    I get an error about the )!

    and it looks just fine to me :(
  10. Replies
    1
    Views
    2,636

    I figured it out :)

    I figured it out :)
  11. Replies
    1
    Views
    2,636

    Reading scientific notation

    I have a file that has some numbers in it that are in scientific notation. I need to read them in and then do some calculations with them. How would I go about doing this??

    I've tried reading...
  12. Replies
    3
    Views
    1,479

    I added the code above. I am not familiar with...

    I added the code above. I am not familiar with perror but I assume that if that condition was true it would have reported that error during compiling. The program compiled fine and when I added...
  13. Replies
    3
    Views
    1,479

    Also, previously this: fprintf (output, "%c",...

    Also, previously this:

    fprintf (output, "%c", data[j]);

    was in the place of:

    fputc (data[j], output);

    but that did not work either.
  14. Replies
    3
    Views
    1,479

    First off, thank you very much for the help! ...

    First off, thank you very much for the help!
    There is an fprintf in the .c file. So it should be printing to that file right? Also, if I open the a.out file there's a bunch of unreadable stuff in...
  15. Replies
    3
    Views
    1,479

    GNU Compiling Question

    I have this program that compiles and runs in microsoft C++ but when I try to compile with GNU either no output is produced or the output file is put somewhere and I don't know where it is! I am...
  16. Replies
    4
    Views
    1,585

    gets() Problem

    The read_integer function in the code below is weird. The first time the program runs through the loop it works just fine, taking in 2 integers and multiplying and adding them. However, if you...
  17. Thread: Help!

    by PunkyBunny300
    Replies
    1
    Views
    914

    Help!

    #include<stdlib.h>
    #include<stdio.h>
    #include<malloc.h>

    /*function prototypes*/

    void get_choice(int *choice);
    //void calculate_operation(int choice, int num, double largest, double smallest,...
  18. Replies
    4
    Views
    1,786

    :D Thanks so much! It finally works!!! Yay!

    :D Thanks so much! It finally works!!! Yay!
  19. Replies
    4
    Views
    1,786

    1 1 1 Abdelkhader El Mouaziz (31) NIKE,...

    1 1 1 Abdelkhader El Mouaziz (31) NIKE, MAR 2:10:09 2:10:09 30:26 1:03:08 1:36:51 4:58

    The stuff in bold is what I want to extract :)
  20. Replies
    4
    Views
    1,786

    Thanks :) I've tried using that... and maybe...

    Thanks :) I've tried using that... and maybe it's just that I'm tired... or maybe just that I am dumb (going for the former not the latter!) but I just can't get my program to scan up to the "(" and...
  21. Replies
    4
    Views
    1,786

    sscanf help!!

    I'm trying to read in this list of data entries and then find particular parts of the entry out. I have been told that sscanf is what to use but am having absolutely no luck! I think part of the...
  22. Replies
    2
    Views
    6,911

    fgets and EOF

    Alright, so if I use fgets how do I tell it to keep reading lines in until it reaches the end of file ?? I keep getting runtime errors if I put != EOF ... is != NULL equivalent??

    Also, if I use...
  23. Replies
    6
    Views
    1,776

    :) It looks exactly like what I was trying to...

    :) It looks exactly like what I was trying to do... just so much cleaner! I'll try it out... Thanks!!!
  24. Replies
    6
    Views
    1,776

    Removing spaces from strings

    I'm reading in very large numbers that may have unusual spacing... like 123 45 43657 4 And I need to store this number in an array of ints without all the spaces :) I'm really not very familiar...
  25. It works! Yay!!! Thanks so much guys!!

    It works! Yay!!! Thanks so much guys!!
Results 1 to 25 of 28
Page 1 of 2 1 2