Member Avatar
First question, is there any difference between binary search and recursive binary search??? I looked through google and everything but couldnt find any useful info. I did find irritative and recursive but that was it. and second question: Given a desired search value of 98 and an array with the …
by noobjavacoder in Programming ()
Member Avatar
what I am trying to do is store same letter to same node. For example: let say I have person, people is sent to be put into a node. This will create two node. I want to some thing like P: Person People Person and People are same note When …
by chubbyy.putto in Software Development ()
Member Avatar
` ... ` ... I try to make program convert decimal to binary but, it adds the decimal number again.
by phony in Software Development ()
Member Avatar
So, I've written a Custom Binary Format outline but I'm not sure how to translate it to code. I was looking for a few tips on where to get started? Here's my outline. ...
by Doogledude123 45 in Software Development ()
Member Avatar
Hi..i m new here..i want to ask some little help..how can i save the listbox items into binary file? The items should write at specific location which is offset 0x2E (item1), 0x9A (item2) and 0x106 (item3)..each offset separate by 108 length..
by Mr._1 in Software Development ()
Member Avatar
Write a program in object code that will convert a 3-bit binary number to a decimal number,For example, if input is 101, output should be 5; if input is 011, output should be 3. that is what I have to do,this is what I have so far but its not …
by goha1414 in Software Development ()
Member Avatar
Hello to all in forum, Maybe some java expert could help me. How can I read chunks from binary file each chunk at a time? The chunks are separated with the bytes D2 followed by A7 and of variable length. This is whenever D2A7 is found, this is the End/Beginning …
by Garidius in Software Development ()
Member Avatar
I'm having problems with this program. Everytime i enter a fractional decimal number, it displays -0.0000 or sometimes garbage values. Ex: Enter any fractional decimal number: 5.7 -2.888blah blah blah garbage another Ex: Enter any fractional decimal number: 25.7 -0.000000 ...
by EarhawkPH in Software Development ()
Member Avatar
I you ever would have the need to do this conversion you probably would use which does the job. Here is presented another way to do this with some simple formatting included. Some highlights for newbies and not so newbies: Line 9: Custom enum type Line 37: const calculation Line …
by ddanbe 2,372 in Software Development ()
Member Avatar
I'm trying to modify this code: So that it adds parentheses around every operator and pair of operands. I just don't understand where I have to put the parentheses in this to make it work... Any help would be great please!
by kxjakkk in Software Development ()
Member Avatar
hi all, this is some extra credit from class we sat around cleaning up code today this is what we came up with we get five points extra credit if we can shorten any further. So my question iscan someone explain to me the ^ character and is that the …
by stephen.teacher in Software Development ()
Member Avatar
Hello all!Im trying to write a program that accepts a string from users and then converts each character in the string to its corresponding 8-bit binary code and store it for further manipulation on obtained bit. I have the following code but it is not executing as expected :
by prerit -1 in Software Development ()
Member Avatar
Say I have code like this... Imagine that the Flags instance is a shared resource in a multi-threaded application. Say thread #1 decides to read the value of Flags->A but thread #2 decides to set or clear Flag->B at the exact same time. How isolated is Flag->A from Flag->B such …
by N1GHTS 102 in Software Development ()
Member Avatar
Alright, so I am building a Converter to convert ASCII to Binary and for some reason, the for each loop stops working when it hits a space, and I have no idea why. I'm probably just over thinking it. Extra: Can you tell me how to force the output binary …
by Doogledude123 45 in Software Development ()
Member Avatar
Hello, I have a bug in my program somewhere and I cannot understand why. The program merely prints data from a binary file. Here is the code: Most of the time it works fine. However, sometimes it gives the wrong output. For example, when my test file contained (as read …
by Labdabeta 182 in Software Development ()
Member Avatar
Hello , I have to write a code that read a file in python and convert each chaaravter to 1, or 0 and send these digets to a a selonoid to make a strike or not to make ( brille printing ) is that possible ???? please need your help …
by Rabee_1 in Software Development ()
Member Avatar
Hello guys, I am a new learner in PHP and I am modifying a simple binary site. I am here to ask help how can I calculate my downline pairs or the total left and right side of some user. Here is the example of my tables in database: I …
by Eve_1 in Web Development ()
Member Avatar
This is what I have to code. Input an array of numbers(any numbers that user inputs from standard input, aka keyboard), remove numbers from array that are not 0 and 1. Thay array should now be bitwise moved with << or >> (again user choses the number of spaces moved …
by Stefan_2 in Software Development ()
Member Avatar
It is possible to read/write the binary of any file with using Python? only works for windows works but just prints the file contents not its binary
by nouth -3 in Software Development ()
Member Avatar
this code was error.please help me fix it include <iostream> include <conio.h> include <algorithm> using namespace std; int a[]={1,5,7,4,9,8}; BST*binary_search_tree; struct BST{ int value; BST* left; BST* right; }; int search_bst(BST* node,int key){ if(node==NULL) return -1; if(key<node->value) return search_bst(node->left,key); if(key>node->value) return search_bst(node->right,key); else return node->value; } void insert_bst(BST* &treeNode,BST* newNode){ …
by gu mi nam in Software Development ()
Member Avatar
I want to know how a microprocessor converts the binary digits into decimal equivalent. The processor only has the ability of manipulating 0's and 1's but, how these numbers are converted back into their decimal equivalent? Are they converted by another circuit? If so, then how and what it is …
by oanahmed in Computer Science ()
Member Avatar
I want to know how software is converted into electrical pulses or 's and 's in computer. How does the computer do it? I know that and in binary system actually represent and states respectively and the computer stores the data in its memory in the same state. Also I …
by oanahmed in Computer Science ()
Member Avatar
I want to convert some numbers to binary, octal, and hexadecimal.. for example: . DECIMAL......BINARY......OCTAL.....HEXADECIMAL ................................................................... 1.................00000001.....001.......1 2.................00000010.....002.......2 And so on..
by ryan.jay.ong in Software Development ()
Member Avatar
Hii, Can anyone provide me the python code for finding a number that is stored in a file . The file contains 1 lakh numbers!! And i want a python code that searches the file and find the desired element!!!! Both linear search and binary search!! i'm a python beginner!!!! …
by victorkvarghese in Software Development ()
Member Avatar
Hi, I have here a code for saving a pdf file to mysql database as blob. may problem is how can i retrieve pdf blob in php. thank you.
by zelanne74 in Web Development ()
Member Avatar
would any one give me idea or code about how to make a binary search tree of apple Ltd products prices. suppose products are: macbook i3, macbook i5, macbook i7, iphone 3g, iphone 3gs, iphone 4, iphone 4s, iphone 5, iphone 5s, iphone 5c, ipand 2, ipad mini.
by muhammadnasiri in Software Development ()
Member Avatar
Member Avatar
Hi, recently I have wanted to learn how to write Windows native binary code to make a binary script which in one form or another will display hello world. I am hoping to eventually create a more efficient compiler using this method but as you should understand already, this is …
by cwarn23 387 in Software Development ()
Member Avatar
with a little research a come up with my script in creating a canvas that would look like this. it has a multiple link one link per circle. and i can call it like this. then i try to run it in chrome and it works perfectly, but in IE …
by ZER09 in Web Development ()
Member Avatar
Hey guys, this is my solution to a simple problem and I was looking for some feedback on my code. Please post any criticism you may have about it. I do have a question about my use of for loops in lines 20-36. Is it an accepted practice for me …
by Sci3nc3F1cti0n in Software Development ()