• Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Efficiently using registers

    Hi Daniweb, I'm new to Assembly level programming and have been given an assignment in MIPS. Having started to plan the assignment, I have come to a rather open ended …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Efficiently using registers

    This is something of a difficult question to give a fixed answer for, as the efficiency of 'register painting' (as it is called by compiler writers) depends largely on the …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching which is assembly instruction in iapx 8088

    i need some information about the Assembly instruction in processor iapx 8088. if there is any link of any articles that can help me then plz send me this is …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in which is assembly instruction in iapx 8088

    The [Intel 8088](http://en.wikipedia.org/wiki/Intel_8088) was, among other things, the CPU of the original IBM PC, and the modern Core i*x* processors are the distant descendants of that model. Thus, there are …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Java to Assembly

    I'm trying to find all the prime factors of an inputted number. I was given the following Java code to convert to assembly. String getFactors(int number) { String answer = …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Java to Assembly

    Since you don't mention what architecture and assembler you are writing it for, it is hard to judge whether it is correct or not. I am assuming it is for …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Write My Program For Me

    Can someone please write this program for me? Your program will accept as input only unsigned integers in the range 2 .. 65535. If the user enters a value that …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Write My Program For Me

    First off, we don't do other people's homework for them. Second, we don't do other people's homework for them. And third, we don't do other people's homework for them. Sensing …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching balancedparantheses

    I dont no how to fix. Can someone help me out plz. (Please see the picture) [IMG]http://i61.tinypic.com/2r2cfnq.png[/IMG] #ifndef DYNINTSTACK_H #define DYNINTSTACK_H class DynIntStack { private: // Structure for stack nodes …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in balancedparantheses

    Ah, I think I see the problem: the function is a method of the clas, but you did not scope the function as being part of the class in the …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Some doubts about C++ ...

    I have some doubts concerning some basic C++ concepts, and would be very thankful, if someone would kindly clear the doubts: a) Every variable of a data type occupies a …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Some doubts about C++ ...

    Please, don't dig up old threads by posting unrelated questions in them - start a new thread with a title appropriate to you question. Also, you're 'explanation' of the problem …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching how do i do this?

    import random #allows a random value to be produced a = input("Enter name for character 1") #variable verified, reports information to user b = input("Enter name for character 2") #variable …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in how do i do this?

    Probably the simplest way is to use the standard function `max()`: skill = max(0, skill - change) I notcied that you aren't using any functions for this so far. I …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Why us C++ better for system programming than Java?

    Just like the title says, could you give me arguments for it?
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Why us C++ better for system programming than Java?

    You may find [this page](http://wiki.osdev.org/Languages) at OSdev.org enlightening on the subject. Basically, the main reason Java in its usual form is problematic for systems programming is that it compiles to …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching MUL two numbers of of one byte and then show the result

    I am a new to assembly and i am asked to multiply two 3x3 matrices and then show the given result. I am having problem in multiplication as mov al,5 …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in MUL two numbers of of one byte and then show the result

    Unfortunately, the answer depends on information you haven't given us yet, namely, the operating system you are using (Windows, Linux, MacOS, etc), and if it is Windows, if you are …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Function Problem

    I'm trying to understand this function. I try to compile an run it, but it gives an error message at line 12. Thanks. #include <iostream> #include <string> #include <cmath> using …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Function Problem

    **nullptr**: While I agree that removing `using namespace std;` and explicitly scoping is a Good Thing, the problem here doesn't seem related to that. Both of the overloads of `pow()` …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching How do I add char to char[1024]?

    #include <iostream> #include <conio.h> using namespace std; int main(){ char command[1024]; char newchar; cout << "Command Line Interface Test with Intellisense" << endl; cout << endl; newchar = _getch(); command …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in How do I add char to char[1024]?

    Unfortunately, that approach *won't* work; there is no append operator for plain character arrays, and `strcat()`, the append function for C-style strings (which aren't *quite* the same thing) doesn't work …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Where To Start

    Hello, Please I want to be a good Programmer atleast be able to do something on my own, I will like to know where to start learning from, Which lang. …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Where To Start

    While it is hard to give general advice on this matter - different languages appeal to different programmers - as a rule I recommend learning some HTML markup first, before …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Syntax Error Python script

    You dropped a comma between the values for `'site_id'` and `'user_id'`. Easy mistake to make, hard to find once it has been made - I've done it myself a number …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Syntax Error Python script

    I have a python script that connects to my database and updates it with a file that i specify. But i keep getting a syntax error on line 5 and …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Syntax Error Python script

    Can you post the full traceback, please? It is hard to determine what ther error is without seeing the error messages. On a guess, though, it is that you need …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in why isnt deep copy working?

    While it does add an extra wrinkle to the process, I would argue that many of the conceptual problems you are having will be solved if, rather than having a …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in queue implimentation

    OK, that does clarify things a good deal. Basically, you want a list whose elements are themselves list of characters. This is fairly easy to do, fortunately. I assume that …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in queue implimentation

    Are you talking about a queue of queues, or perhaps a tree of some kind (which from some points of view can be seen as a list of lists)? Please …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching c++

    Hello Does every function in C++ returns value? If yes what is that value and what is the use?
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in c++

    No, some functions have no return. These functions are declared as having a `void` type, to indicate that they don't. void foo(int bar) { cout << bar << endl; } …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching queue implimentation

    please give me a code of multiple linked queue in data structure using c++
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in queue implimentation

    First off, we don't do other people's homework for them. Second, we don't do other people's homework for them. And third, we don't do other people's homework for them. Sensing …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Boolean Data Type in C++

    i want to understand that what is bolean data type in c++. I tried to my best but i can not understand boolean data type plz help me
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Boolean Data Type in C++

    The built-in Boolean data type in C++, `bool`, is quite simple: it is a data type which can hold one of two values, `true` or `false`. It can be used …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Computer Science Final Year Project Ideas

    Ouch. I should have guessed that would be the case.
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching infix to postfix

    I have a homework to make a calculator(infix-to postfix) and I need to do it asap. I get always an error when I run this code(Enter a postfix expression (or …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in infix to postfix

    > NameError: global name 'Stack' is not defined – How do i fix this error? Do you have a class named `Stack` somewhere in another file? If not, you'll need …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Computer Science Final Year Project Ideas

    Hello everyone, I'm a 3rd year uni student from Staffordshire. Now at the placement and looking for a Super Cool Final Year Project. My final year is starting this August …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Computer Science Final Year Project Ideas

    This is all getting very repetitive, in this thread and [others](http://www.daniweb.com/software-development/computer-science/threads/452680/help-porject-topic-needed#post1962794). Can someone make a sticky FAQ with project suggestions?
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Memory

    what is difference between heep and stack memory give simple consept.
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Memory

    [This post](http://www.daniweb.com/software-development/cpp/threads/425578/only-delete-pointers-declared-with-new-operator#post1819772) may prove helpful. It covers heap memory in detail, while giving an overview of local memory with links to how it is implemented on the stack.
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching why isnt deep copy working?

    hi so i have to make a copy of a linked list i made last week and this time i just have to update it with a deep copy concept …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in why isnt deep copy working?

    Actually, it is not that minor a mistake: you never allocate any `listrec` nodes for the new list. What is surprising is that this doesn't cause a segfault, as you …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching C code errors

    **what can i do with this errors?please help me! thanks** >#ifndef WS2811_h >#define WS2811_h >#include <avr/io.h> >#include <util/delay.h> >#include <WS2811.h> **Error 1 unterminated #ifndef** >typedef struct __attribute__ ((__packed__)) { > …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in C code errors

    Since this is a question about C, rather than C++, you should have posted it in te C forum. The two languages are distinct, despite their close relationship. I expect …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Question About Borland Turbo C 2.01 IDE

    Just a quick question, and I should know the answer, but can't remember it. You use Ctrl-K B Ctrl-K K to block text for moving, copying, etc. How do you …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Question About Borland Turbo C 2.01 IDE

    For what it is worth, you can find a copy of the [reference guide](http://www.scribd.com/doc/59246820/Turbo-C-Version-2-0-Reference-Guide-1988) at Scribd.com; a quick look at it indicates that the answer you want is (I think) …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Are computer scientists really programmers?

    If you reason with science, technology and Engineering, you will understand that science deals with the study to understand whereas technology devices ways to use those theories and observable techniques, …

The End.