Perfect ::embarrassed again::
That's what I had before, but I forgot to change the variable to parse for from int to char... (no wonder)
Thanks :)
Type: Posts; User: cDev
Perfect ::embarrassed again::
That's what I had before, but I forgot to change the variable to parse for from int to char... (no wonder)
Thanks :)
My old code didn't compile...
I wasn't familiar with get and put, so I asked what's the best way to copy the text file...
With getline() I have gotten farther:
int MAX_LENGTH = 100;
...
Ok, cool thnx
:)
Oh it is...thanks ::embarrassed::
So, what's the best way to parse the input file and output each line to the output file?
Hey, I'm helping my friend with this program. Two problems:
1. Is there an escape character in C++ to ignore a \ in a path?
for example in Perl I would just use another \ as in C:\\Progra~1\
2. I...
Thanks, I had a feeling that might have been the case...I added in the missing functions and it works now :)
Working on a mac and getting an 'undefined symbols' error when I try to compile this push pop program. I don't see a problem in my code; I'm wondering if it could be a problem with the gcc version I...
lol, thanks :)
Hi, I'm learning about basic functions and trying to debug my code but I'm pretty sure it matches my book exactly. I've looked it over a few times and it looks ok but I'm still getting errors...so...
It does terminate actually, after you enter anything for rate. Try it.
edit: try this:
{
printf("Enter # of hours worked (-1 to end):");
scanf("%d",&hrs);
if(hrs == -1){
Thanks Cactus_Hugger,
I think my friend is going to go the IE shortcut route, but thanks for the code snippet; I will test it out myself what the heck it could come in handy :)
Well, he has about 7 swf files, so he wants to make it so upon startup the exe will launch a certain swf file; I believe a different one every day of the week. Salem, you are correct, he wants to...
Hi,
My friend wants to launch upon booting windows an .swf file he created by creating an .exe that basically says (launch whatever.swf in new window.) Is this something that can be done in C, or...
itsme86 --
I knew hash coding would be important for a program such as this, but was unsure of how best to utilize it. I think you provided another very good solution. I see what you mean about...
itsme86 --
I think swapping the nibble is actually pretty effective, since in effect I would think you would always end up with a random character. I was wondering how easy it would be to modify...
Thanks dwks and itsme86, great ideas. itsme86, I like what you came up with. I am going to play around with this some more. I know I could make this more sophisticated, but this is a great start,...
Ok, I think I have fixed the character issue;
#include <stdlib.h>
#include <stdio.h>
int main(void) {
int length = 8;
int r,i;
Whoops, you're absolutely right. What I really want this program to be able to do is to take in a given password and spit out an encrypted version, but in such a way that it produces the same result...
I think it's more of a question of what your preference is, and what problems exactly you have experienced using Dev-C++. I have not used C-Free but one limitation it has is that it is shareware...
Hi, I am new to C and I am trying to write a program that will take in regular easy to remember passwords like 'JohnDoe' and encrypt them with random characters. This is what I have so far:...
How annoying is that? When I was in undergrad my college forced us to purchase Microsoft Visual Studio, and it turned me off from programming because I hated using it. Now Linux has helped me to...
dwks --
Cool, thanks :)
This worked as kind of a quick and dirty fix:
#include <stdio.h>
int main(void)
{
int ch;
Thanks for the info...I downloaded Dev-C++ and so far I like it...however, when I double click the exe my program comes up for a second then gets killed. I have to navigate to it in DOS to get it to...
Actually, my code is based on the book I am learning from; The C Programming Language (second edition) which supposedly is ANSI compliant. In any case, I think the best thing would be for me to take...
Thanks for your reply, that is interesting and good to know! :)
I am slightly more familiar with the Linux environment than Windows...but I wanted to make sure there wasn't a problem with my...