Search:

Type: Posts; User: -Adrian

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Maybe try looking running applications and any...

    Maybe try looking running applications and any services that aren't disabled.
  2. Alright, point taken. I just wanted to give them...

    Alright, point taken. I just wanted to give them the simplest workable solution for test.h, since they didn't ask about source files.
  3. Replies
    2
    Views
    673

    Perform which statement in a loop, asking the...

    Perform which statement in a loop, asking the user for input? If so, you can certainly do that.


    Doesn't matter, just post your attempt. This is about learning, not proving how good you are.
  4. I beg your pardon?

    I beg your pardon?
  5. Hello vajra11, you can just put your code into...

    Hello vajra11, you can just put your code into the header file as-is; it's as simple as that!¹

    test.h


    #include <stdio.h>

    void Func() {
    static int x = 0;
    x++;
  6. Thread: Can't read int

    by -Adrian
    Replies
    11
    Views
    858

    Line #3

    Line #3
  7. Thread: Can't read int

    by -Adrian
    Replies
    11
    Views
    858

    What Jim said, it's a missing semicolon. And...

    What Jim said, it's a missing semicolon. And format your code properly, don't post such a mess here again if you want help!
  8. Replies
    7
    Views
    688

    If the files were always just: ...

    If the files were always just:


    <Flowchart.Variables>
    <Variablex:TypeArguments="x:String"Name="strDebugDt"/>
    <Variablex:TypeArguments="x:String"Name="strMailFilter"/>...
  9. Replies
    28
    Views
    885

    Post your current code, even if incomplete. No...

    I was able to do that. But I used int instead of double. Is double and int the same thing?
    [/QUOTE]
    Post your current code, even if incomplete. No point switching topics before you got that right....
  10. Replies
    7
    Views
    688

    How predictable is the structure of the XAML...

    How predictable is the structure of the XAML files? If it could be just about anything, then you'll have a hard time writing a robust solution yourself – parsing of a full grammar is a difficult...
  11. You can escape double quotes with a backslash...

    You can escape double quotes with a backslash like so:


    printf("\n\"QUIT\"");
  12. Thread: C++ Challenge

    by -Adrian
    Replies
    4
    Views
    664

    Btw, the struct keyword is superfluous in type...

    Btw, the struct keyword is superfluous in type declarations. Any struct Node* in your function can just be Node*.
  13. Replies
    2
    Views
    2,600

    Welcome rcman!

    Welcome rcman!
  14. I had a good time learning with learncpp.com...

    I had a good time learning with learncpp.com, I think it's well structured/paced to get started and fairly comprehensive. I keep recommending it to anyone asking this.
  15. Replies
    9
    Views
    591

    Way cool! :D

    Way cool! :D
  16. I'm only aware of Fortran in that respect. I...

    I'm only aware of Fortran in that respect. I think it's due to guarantees the language makes regarding aliasing. Maybe as LLVM improves further, Rust could benefit from such guarantees too, but...
  17. Replies
    2
    Views
    560

    What part confuses you? This looks like what one...

    What part confuses you? This looks like what one would expect. Do you know that an int takes 4 bytes¹ of memory? So the union only takes 4 bytes even though it contains 3 ints. If it was a regular...
  18. If you insist on discussing semantics, you won't...

    If you insist on discussing semantics, you won't get a universal answer.


    void foo(int a); // passing an integer
    void foo(int* a); // passing a pointer to an integer

    You know these two, you...
  19. The former – it passes the address, not the...

    The former – it passes the address, not the content.
  20. Replies
    5
    Views
    1,019

    if (num2 == 0) { // not '0' However, comparing...

    if (num2 == 0) { // not '0'

    However, comparing a float to 0 isn't quite as simple as that either, so I would recommend you declare num2 as an integer (num1 can stay float). It's complicated ;)
  21. Replies
    5
    Views
    1,019

    You could try that yourself as an exercise! Place...

    You could try that yourself as an exercise! Place an extra check inside the else-if section for division. If the user tries to divide by 0, you could then print a message and go to the next iteration...
  22. Replies
    7
    Views
    1,107

    exercise2.cpp:17:19: error: C++ requires a type...

    exercise2.cpp:17:19: error: C++ requires a type specifier for all declarations
    void read_ages(&name, n) // member function
    ^
    exercise2.cpp:17:25: error: unknown type name 'n'
    ...
  23. Replies
    7
    Views
    1,107

    Do you come from another programming language?...

    Do you come from another programming language? You should have learned about function calls and scopes before touching the class construct. Go back to the section about functions and how to define...
  24. Replies
    5
    Views
    1,019

    Without having put much thought into this, here...

    Without having put much thought into this, here is a quick solution:


    if (op == 'x')
    {
    cout << "Are you sure you would like to exit?" << endl;
    cout << "Enter y to exit" << endl;
    ...
  25. Replies
    2
    Views
    601

    int main (void) { int a = 5; // 'a' starts...

    int main (void)
    {
    int a = 5; // 'a' starts existing here
    printf ( "\n a : %d", a);

    function(); // 'b' starts existing and stops existing here

    return 0; // 'a'...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4