Search:

Type: Posts; User: cDev

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: file I/O problem

    by cDev
    Replies
    8
    Views
    1,220

    Perfect ::embarrassed again:: That's what I...

    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 :)
  2. Thread: file I/O problem

    by cDev
    Replies
    8
    Views
    1,220

    My old code didn't compile... I wasn't...

    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;
    ...
  3. Thread: file I/O problem

    by cDev
    Replies
    8
    Views
    1,220

    Ok, cool thnx :)

    Ok, cool thnx
    :)
  4. Thread: file I/O problem

    by cDev
    Replies
    8
    Views
    1,220

    Oh it is...thanks ::embarrassed:: So, what's...

    Oh it is...thanks ::embarrassed::

    So, what's the best way to parse the input file and output each line to the output file?
  5. Thread: file I/O problem

    by cDev
    Replies
    8
    Views
    1,220

    file I/O problem

    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...
  6. Thread: undefined symbols

    by cDev
    Replies
    6
    Views
    1,883

    Thanks, I had a feeling that might have been the...

    Thanks, I had a feeling that might have been the case...I added in the missing functions and it works now :)
  7. Thread: undefined symbols

    by cDev
    Replies
    6
    Views
    1,883

    undefined symbols

    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...
  8. Replies
    2
    Views
    1,572

    lol, thanks :)

    lol, thanks :)
  9. Replies
    2
    Views
    1,572

    errors with basic function

    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...
  10. Replies
    14
    Views
    1,829

    It does terminate actually, after you enter...

    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){
  11. Replies
    5
    Views
    4,690

    Thanks Cactus_Hugger, I think my friend is going...

    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 :)
  12. Replies
    5
    Views
    4,690

    Well, he has about 7 swf files, so he wants to...

    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...
  13. Replies
    5
    Views
    4,690

    startup script to launch .swf file

    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...
  14. Replies
    11
    Views
    9,760

    itsme86 -- I knew hash coding would be important...

    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...
  15. Replies
    11
    Views
    9,760

    itsme86 -- I think swapping the nibble is...

    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...
  16. Replies
    11
    Views
    9,760

    Thanks dwks and itsme86, great ideas. itsme86, I...

    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,...
  17. Replies
    11
    Views
    9,760

    Ok, I think I have fixed the character issue; ...

    Ok, I think I have fixed the character issue;



    #include <stdlib.h>
    #include <stdio.h>

    int main(void) {
    int length = 8;
    int r,i;
  18. Replies
    11
    Views
    9,760

    Whoops, you're absolutely right. What I really...

    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...
  19. Replies
    10
    Views
    7,739

    I think it's more of a question of what your...

    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...
  20. Replies
    11
    Views
    9,760

    random password generator

    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:...
  21. Replies
    8
    Views
    1,257

    How annoying is that? When I was in undergrad my...

    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...
  22. Replies
    8
    Views
    1,896

    dwks -- Cool, thanks :) This worked as kind...

    dwks --
    Cool, thanks :)

    This worked as kind of a quick and dirty fix:

    #include <stdio.h>

    int main(void)
    {
    int ch;
  23. Replies
    8
    Views
    1,896

    Thanks for the info...I downloaded Dev-C++ and so...

    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...
  24. Replies
    8
    Views
    1,896

    Actually, my code is based on the book I am...

    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...
  25. Replies
    8
    Views
    1,896

    Thanks for your reply, that is interesting and...

    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...
Results 1 to 25 of 26
Page 1 of 2 1 2