Search:

Type: Posts; User: Passwaters

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,516

    Help with a chunk of assembly code

    Hello, i'm trying to disassemble some code from assembly.



    mov eax, [rbp+INT_A]
    cdqe
    movzx edx, [rbp+CHAR_AB]
    mov [rbp+rax+char_90], dl
  2. Taking a value from a function for use in main

    Trying to get some data found in a function for usage in the int main part of the program. Specifically the size of a section in bytes.
    Tried using external int variable inside and outside of the...
  3. Replies
    11
    Views
    4,891

    Reversing file input

    I can get the code to flip every string/word. But i need to stop strings when they include special characters.
    INPUT: Homework 1 is due on Friday. Good$$?Luck!
    OUTPUT: krowemoH 1 si eud no .yadirF...
  4. while(*t != ' ' && *t != '\0') if (*s == ' ') ...

    while(*t != ' ' && *t != '\0')
    if (*s == ' ')

    I tried adding *s/t || '$' to these lines, but that didnt seem to work
  5. Reversing String from .txt ignoring special characters

    The .txt file says "The Homework is due on Friday. Good$?Luck!"

    Console:
    The Homework 1 is due on Friday. Good$?Luck!
    ehT krowemoH 1 si eud no .yadirF !kcuL?$dooG
    It should be like this: ehT...
  6. I guess a better question would be, why does it...

    I guess a better question would be, why does it sometimes assume a = 0?
  7. I think thats what im trying to figure out, i...

    I think thats what im trying to figure out, i reckon i need another case statement, or if statement, but don't know how to write it.

    if(A[i] == not an integer)
    {
    goto blah;
    }
  8. For loop with nested switch statement help

    When i get to the 9th number and enter anything other than an integer, it's printing a 0
    Input integers separated by a space to store into Array A: 8 8 8 8 8 8 8 8 8 .
    8 8 8 8 8 8 8 8 8 0
    10
    ...
  9. Have this set up, how can i only take in four...

    Have this set up, how can i only take in four integers instead of all ten from the user?



    #include<stdio.h>
    #include<stdlib.h>

    int main(void)
    {
    int i = 0, A[10];
  10. Storing input into an array until not a number is entered

    I have an assignment that asks a user to input at most 10 integers to be stored into an array. The code i have now, i believe wants exactly 10 integers.
    How can i manipulate the input of the array...
  11. Replies
    1
    Views
    2,947

    Storing ints into an array

    #include<stdio.h>
    #include<stdlib.h>


    int main(void)
    {
    int i = 0, A[10];

    printf("Input a set of up to 10 integers separated by a space to store in Array A: ");
    fflush(stdout);
  12. > vs >>

    Noted and fixed, thanks for the response!
  13. Utilized two >= statements with an AND

    #include <stdio.h>#include<stdlib.h>
    #define MAX 10


    int main()
    {
    char a[MAX], b[MAX], c[MAX];
    int number1, number2, number3;
    printf("Enter 3 integers separated by a space: ");
    ...
  14. What should i be using instead? I figured it out,...

    What should i be using instead? I figured it out, i needed >= instead of >>!
  15. Sorting three integers from the user in ascending order help

    Hello,
    I'm trying to get a user to input 3 integers (including negatives) and then sort those three into ascending order. When i type in 4 -2 9 which is the example, i kept receiving -2 4 9 but no...
Results 1 to 15 of 15