3,059 questions
0
votes
1
answer
57
views
What are the "set of values" for a user-defined type (UDT) in OOP languages?
I’m a PHP programmer looking to deepen my theoretical understanding of computer science concepts, specifically Abstract Data Types (ADTs) in the context of object-oriented programming (OOP).
And my ...
-2
votes
1
answer
212
views
Eclipse ADT with Android 14 SDK?
I have an app that works with any Android starting from 2.3.3
I did it on Windows XP with Eclipse Luna with ADT.
Now Google Play store requires the app to target the Android 14
SDK Manager in Eclipse ...
5
votes
1
answer
1k
views
Android Studio gets stuck in "Terminating the app" every time I want to run a program in emulator... beginning of: kernel, system, crash, main
sorry but this is probably going to be a long one. Its my first time building an App with Android Studio and pretty much with Java. I'm trying to build a Chronometer. It was doing good and running ...
1
vote
1
answer
3k
views
Git repository change scanner and check configuration has encountered a problem,
Got these errors after updating eclipse the current Version: 2023-12 (4.30.0)
Build id: 20231201-2043
Tried lot of things but doesn't work, These errors are appearing frequently and not able to work.
0
votes
1
answer
56
views
how to define adt constructor for `int list` z3 adt dotnet api
how to define adt constructor for int list
Context.MkConstructor(name: string, recognizer: string, ?fieldNames: string array, ?sorts: Sort array, ?sortRefs: uint32 array) : Constructor
The ...
1
vote
1
answer
966
views
Android Studio: product flavor combination with more than two flavor dimensions and build type
When working with more than 2 flavors, ADT/gradle doesn't currently support overriding with a subset of the flavors.
i.e. I have flavors apple/orange, red/green, bad/good. Then I can have resource/...
1
vote
2
answers
217
views
Ad-hoc Polymorphism vs. Data Constructors in Haskell
Defining different data constructors for a type, and then defining functions using pattern matching over them resembles ad-hoc polymorphism in other languages a lot:
data Shape = Circle Float | ...
0
votes
0
answers
56
views
How to use Textview output for another class method?
I have just started using eclipse adt(android developer tool) and i am working on electricbill calculator app. The app interface looks like this: App interface
The user will input a value in previous ...
0
votes
1
answer
74
views
How to properly encapsulate a linked list struct in another struct in C?
I'm trying to create an abstract data type HiddenHeaders and accompanying functions (IsEmpty and Enqueue) whose low-level structure would be transparent to the user writing main(). Initialization of ...
1
vote
3
answers
901
views
LogCat displaying messages as one single long string (no linebreaks)
Upon connecting my Android device (Redmi 6A, running Android 8.1) via USB debugging, LogCat displays all messages in a single line, instead of displaying each message in its own line:
Any idea why ...
0
votes
1
answer
43
views
What, in Eclipse, modifies a project's .classpath to add the attribute exported="true" to classpathentry?
Looking at a .classpath file of a project that I inherited, I found the following difference between the committed file (to Git) and the working directory:
- <classpathentry kind="con" ...
1
vote
1
answer
77
views
Unable to a Custom Collection into a text File
I'm creating a generic type ArrayQueue and I'm trying to save an ArrayQueue into a text file.
My code:
public void saveToFile(ArrayQueueInterface<Payment> paymentQ){
try {
File file =...
0
votes
1
answer
53
views
Linked Queue ADT implementation, Lost node
When I implemet the dequeue() method, and in the following code
def dequeue(self):
if self.is_empty():
print("The Queue is empty")
return
answer ...
0
votes
2
answers
115
views
Why must h’’(k) be an integer less than m in double hashing
Double hashing takes on the following form:
h(k)=(h’(k)+ i * h’’(k)) mod m
If m is a table size that is relatively prime to h’’(k), then wouldn’t choosing a h’’(k) value that is a prime number but ...
1
vote
1
answer
136
views
Sorting an ADT Queue
I'm tasked to create a Person class that holds their name and age, create a Queue class that can hold an array of objects and then sort them alphabetically and by age using the quicksort algorithm.
...