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
Type: Posts; User: Passwaters
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
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...
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...
while(*t != ' ' && *t != '\0')
if (*s == ' ')
I tried adding *s/t || '$' to these lines, but that didnt seem to work
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...
I guess a better question would be, why does it sometimes assume a = 0?
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;
}
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
...
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];
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...
#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);
Noted and fixed, thanks for the response!
#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: ");
...
What should i be using instead? I figured it out, i needed >= instead of >>!
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...