Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 25
Member Avatar for ruval002

ok so first of all my following code its suppose to read input from user and seperate the strings into commands and arguments.For example if i input changeDir hello , the tokenizer(which i already implemented) will split it and put changeDir into tokens[0] and hello into tokens[1]. Now what im …

Member Avatar for ruval002
0
158
Member Avatar for ruval002

i have a problem with my following code, note: this is just part of my code when i run it, lets say i enter hello world it will output: hello segmentation fault is there a way i can fix this? [CODE] void input::read_line() { string command; while(command != "exit") { …

Member Avatar for Ancient Dragon
0
189
Member Avatar for ruval002

so i have the following code, it inserts a number to a list and then i call my sort function which is below this function, the problem is that my sort function takes forever, is there a way i can implement my insert function so that everytime it inserts a …

Member Avatar for Ancient Dragon
0
130
Member Avatar for ruval002

i need help with my makefile. This is my first time dealing with one.I have ,ll.C and main.C, and one header file called ll.h main.C has the header file ll.h included and some other libraries ll.C has the header file also. and when i compile it i get this error: …

Member Avatar for caut_baia
0
157
Member Avatar for ruval002

OK so im measuring how much time on some part of my program and it only shows me microseconds. i want to know how can i change this so it would give me seconds something like this "1.0325 second its what i want, not 1035000 microseconds any help will be …

Member Avatar for WaltP
0
111
Member Avatar for ruval002

im having trouble timing my loop, note, this is just part of my main file [CODE] #include <iostream> #include<sys/time.h> struct timeval tv1, tv2; struct timezone tz1,tz2; long totalT; int const times = 500; gettimeofday(&tv1, &tz1); for ( int i = 0; i times; i++) { //do something, } gettimeofday(&tv2, &tz2); …

Member Avatar for WaltP
0
96
Member Avatar for ruval002

ok so i have an array like this which contains an id, a myState of type State and pointer next which points to the next id [CODE] struct PCB { int id; STATE myState; Process *next; }; [/CODE] i have the following function which should decrement all the current values …

Member Avatar for WaltP
0
885
Member Avatar for ruval002

ok, i need help with changing the state of a process. So far my struct Process has an integer which contains the priority and a pointer next which points to another process, and i need to add a state so that every time i call the function insert() it would …

Member Avatar for L7Sqr
0
457
Member Avatar for ruval002

i need helping constructing an array of structs, this is my part of my header file which contains the following struct [CODE] struct PCB { el_t id; // contains the priority of the process string state; // current state of the process (e.g running) PCB *next;// link to the next …

Member Avatar for ruval002
0
201
Member Avatar for ruval002

I need help how to change the state of a process using link list queue. any help is appreciated. This is part of my code. what i need is that every time i insert a process im suppose to change its state to READY, and every time i need to …

0
79
Member Avatar for ruval002

So i have implemented the following link list, but i just want to know if i can sort the link list. any help? [CODE] #include<iostream> #include"ll.h" using namespace std; // PURPOSE: contructor which initializes front and rear to NULL and count // to 0 LL::LL() { front = NULL; rear …

Member Avatar for Kanoisa
0
275