Hi,
How can i addition one + one matric (array data structure) and after it find the third smallest number in it in C language (not C++)? Thank you for the code.
I am storing logs in an xml file...
In a traditional straight text format approach, you would typically just have a openFile... then writeLine method...
How is it possible to add a new entry into the xml document structure, like you would just with the text file approach?
Hi all
I have the following 4 arrays ( grouped in 2 groups ) that I would like to merge in ascending order by the keys array.
I can use also dictionaries as structure if it is easier.
Has python any command or something to make this quickly possible?
Regards
MN
# group 1
[7, 2, 3, 5] #keys
[10,11,12,26] #values
[0, 4] #keys
[20, 33] #values
# I would like to have
[ 0, 2, 3, 4, 5, 7 ] # ordered keys
[20, 11,12,33,26,33] # associated values
I want to show indexes,sequences,constraints in DESC command ,is it possible,
or any other cammand by which i can see structure(design) of a table along with constraints,
sequences,indexes.
So a collection in VB6 keeps track of a key for each object, and you can look up the object by its key.
Does that mean collections are implemented as some sort of hashtable under the hood? I realize you can have multiple items with the same key in a collection, hence the SOME SORT.
Anybody know what type data structure a VB6 collection is supposed to represent?
Hi
I have a table with the following structure:
id int(11),
name varchar(250)
I have lots of records in the table but when I am trying to find a particluar record which has the following value on the name field:
Lorem ipsum d\'olor sit amet
The query is simply returning a blank recordset. I am not being able to figure out this weird behaviour, when my query is as simple as follows:
SELECT * FROM slot_games WHERE name='Lorem ipsum d\'olor sit amet'
Would appreciate your help please! Thanks in advance.
Is there a way to create a working copy with all child folders but without files in it?
My repository is very big, I only need the empty directory structure to be created.
When I set the column text for CListView more than 271 characters, the rest of my buffer is not present.
I set it through LV_COLUMN structure.
Is this a known issue for MFC 4.21?
Maybe the title is not appropriate but I couldn't think of any other at this moment. My question is what is the difference between LinkedList and ArrayList or HashMap and THashMap .
Is there a tree structure already for Java(ex:AVL,Black-white) or balanced or not balanced(linked list). If this kind of question is not appropriate for SO please let me know I will delete it. thank you
I'd like to estimate the number of leaves in a large tree structure for which I can't visit every node exhaustively. Is this algorithm appropriate? Does it have a name? Also, please pedant if I am using any terms improperly.
sum_trials = 0
num_trials = 0
WHILE time_is_not_up
bits = 0
ptr = tree.root
WHILE count(ptr.children) > 0
bits += log2(count(ptr.children))
ptr = ptr.children[rand()%count(ptr.children)]
sum_trials += bits
num_trials++
estimated_tree_size = 2^(sum_trials/num_trials)
Hi,
I have
foreach ($a as $key = $value) {
echo $value;
}
which displays result one below other,
like
1234
5678
2010-05-20
5678
1590
2010-05-19
but i want it in a table like structure like
1234 5678 2010-05-20
5678 1590 2010-05-19
how can i do that?
Hi
I have table with this structure ID PK and two columns with FK for example ActivityID and ContactID.
I try programmaticlly insert some value in this two FK columns.
How can I do this, any help is appriciated.Tnx
Hi,
I'm developing an applciation using SQL Compact database in Visual Studio 2008. When I start the application and run the process, the data is being loaded into database for few hours worth of few tens of megabytes. However, when I quite debugging, change something in code (not in DB structure), run the project again, the database is erased.
Does anyone know how to prevent this behavior? I need the data to stay in DB to test on it.
Hi,
I am planning to get a report for a table with following table structure:
ID RequestDate
-----------------------------
1 2010/01/01
2 2010/02/14
3 2010/03/20
4 2010/01/07
5 2009/03/31
I want the results as:
I
D_Count RequestDate Sum
-----------------------------------------
2 2010/01 2
1 2010/02 3
2 2010/03 5
Pls help.
Due to the wonders of branch prediction, a binary search can be slower than a linear search through an array of integers. On a typical desktop processor, how big does that array have to get before it would be better to use a binary search? Assume the structure will be used for many lookups.
I'm trying to learn SQL to store the data rather than reading the file and populating the whole data structure in memory. would it be like reading the data from disk instead of direct memory?
Given a protein structure from the PDB, I would like to generate NS spheres of radius Rs which cover totally the protein surface. Given RS there, NS is the maximum number of spheres so they do not overlap. I would need the coordinates of the center of each sphere.
Does anybody know if this has been implemented in some method / program? Or how to do it with scripting.
Thanks
Hello guys!
How can I change the place of the .sqlite file in my directory structure. Now it is in the Documents, but I want it to be in the Library/Preferences. Can you help me please?
This simple query throws the "Ambiguous column name TaskID" error on one db-server only. This is ridiculous. We tested this with the same database structure on different servers and different versions of ms sql (2005/2008), and it's only THIS particular client's server that throws the error. I'm actually frustrated.
SELECT Tasks.TaskID
FROM Tasks
INNER JOIN TaskHelpers ON TaskHelpers.TaskID = Tasks.TaskID
order by TaskID
Yes, I know I can put "Tasks.TaskID" into the order by clause, but for some reasons I can't.
Is there a way to create a working copy with all child folders but with out files in it.
My repo is very big, I only need the empty directory structure to be created.
This questions concerns mostly Unix/Linux style C++ development. I see that many C++ libraries store their header files in a "include" folder and source files in an "src" folder. For the sake of conformance I adopted this in my own code. But it is not clear to me whether this should be done for application code as well. I've seen a few cases where a flat directory structure is used for that. What would be the recommended approach?
Suppose I want to edit a node in xml and edit one of its attributes. I want to be able to do a simple file diff to just see one row changed. Dumping the xml using prettyprint changes the whole xml structure.
Hi,
I have stored procedure that takes input parameter of table type.
procedure test( name samptable type);
My table has the structure like
table:
samptable(
name chracter varying;
address text[];
)
So how shoul i pass the values to the function to fill the table.
Hi ,
Am working in the classes and object class structure , but not extream level ,
Just class and function , then in one place instantiation . that's it , not much big functions
like __construct etc ,
Please tell me very simply ,
1.what is th purpose of constructor ad destructor ,
But i know theoretical explanation school level ,
But i am expecting something like in real time , which situation we have to use, and is
there any example for that please tell me,
Regards
Hi,
I am working with classes and object class structure, but not at a complex level – just classes and functions, then, in one place, instantiation.
As to __construct and __destruct, please tell me very simply: what is the purpose of constructors and destructors?
I know the school level theoretical explanation, but i am expecting something like in real world, as in which situations we have to use them.
Provide also an example, please.
Regards