Search:

Type: Posts; User: johngoodman

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    964

    This is the test text file: this is a test...

    This is the test text file:

    this is a test
    this is only a test
    this is also a test

    I just want to allocate memory and store each character in an array on the allocated memory
  2. Replies
    8
    Views
    964

    Here's another thought I had : int i =...

    Here's another thought I had :


    int i = 0;
    char* stackArray[100];
    //char* ar = (char*)malloc(*count)*sizeof(char));
    do {
    scanf("%s", &stackArray[i]);
    ...
  3. Replies
    8
    Views
    964

    Simple array help needed

    I have a text file with spaces and new lines, how do i read it into a character array such that to maintain the formatting?


    int main(){
    char* ar = readScores();

    }

    char* readScores() {
Results 1 to 3 of 3