Search:

Type: Posts; User: ScoutDavid

Search: Search took 0.01 seconds.

  1. std::string greetings[] = {"hey","hi","hello"};...

    std::string greetings[] = {"hey","hi","hello"};
    Is this a vector?
  2. Is there a way to make a vector an array of...

    Is there a way to make a vector an array of strings?

    Thanks
  3. Thanks much, I have a few questions though. ...

    Thanks much, I have a few questions though.

    This function works with two arguments, the original string and the final string (result). It seems to be like the out string is of type vector, but...
  4. Splitting string in chunks of 2 characters

    I have a string of type std::string, and I want to split it so that 210100 would become 21 01 00 in an array of strings of type:



    std::string name[] = {"21","01","00"};


    However, I have no...
  5. Replies
    6
    Views
    1,557

    This is what I like the most :D I have another...

    This is what I like the most :D

    I have another question, how to use more than one function? Ok, I'm not that dumb:



    #include <iostream>

    using namespace std;
  6. Replies
    6
    Views
    1,557

    C++ Array of Strings

    I have a question, a newbie question, though:

    I need to create an array of strings like this:


    groupBits7 = ['10','11','12','13','14','15','16','17','18','19','1A','1B','1C','1D','1E','1F']
    ...
  7. Replies
    2
    Views
    2,942

    Drag and Drop files/Read and write files

    Hello everyone,

    How to make a C program that reads a file when it is dragged over it? (.exe).

    I'd also like to know more about writing files with C (links possibly ? ;D).

    Thanks in advance,...
  8. Replies
    5
    Views
    1,687

    Text Editor Colours

    Hey everybody, I have a simple text Editor.NET in C#.

    How can I make certain words be coloured, for an example text editors for programming a certain language will colour words such as "while"...
  9. Replies
    16
    Views
    2,230

    wooh that makes sense, thanks much!

    wooh that makes sense, thanks much!
  10. Replies
    16
    Views
    2,230

    Thanks much! However, I still have a doubt:...

    Thanks much!


    However, I still have a doubt:


    while (!strcmp(answer,password))
    {
    printf("Wrong Password");
    scanf("%s", answer);
  11. Replies
    16
    Views
    2,230

    So how do I make it work for like infinite...

    So how do I make it work for like infinite characters, since I don't know what the user is gonna write, for example: user's name.
  12. Replies
    16
    Views
    2,230

    #include #include int...

    #include <stdio.h>
    #include <string.h>

    int main(void)
    {
    char answer[0];

    printf("Welcome to Formulum!\n");
    printf("\nWhich formula do you want to use?\n");
    scanf("%s",...
  13. Replies
    16
    Views
    2,230

    #include int main(void) { char...

    #include <stdio.h>

    int main(void)
    {
    char answer[0];
    char formula1[1] = "a";

    printf("\nWhich formula do you want to use?\n");
    scanf("%s", answer);
  14. Replies
    16
    Views
    2,230

    If String Help

    Hey everybody, hadn't came here in a while, but i just got stuck:



    #include <stdio.h>

    int main(void)
    {
    char answer[0];
  15. Replies
    6
    Views
    1,915

    Thank you. The getch() is for the application...

    Thank you.

    The getch() is for the application not to close that quick and the conio.h is there because I don't know which ones I need, so I just put all the ones I know in the include :D
  16. Replies
    6
    Views
    1,915

    Logic, Else If, Else and If

    #include <stdio.h>
    #include <conio.h>

    int main(void)
    {

    int age;

    printf("Enter your age: ");
    scanf("%f", &age);
  17. Replies
    14
    Views
    2,402

    "On my honor, I will do my best to do my duty,...

    "On my honor, I will do my best to do my duty, and always post my code with code tags around it."


    I did it actually, not hightlight but code it

    I'm in a Python Forum as well and am a long...
  18. Replies
    14
    Views
    2,402

    Thank you very much!

    Thank you very much!
  19. Replies
    14
    Views
    2,402

    #include #include int...

    #include <stdio.h>
    #include <conio.h>

    int main(void)
    {
    float num1;
    float num2;
    float sum;

    printf("Enter your first number: ");
  20. Replies
    14
    Views
    2,402

    I've gotten there: "You need to use %f in...

    I've gotten there:

    "You need to use %f in scanf if you are trying to get a floating point number."

    Thank you very much!
  21. Replies
    14
    Views
    2,402

    #include #include int...

    #include <stdio.h>
    #include <conio.h>

    int main(void)
    {
    float num1;
    float num2;
    float sum;

    printf("Enter your first number: ");
  22. Replies
    14
    Views
    2,402

    Basic Sum Calculator

    Hey everybody, I started programming C today, and here I am posting my first doubt:


    #include <stdio.h>
    #include <conio.h>

    int main(void)
    {
    int num1;
    int num2;
Results 1 to 22 of 22