Search:

Type: Posts; User: Flip

Search: Search took 0.01 seconds.

  1. Thread: findfirst

    by Flip
    Replies
    3
    Views
    4,648

    findfirst

    im struggling to get findfirst to work in C++ i am using Microsoft Visual C++. Trying to fing all gifs in a directory. I found this following code is the general way of achieving this....


    ...
  2. Thread: fstream

    by Flip
    Replies
    9
    Views
    1,040

    no im 18 and finished education last year....this...

    no im 18 and finished education last year....this is purely just trying to learn C++ by setting myself little projects. this is just a small function of wat i need to do i have already written all my...
  3. Thread: fstream

    by Flip
    Replies
    9
    Views
    1,040

    #include #include using...

    #include <fstream>
    #include <iostream>
    using namespace std;

    int main () {

    char buffer[];
    int size;

    ifstream file_in ("new.txt",ios::in);
  4. Thread: fstream

    by Flip
    Replies
    9
    Views
    1,040

    yeah i got the psuedo...im just struggling with...

    yeah i got the psuedo...im just struggling with the actual program
  5. Thread: fstream

    by Flip
    Replies
    9
    Views
    1,040

    fstream

    im quite confident reading and writing to files but i was wandering how it would be possible to lift records from one file and put it into another file

    for example two text files and i want to...
  6. Thread: Arrays

    by Flip
    Replies
    2
    Views
    771

    aaah yes lol that would explain alot.....thats...

    aaah yes lol that would explain alot.....thats the narrowed down version of wat im doing and may explain the rest of the weird behaviour!

    thank you!
  7. Thread: Arrays

    by Flip
    Replies
    2
    Views
    771

    Arrays

    why does my second loop (for a....) not return pupil[0] it will only start from pupil[1]



    #include <iostream>
    #include <string>
    using namespace std;

    int main(){
    char *pupil[10]= {
  8. Thread: Floating point

    by Flip
    Replies
    7
    Views
    1,528

    ok thank you i've done this soo far.... ...

    ok thank you i've done this soo far....



    int check_string(string x1){
    unsigned int pos = x1.find(".",0);
    int y = 0;
    if(pos != string::npos){
    cout << "Invalid input! Conversion...
  9. Replies
    13
    Views
    1,584

    Thank you i did a bit of thinking and got...

    Thank you i did a bit of thinking and got everything solved! no im just trying to learn C++ and decided to set myself a task of using the remainder method for number conversion.
  10. Thread: Floating point

    by Flip
    Replies
    7
    Views
    1,528

    Floating point

    Is it possible to check to see if a user has used a floating point number as of an integer?
  11. Replies
    13
    Views
    1,584

    oh and yes i have comiled with C++ before im just...

    oh and yes i have comiled with C++ before im just strugglin to get used to the environment and the debugging


    in the VB code the last loop takes the last character of the string and places it...
  12. Replies
    13
    Views
    1,584

    I think wat im really aiming for is to add an...

    I think wat im really aiming for is to add an integer onto the end of a string

    like....

    suppose (psuedo code)

    x is an integer

    rslt is a string
  13. Replies
    13
    Views
    1,584

    Ok i've tried using your suggested...

    Ok i've tried using your suggested solution..which looks good....although i cannot compile it due to the following erros:

    here is the code



    #include <iostream>
    #include <string>
    #include...
  14. Replies
    13
    Views
    1,584

    Strings and binary

    Ok im kinda new to C++

    How can i increment a string by adding an integer value onto the end?

    i am converting a decimal number to binary using the remainder method
    in other words divide x by 2...
Results 1 to 14 of 14