b();
Type: Posts; User: emef
b();
#include <iostream>
#include <fstream>
#include <string>
#include <stdlib.h>
using namespace std;
int main()
{
int blanks=0;
string post, name, line;
ahhhhh thanks man, got it :)
Oh, sorry :)
char *cp = (char *)malloc(STRLEN);
cp = "hello world";
reverse(&cp);
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...
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 :)
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?
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,...
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 [...
#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;...