CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: quietcoder

Search: Search took 0.08 seconds.

  1. Thank you Federal102 That worked perfectly. ...

    Thank you Federal102 That worked perfectly.

    *quietcoder jumps out chair overjoyed. Then sits down and fishes the program with a giant smile* :D

    Thanks to everyone for your replies, time, and...
  2. I thank you Japha I do belive your on the right...

    I thank you Japha
    I do belive your on the right track. There may need to be a loop that checks to see if its reading a charicter from the "word" and adding that charicter to another string[80]...
  3. although getline(textbeforeword, 80, '-') is...

    although getline(textbeforeword, 80, '-') is almost there the space before and after the dash needs to be included so it will get all the text in the lines below until it reaches " - " and not stop...
  4. this is what I tried and failed with getline. ...

    this is what I tried and failed with getline.

    #include <fstream.h>
    int main()
    {
    ifstream fin("test.txt");
    int maxbuf = 80;
    char userinput[maxbuf];
    char textbeforeword[maxbuf];
    char...
  5. sorry about the wording. Well, the attempt here...

    sorry about the wording. Well, the attempt here is to use the variable that the user input say " - " spaces included and get the text from a file such as 'test.txt' wich contains say, "Part#36832 -...
  6. getline or some way to get input from a file until it reaches a word

    I'm using Dev-C++ 4

    what I'm trying to do is get a line at a time first for the text that comes
    before a word/string that the user inputs, that will usually begin with a
    space. Second for the...
  7. i just don't know whats wrong with bmp app

    i'm using Dev-C++ 4.

    it will compile and i can run the program, however the bmp is not viewable in the preview app. You can open the bmp file in paint.
    although its not the intended output for...
  8. :eek: ignore this post. no modification was...

    :eek: ignore this post. no modification was needed as it was already set up to accept integers for r, g, b, w, and h, i am switching from the case statement to an if for the text menu. that should...
  9. 3 errors that that i don't know how to fix.

    i'm using Dev-C++ 4

    any help in resolving these errors is very much appreciated
    1st error: 285 txt2bmp.cpp
    case label `'n'' within scope of cleanup or variable array

    2nd error: 285...
  10. well it almost worked. except i don't have an...

    well it almost worked. except i don't have an stdafx.h file. at first compile there was only one error that the stdafx.h file was not found, after remarking that line out it produced 31 errors. The...
  11. 2 questions on basics of DIB bitmaps in C++

    I'm using Dev-C++ 4.
    question one: How do I create a DIB bitmap in memory?

    question two: How do I save it to the hard drive?
  12. Replies
    1
    Views
    762

    help basic DIB bitmap

    I'm using Dev-C++ 4. I've been looking for a tutorial that explains how to create, write to, and save a DIB bitmap. When said write to it I meant that the program would write to it and not the user....
  13. Replies
    2
    Views
    3,884

    Application Programming Interface

    Application Programming Interface
  14. Replies
    4
    Views
    815

    what im asking is how can i detect the number of...

    what im asking is how can i detect the number of charaters in a row of the same character in a text file? is there a function or somthing that checks that?
  15. Replies
    4
    Views
    815

    well what i ment was how many characters in a row...

    well what i ment was how many characters in a row of the same character.

    starting with this text in a file

    aababbbaaabbbbaaaabbbbbabbbb
    user input
    what character do you...
  16. Replies
    4
    Views
    815

    characters in a row

    im using dev-c++
    how can detect if there are (user input) x number of characters in a row, in a text file?

    current partaning code

    # include <fstream.h>
    void main()
    {
    ofstream fout;
    ...
Results 1 to 16 of 16





Click Here to Expand Forum to Full Width

Featured