should the functions be handled this way?
void execute_instruct(){
switch (IR )
{
case 0xA:
printf("==> Execute Instruction LOAD MQ\n");
load_MQ(verbose); ...
Type: Posts; User: overlord21
should the functions be handled this way?
void execute_instruct(){
switch (IR )
{
case 0xA:
printf("==> Execute Instruction LOAD MQ\n");
load_MQ(verbose); ...
hello everyone i've got this assignement where i have to demonstrate the fetch and instruction cycle of an IAS machine
Until now i've implemented the needed functions
but my issue is regarding...
This a math problem? but what the hell yu say i told that i have problems with the recursive formula as it gives strange results for 3 x 3 matrice and more
Hi i have problems calculating the determinant of more than a 2 x2 can anyone help
nt determinant(int matrix_temp[10][10],int size_matrice) //Get the minor of the matrice
{
int...
Hi i have problems calculating the determinant of more than a 2 x2 can anyone help
nt determinant(int matrix_temp[10][10],int size_matrice) //Get the minor of the matrice
{
int...
void view_account(char *filename)
{
int count=0;
int i=0;
account t[30];
FILE *file=fopen(filename,"rb");
if(file!=NULL)
{
here i have the function that is supposed to delete a selected account and display the change in the file, but this instead removes all the account and leave only one. Can anyone help
void...
this problem is only in when this is called in the delete function
well here's the view account stuff. It works fine the other function but displays only the last account created is displayed
void view_account(char *filename)
{
int count=0;
int i=0;...
any idea?
the problem i guess is within the deleting loop. In fact, after the execution of this fuction it delete all except the last one
void account_delete(char *filename)
{
what is the real problem plz i don't understand
should i inset a fwrite in the for loop of "i"?
even if out of topic can anyone tell why did function removes all but on account as i only want to remove one?
void account_delete(char *filename)
{
int count=0,i=0,g,h;...
void change_password(char *filename)
{
int pos;
char pwd[20];
account temp;
sorry the delete operation works but those where i need to modify the record still doesn't write the modified code here is a function wich modify the password of an account record
even if i remove the read there is no change .also in other functions i nedd to read the record to modify and then write it back.
the viewall function display all the content off the file
i'm trying to delete an account in my file but the problem is that i can reach my position depending on my index but i cann'ty write in this record
void account_delete(char *filename)
{
...
ok even if declared the "i" this doesn't sort any explanation
in the for loop its already initialized no? (for i=0....)
in the for loop its already initialized no? (for i=0....)
for the sorting part here's the whole program but the sort() function crashes
#include <stdio.h>
#include <ctype.h>
#include <string.h>
typedef struct account
{
char name[20];
the comment represent the standard method of checking the digits but it didn't work and i don't realy know how to implement it in the fill_account
need to adapt the check_password function with the program above
i need help with checking if there's a number or a digit in an imput which is here the password
void fill_account(account *c)
{
int flag=0,i,sum;
printf("give the name of account...