Search:

Type: Posts; User: Muscovy

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,009

    Number larger than 1410065389

    I'm trying to make a program that can handle numbers up to 9999999999, but 1410065389 seems to be my limit.
  2. Replies
    3
    Views
    1,440

    Downloading files (not sockets)

    I was wondering how to simply download files on Linux with C++, off the internet. I don't understand sockets too well, but from what I do understand your server needs to have support set up, and you...
  3. Replies
    11
    Views
    1,183

    Testing proved it to be the yes/no if statements....

    Testing proved it to be the yes/no if statements. hey're messing up when run with --emulate. I'll see if I can find why.
  4. Replies
    11
    Views
    1,183

    Through your link I found an example for Linux (...

    Through your link I found an example for Linux ( Cprogramming.com FAQ > How do I get my program to wait for a keypress? ), but I think this is talking about making it stay when the program is...
  5. Replies
    11
    Views
    1,183

    It seems my reply didn't send. I've never hear...

    It seems my reply didn't send.
    I've never hear of checking open's return. Useful.
    As to testing, I've just tested putting outputs in and seeing what it gets to.
    I wouldn't call it a crash, since...
  6. Replies
    11
    Views
    1,183

    ...ok, just 3 cins worked fine. So, here's the...

    ...ok, just 3 cins worked fine.

    So, here's the source. I discovered the problem when using my --emulate command, I tried --format, which worked fine on its own, but here it just stopped. And I...
  7. Replies
    11
    Views
    1,183

    Haha, it's about 11 KB. I'll quickly try to make...

    Haha, it's about 11 KB. I'll quickly try to make an example program, because I've seen it happen before.
  8. Replies
    11
    Views
    1,183

    Issue with >2 cin commands

    I found that when I use more than two user inputs, the program will immediately exit after the third.
    Is there a way I can stop this?
  9. Replies
    12
    Views
    2,484

    YES! It works!

    YES! It works!
  10. Replies
    12
    Views
    2,484

    The program I built is in C++, and this is in C....

    The program I built is in C++, and this is in C. I don't know how to change this to C++.
  11. Replies
    12
    Views
    2,484

    Ok, to make things simpler, here's the C source....

    Ok, to make things simpler, here's the C source.



    #include <stdio.h>
    #include <time.h>

    int main()
    {
    time_t now;
  12. Replies
    12
    Views
    2,484

    Get rid of li or s?

    Get rid of li or s?
  13. Replies
    12
    Views
    2,484

    #include #include #include...

    #include <iostream>
    #include <ctime>
    #include <string>

    using namespace std;

    int main()
    {
    time_t now;
    struct tm *d;
  14. Replies
    12
    Views
    2,484

    Good idea. #include #include...

    Good idea.



    #include <stdio.h>
    #include <time.h>

    int main()
    {
    time_t now;
  15. Replies
    12
    Views
    2,484

    Date in mm-dd or similar

    I'm trying to have a string that is the date, preferably in mm-dd format, though something like dd-mm-yyyy is equally suitable. I found out how to do it in C, and I found examples in C++ that were a...
  16. Thread: if argv

    by Muscovy
    Replies
    2
    Views
    1,470

    if argv

    I'm trying to use an if statement that runs if you have an argv called help, but it doesn't work.



    #include <iostream>

    using namespace std ;

    int main(int argc, char* argv[])
    {
  17. Replies
    3
    Views
    1,037

    I'm getting all kinds of errors. How do I...

    I'm getting all kinds of errors. How do I impliment it?
  18. Replies
    3
    Views
    1,037

    Read file as a variable

    I want to get the contents of a file, but the only way I know how to do that is


    infile.open ("filepath", ifstream::in);

    while (infile.good())
    cout << (char) infile.get();
    cout...
  19. Replies
    4
    Views
    1,022

    Thanks!

    Thanks!
  20. Replies
    4
    Views
    1,022

    Do I use it like this? .c_str(newstring)

    Do I use it like this?


    .c_str(newstring)
  21. Replies
    4
    Views
    1,022

    Putting a string in system()

    I'm trying to make a program that outputs a set string, and a variable into system(). However, I can't make system() accept it.



    #include <iostream>
    #include <stdlib.h> //For system()
    ...
  22. Thread: Time in C++

    by Muscovy
    Replies
    3
    Views
    2,534

    I don't quite understand the second part.

    I don't quite understand the second part.
  23. Thread: Time in C++

    by Muscovy
    Replies
    3
    Views
    2,534

    Time in C++

    I'm trying to get the time in months and days, but I've only found codes in C to do that.
    Actually, the intention of this is to tar a file, and record the month and day somewhere, ideally in the...
  24. Replies
    2
    Views
    1,103

    Find, search, delete

    I'm making a program for my friend's Garry's Mod server that will delete files with certain names in a given directory. I'm not sure as to how I can find file/directory names, and I'm a bit iffy on...
  25. Replies
    1
    Views
    1,965

    cout -> terminal command

    Is there a way to output something as a terminal command?
    Specifically, I want to use ooffice or something equivilent to load Openoffice.
Results 1 to 25 of 45
Page 1 of 2 1 2