Wonderful, thank you so much. BTW, is this a common way to loop the main section of a program? Do many other programmers do it this way? It seems suited perfectly for that use.
Type: Posts; User: m.mixon
Wonderful, thank you so much. BTW, is this a common way to loop the main section of a program? Do many other programmers do it this way? It seems suited perfectly for that use.
I thought I understood the tutorial well enough, but I keep getting an error when I try to compile. The error states "20 C:\transfer\cpp\junk\main.cpp `lm' undeclared (first use this function) " ...
If you were to copy the contents of a text file into a string, i've been using fread(), then would it not copy EOF to the last element of the string?
My line array is designed as such,
...
I'm having trouble taking a string, fed from a text file, and changing that string into an array of strings.
My goal is, everytime i hit a '\n' in the string, it creates another string in the...
I think i have more of a handle on that now.
So using your example, if i open notepad, and type 12 numbers, such as "123412341234", then using data_len = fread(buffer, 1, sizeof(buffer), in); ...
This is a continuation of my previous post, but since the problem in question has changed, I thought I'd make a new post.
My original post was:...
good job, you figured it out with minimal help.
This project looks alot like one of my first projects. The idea was that the program would generate 8 random characters, and the user would then...
ok, i have that part figured out, but now i have a new question. When I store the text file into a string, I think that setting the string to 512 bytes, it automatically fills in the rest of the 512...
ok, by "it only works with one word", i mean, if i use a line of text that includes a space, the text file created by the program, is completely empty.
I've wrote a program that takes a text file in as a string, and encrypts it, using my own, very weak, encryption key. The program works, as long as the text file contains only a single word, with no...
That would make for a funny headline, "XP Attacked by the Backspce Virus!!"
I'm not sure if I asked my question correctly. By "When are you a programmer?" I was really looking for, when would you be comfortable advertising yourself as a programmer? Such as on a resume??
I dont know about a "beep()" function, but I know you can use "\a" in any printf() to achieve a beep. Its especially funny when a cat is sitting next to your laptop :)
I've been studying C off and on for about a month. I've got a pretty good grasp on things like functions, structs, and I'm working on file I/O and pointers again. My question is, when do you know...
I've been researching similiar ideas. And I'm having trouble understanding alot of the assembly code. I've been using gdb to disassemble a couple of little programs, but I never know exactly what...
I've mostly figured out how to port Beejs guide to windows.
I'm trying out the "Gethostbyname" lookup program. And I keep getting linker errors saying,
Undefined reference to "herror"
My...
awsome. That worked. Do I have to do that for every program I write that uses networking stuff??
I tried Johnnys winsock, but I get a bunch of linker errors when I try to compile.
Using Dev-C++ for compiling.
I've tried using the code straight from the tutorial, and I downloaded the zip...
First of all, I'd like to thank everyone who participates in this forum. I've been reading some of the posts for a while, but not posted myself until now. Everyone who so freely offers their...
Ok, i'm having trouble with this if statement. I'm pretty sure I understand if statments well enough to make one this simple work right.
For aurguments sake, and also because I've tried this...