i have to create a list of ,let's say 50 people, (in Java) and display the list, and i don't really know how to do that. so this is what i have tried to do so far . please correct and complete some of my code .
public class Person {
String name;
String stuff;
}
public class CreatePerson {
public static void ang() {
...
I have structure defined in some header (D3DXVECTOR3)
How can I declare:
static member in the class of that type and initialize it?
maybe constant member of that type and init it?
when i use some constructor i get error only integral can be initialized.
...
Hello Everyone
I would like to know how you set up your projects in Java
For example, in my current work-project, a six year old J2EE app with approximately 2 million LoC, we only have one project in Eclipse. The package structure is split into tiers and then domains, so it follows guidelines from Sun/Oracle. A huge ant-script is build...
I'm taking over a project with which the company are pretty unhappy with the usability of the website. It's using django, and the website is a very content based, user driven website. Having looked through the layout of the django folders, I'm beginning to question its structure.
There are many different types of content in the website...
Hey SO,
I just started programming with objects recently and am trying to learn good habits early on.
The way I plan to structure my application is to have two files:
1: Program.cs - This file will contain the main logic for the application
2: Class.cs - This file will contain all of the class definitions
Pretty simple. What I'm w...
I'm trying to weigh the pros and cons of a database design, and would like to get some feedback as to the best approach. Here is the situation:
I have users of my system that have only a few required items (username, password). They can then supply a lot of optional information. This optional information continues to grow as the syst...
We have nested stuctures as such, used as an interface for some device drivers. On occasion we have to update individual elements. An 'address of' operator would be helpful, but an 'offset' function or operator is what I'm really looking for, but not sure how to go about it. In other words, how far is structureN.elementX away from the st...
Hey guys,
I have my code below that consits of a structure, a main, and a function. The function is supposed to display two parameters that have certain values, both of which point to the same structure.
The problem I dont know how to add the SECOND parameter onto the following code :
#include<stdio.h>
#define first 500
#define sec 5...
Hello Guys. I'm investigating using Kohana for my next project. The site will consist of user registration (and hence user profiles) where users will have certain privileges. The site will also have an admin section where administrators can go to say block a user or delete a post or look at usage statistics for example. A good comparison...
Hi
For the last few days I've been thinking how I can solve the following programming problem and find the ideal, flexible programming structure.
(note: I'm using Flash as my platform technology but that shouldn't matter since I'm just looking for the ideal design pattern).
Our Flash website has multiple situations in which it has to ...
Hi all Rtx experts,
Have anyone implemented hard real-time app on IntervalZero Rtx environment using Boost libraries?
I wish to use the Boost `unordered` data structures instead of solely relying on STD::Vector. Or Array/Vector is the only data structure supported by Rtx?
* Off topic question: Can we use STD::String instead of ...
Hi! First of all I want to say some info for admins. This post can help to all DBA and developers. Hope You don't close this. I'm writing about widespread problem
I'm writing master work and I want that You will had little time to answer my questions in my form. These questions are about db structures. Visit here:
http://spreadsheets.g...
I'm having problems with marshaling in VB.NET to C++, here's the code :
In the C++ DLL :
struct APP_PARAM
{
int numData;
LPCSTR *text;
int *values;
};
int App::StartApp(APP_PARAM params)
{
for (int i = 0; i < numLines; i++)
{
OutputDebugString(params.text[i]);
}
}
In VB.NET :
<StructLayoutAttribute...
Hi,
I'm trying to generate a json representation from a folder structure.
Examplee folder/file structure:
folder
|_ meta.xml
|_ subdir1
|_ textfile1.txt
|_ subdir2
|_ textfile2.txt
Manually generate the json representation of this structure:
def builder = new net.sf.json.groovy.JsonGroovyBuilder()
def json = builder.dir {
...
Hi,
I'm somewhat new to Android and am in the process of designing an application with a couple fairly complex views. One of the views is intended to involve a complex view displaying information associated with model objects and segregated into several different views; the navigation of which is meant to be achieved using sliding effe...
Hi
I want to sort a doubly linked list with its pointer and using merge sort algorithm,would you please help me that how can i do that? is there any link that have such a code? thanks
...
I have been working with PHP for years and gotten a very good grasp of the language, created many advanced and not-so-advanced systems that are working very well.
The problem I'm running into is that I only learn when I find a need for something that I haven't learned before. This causes me to look up solutions and other code that handl...
is there any library that parse a source code of C++ to produce lets say, call graph, class inheritance tree, flow control, class member list or anything as a ready to use graph or structure in code (not in diagram image).
to make it more clear, suppose to generate call graph image, there will be a process like this:
`
C++ source -> ...
I'm working on the project that uses another project source (not as referenced assembly). When my colleagues are changing with big problem that I need to synchronize file structure changes in 5 projects.
Please, advise me how can I synchronize this source links automatically or semi-automatically, but not making "Create directory", "Ad...
I am new to the XML and parsing. Just started!
Using Expat XML Parser in C on Linux i.e. libexpat.so and expat.h.
I would like to know that, is it possible to parse the xml file (elements, attributes and its values or strings) and create or map it as structure i.e. to form the structure from XML data available in the XML file???
Is there...