Ok will a little research and carefull thought I solved my problem thank you Subsonics. Much appreciated!
Wow Subsonic, why couldn't it have been that easy for me lol but what I actually did was...
Type: Posts; User: codecaine_21
Ok will a little research and carefull thought I solved my problem thank you Subsonics. Much appreciated!
Wow Subsonic, why couldn't it have been that easy for me lol but what I actually did was...
I gave the pointer a specifier. I didn't know a pointer needed one tho. And I now see the point of dereferencing. Still having trouble tho no matter what I do I get an infinite loop or just the last...
I don't know how to dereference so google here I come! But the way I was doing seesed right ya know! Point to the end of a string and reverse it till it reaches the begining and I see what you mean...
Here's the code:
int main(void)
{
Iint n;
Char *p;
Char *p2 = '\0';
Char array1[] = "Hey how are you?";
I have been trying to reverse a string with a pointer. I pointed to the end of a string literal:
P = array1 + strlen(array1) -1;
Then declare a 2nd pointer(p2) and set it to the beggining...
Oh very tuff over the computer but I am learning to program in C and have most of the basics down! so I can write my own tools. Not take other peoples work like a script kiddie. By any chance do you...
Ok maybe I shouldn't have posted the keylogger question. Not the place for it but regaurdless of the number of questions or the context of them I dont see why I couldn't be helped. This is a forum...
My appologies Salem. Thank you anyway
I am very interested in the concept of the keylogger. I have Googled it but haven't found much. Everything I find is for C sharp or C++ and I still do not know how these things are made up, and the...
Prelude, I took out the write mode and used read. Because read returns a null character if the file doesn't exists. From there I can open a file with append mode. Or whatever. Thanks!!
Swarvy, I...
Swarvy.... I see what you are saying about the w+ mode and the append mode. I will drop the write and keep the append! I just thought I had to open a file for writing before I could append to it. So...
i am trying to figure out how to check if a file exists in my void existing_file(void) function, and if not i would like to create it. The big thing that i am trying to do is prompt the user for a...
That was a very nice break down and helps a whole lot
QuadraticFighte!!!!! So when i pass an argument(s) like lets say sudo apt-get install. apt-get is an argument, install and sudo also. So when i...
Thank you CommonTater. And Adak, i didnt understand why it was used. so i asked!
i have googled and i have two books on C programming. that is why i am asking for insight and help, because i still do not understand. I try and learn on my own and if i need help i ask. that is what...
Still a tad bit confused, sorry! Why am i passing arguments to main anyway? If you may provide a more elaborate definition/explination. And may you give me a working example to run so i can see it...
I am learning how to pass arguments to main and it should not be hard to learn! But if someone could explain why it is used, what its for. i do not get the whole concept. The more/better i understand...
I am trying to learn File I/O but the way the book is "trying" to teach me is not quite sinking in!
Is there an easier way to code this?
#include <stdio.h>
#include <stdlib.h>
int...
Ok now i see! I have to be in the current directory that the file is in. Sorry i am a little slow lol Thank y'all
This is what i get when i run the commands
anthony@anthony:~$ gcc -Wall -o bkwrds_str bkwrds_str.c
gcc: bkwrds_str.c: No such file or directory
gcc: no input files
Ok PehJota now the concept that i am not understanding is "hello_world hello_world.c" i work with the terminal a lot so i shouldn't have much trouble! But the first is where i want to save the file?...
I tried to check out your link but it produces an error and says the server is busy each time i try and visit the site.
i was using code::blocks, an ide. I would like to try something new, more challenging! so i am trying to compile and run a c program from my Linux terminal. And yes, I think it is gcc.
I have googled compiling and running a program from the terminal but i am having trouble. Any help would be greatly appreciated! Thanks in advanced!
sorry man just trying to help!! This forum has helped me out a great deal! I am just trying to help any way i can. I don't want to be just a leech and not give back! Like i said i am a beginner that...