Search:

Type: Posts; User: emef

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,637

    b();

    b();
  2. Replies
    18
    Views
    2,615

    #include #include #include...

    #include <iostream>
    #include <fstream>
    #include <string>
    #include <stdlib.h>
    using namespace std;

    int main()
    {
    int blanks=0;
    string post, name, line;
  3. Replies
    4
    Views
    7,027

    ahhhhh thanks man, got it :)

    ahhhhh thanks man, got it :)
  4. Replies
    4
    Views
    7,027

    Oh, sorry :) char *cp = (char...

    Oh, sorry :)



    char *cp = (char *)malloc(STRLEN);

    cp = "hello world";
    reverse(&cp);
  5. Replies
    4
    Views
    7,027

    Access Violation when writing to String

    Why do I get an access violation when I try to change the value of individual characters in a char array via pointers?

    If I pass a pointer-to-pointer-to-char (char **string) and try to change any...
  6. Replies
    4
    Views
    3,467

    Thanks Quzah, ended up optimizing and cleaning up...

    Thanks Quzah, ended up optimizing and cleaning up my code and it works great, I'm still not 100% sure why it wasn't working before but it looks better now :)
  7. Replies
    5
    Views
    1,237

    could you use a header file that holds static...

    could you use a header file that holds static getter/setter functions for the variable(s) you need, and include it in the two c files?
  8. Replies
    4
    Views
    3,467

    So how should I know when to skip over the...

    So how should I know when to skip over the escaped quotes in this line.



    printf("this is a \"quoted string");


    My code is checking each character one by one, and if it hits a " character,...
  9. Replies
    4
    Views
    3,467

    Parsing an escaped quote inside a string

    Sorry if this is a double post, I didn't see my post on the board so I am reposting.

    I've written a rudimentary syntax checking program for c code, which just checks to make sure every {, (, or [...
  10. Replies
    3
    Views
    10,606

    #include int main(void){ int i, j,...

    #include <stdio.h>

    int main(void){
    int i, j, space, repeats;
    repeats = 5;
    for(i = 1; i <= repeats; i++){
    space = repeats-i;
    while(space-- > 0) printf(" ");
    for(j = i; j < 2*i-1;...
Results 1 to 10 of 10