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

    Began Watching Subscript operater "[]"

    I'm working on a bit vector class that I'm using in a current project. Basicly BitVector is a container class for storing and manipulating data a bit level. I have …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Subscript operater "[]"

    You should be able to overload the function such that it will use one with a constant function and another with a non-`const` function. First, let's simplify the existing functions …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Design Issue Regarding Vectors

    If I prompt the user for n number of printers, is there a way of creating n number of vectors on the fly as opposed to creating vectors and putting …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Design Issue Regarding Vectors

    As an aside, assuming you are using ASCII character encoding (or something else with digits in order, such as UTF-8), you can simplify the section in lines 265-282 as: if …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Translating the pseudo code

    initialize passes to zero initialize failures to zero initialize student to one while student counter is less than or equal to ten input the next exam result if the student …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Translating the pseudo code

    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 Is C binary flag atomic?

    Say I have code like this... typedef struct { unsigned A:1; unsigned B:1; } FlagStruct; extern FlagStruct *Flags; Imagine that the Flags instance is a shared resource in a multi-threaded …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Is C binary flag atomic?

    I wouldn't assume so, no. There's nothing in the standard specifying atomicity, for that or (AFAIK) anything else in C. Even if it is an atomic operation on a specific …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Problem with importing pygame

    I am new to Python and I am trying to import pygame. I am using Python 3.1 and I installed pygame 1.9.1 for python 3.1. When I try to import …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Problem with importing pygame

    **ivan.rodriguezsoria.7:** Please check the dates on the thread you are posting to before posting. This thread is over three years old.
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching open source

    hi all i have ekiga open source code that i want to modify but when i open the downloaded code in the text editior all i get is rubish i …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in open source

    That sounds like either it got corrupted in the download, or else you are opening the tarball without extracting it. What is the name of the exact file you are …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Editing a text file

    Hello. I am a complete newbit to Python. I am trying to read a text file (which is actually an svg file) and add a line to the text file. …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Editing a text file

    Assuming you are taking the approach you have started with, I would recommend defining a functiont that seeks for the last example of a substring in a string: def findLast(s, …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching What is REST API ? can any one explain it with example simply.

    What is REST API ? can any one explain it with example simply.
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in What is REST API ? can any one explain it with example simply.

    If you are asking about [RESTful APIs](http://lmgtfy.com/?q=RESTful+%20API) in general, that rather a larger question. To start with, an API is an [Application Programmer Interface](http://en.wikipedia.org/wiki/Application_programming_interface): basically, a set of hooks into …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching help me answer this 1 plis

    The bank already has a Java application. But they want certain new features to be added and some existing functionality to be changed as per their new policies. For this, …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in help me answer this 1 plis

    Iamthwee is correct, we don't. If you post whatever code you have written yourself, and ask a meaningful question about how to complete the project, we should be able to …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching TCP server in python

    Hello guys..!! I'm new to python and I have a task which require me to write a simple TCP server which will interact with the web browser. I have done …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in TCP server in python

    Are you certain you don't mean to write an *HTTP* server? TCP is a transfer layer protocol used to send the packets peer-to-peer, and while World Wide Web (HTTP) messages …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in i've created code to find sqrt without math.h ,what is wrong with the code?

    > so i don't have to wrire it and i've tried this way many times with different prog and there is no wrong with it .. Only because you are …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching i've created code to find sqrt without math.h ,what is wrong with the code?

    've created this code to find Sqrt without math.h but gives me wrong values ! So what is wrong ?? #include <iostream.h> #include <conio.h> main() { double n,end,start=0,mid; cin>>n; end=n/2; …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in i've created code to find sqrt without math.h ,what is wrong with the code?

    > firstly main() is C++ Actually, no, it isn't, at least not without the return type. In C++, you cannot define a function without explicitly defining it's return type. Since …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching about '::' and MFC

    "MFC is not a language; it is a native (unmanaged) class library which is a thin wrapper around the Win32 API." now see these header function: void CMyAxUICtrl::OnDraw(CDC* pdc, const …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in about '::' and MFC

    The scoping operator (`::`) is a standard part of C++, not anything specific to MFC. It has three main uses: * It indicates the membership of a method to its …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Help with getting a function to execute continuously

    This is the best I've been able to come up with; unfortunately, it does not exit correctly. from graphics import * import tkinter as tk import threading import random class …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Help with getting a function to execute continuously

    I wasn't able to test your code at all, actually, as I don't know where the `graphics` package was from. I was able to find it eventually, but I haven't …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Help with getting a function to execute continuously

    Getting back to the main question, the problem is that a `Timer` runs exactly once, then exits when the runnable function has finished. What you actually seem to want is …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Help with getting a function to execute continuously

    I am working on a simple project and I need a little help. I have created a program that draws circles on a canvas. The circles are blue, and the …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Help with getting a function to execute continuously

    Setting aside the timing issue, I would recommend storing the Circle data in a tuple, which should simplify the logic of the program significantly: def flash(self,count): diameter = 25 centers …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Help,C++: What is wrong with my dynamic arrays

    I believe what you actually want is to create an isolateral matrix *k* rows by *k* columns, where *k* is a value entered by the user, correct? Tha would be …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Trying to make two variables equal each other within a if statement

    here is *part* of my code: newvalue1 = difference + c newvalue2 = difference + d newvalue3 = difference2 + cc newvalue4 = difference2 + dd if dice == dice2 …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Trying to make two variables equal each other within a if statement

    Assumiong that this is the exact code you are running, the error is that you are omitting the colons following the `if:` and `elif:` conditionals.
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Need help with Struct.

    OK, that clarifies quite a bit. I think what you need is to define the struct type as I explained, and declare a single pointer to that type; then, once …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Problem with the coversion code

    Hello again good people, i have done some coding on lexical analyzer phase of compiler but it is giving me some error that i am unable to understand.. Fair Warning: …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Problem with the coversion code

    A few questions and comments, not directly relevant to your problem but possibly important: * What version of Dev-C++ are you using? The older Bloodshed edition is now ten years …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Need help with Struct.

    Actually, Richard, I suspect that that would not be the correct solution to the problem. Indeed, I have a pretty good idea of where this is going. **DkgMarine:** Could you …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Need help with Struct.

    So i'm new to C and i have a problem with struct, so when i run the program it goes to the_struct2 asks for first name and thats it. why …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Need help with Struct.

    Oh, I think that there's a definite issue with the code as written, then. First off, the code is wrong syntactically; if it compiles, I would be surprised. You are …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Help,C++: What is wrong with my dynamic arrays

    please help me i need a dynamic array that get the information as a matris and give me the vertex degrees (sum every row).and send it to another matrix. #include …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Help,C++: What is wrong with my dynamic arrays

    > i and j does not have the value of theri own. they are just counters. I believe that this was Moschops' point. You are using them as the sizes …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching How to sort a vector based on int in Class

    Is there a way to sort a vector with a class that has an int variable? I want to have my vector sorted and printed in console. I want to …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in How to sort a vector based on int in Class

    Can you explain a little more about your intended design, please? This looks a like a control block for a file handle, but just what you mean to do with …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching How to pop up a message while processing - python

    I want to do exactly how these search engines do, ![52ec8527edb271dac9465a607d37b068](/attachments/large/4/52ec8527edb271dac9465a607d37b068.png "52ec8527edb271dac9465a607d37b068") But I want to show the same thing using pop-up message, where there shouldn't be any buttons, and …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in How to pop up a message while processing - python

    What graphics package are you using? The one that comes standard with Python is TkInter, so I would assume that one, but if you are using a different one the …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Priority Queue like Fifo Queue

    Mind you, despite the name, a [priority queue](http://www.cplusplus.com/reference/queue/priority_queue/) is nothing like a FIFO queue in its behavior; it rather is a [heap](https://en.wikipedia.org/wiki/Heap_%28data_structure%29) which keeps the objects it contains in a …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching Priority Queue like Fifo Queue

    Is there a way to mimic creating multiple queues like this but with priority queue? This is what i have but i want to now use a priority queue. queue<PCB> …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in Priority Queue like Fifo Queue

    Could you post the full error message you are getting, please? (The compiler and OS you are using would help as well.) If you could also give more information about …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Began Watching ATM Program strlen not working

    Hello I'm working on this final project. I need to create an ATM program with a unique pin code. However every time I run the p I have done 3 …
  • Member Avatar for Schol-R-LEA
    Schol-R-LEA

    Replied To a Post in ATM Program strlen not working

    I suspect the real problem is an old issue which comes up from time to time in C: the fact that the standard C I/O functions are all buffered, stream …

The End.