Programming :: Creating New List Containers C++?

Oct 15, 2010

I need to create a program where the user creates an account and he/she is entitled to add interests and creating friendships with other users.The main algorithm depends on an object which is the user and its attributes are adding interests, friends, so on.Users are stored in a linked list while their interests are stored in another list.What I want to do is every time a new user is created dynamically create a new list during execution for personal info. storage. Is that possible?

View 12 Replies


ADVERTISEMENT

Programming :: Possible To Have A Templated C++ Stl Containers In Classes?

Feb 15, 2010

Is it possible to have a templated c++ stl container in another class without specifying the type prior to compile time? I haven't coded in c++ in a while and im at a total loss.

For example - Not real code. Just outlining the problem code...

View 1 Replies View Related

Programming :: Creating A List Of Word Using Tr Command

Jul 11, 2010

I have a file having name test.txt content of which is following My Self is Arvind Kumar.My Date of Birth is 21/07/1984.I am 26 year year old.I did M.Sc Informatics from Delhi University in 2008.I did B.Sc Electronics from Acharya narendra Dev college Delhi University.I did my schooling from DAV Yusuf sarai.Curren tly I am working with InterGolbe Technologies as a Associate software Engineer.I want to be Linux Expert. What I am doing I am creating a list of words,But i want to take B.Sc and M.Sc as a single word

[Code]....

View 5 Replies View Related

Fedora :: Creating A Package List?

Jan 3, 2010

I have spent hours installing different packages and have everything pretty much how I want them. Is there a way to get a list of all the packages and/or save it in a way that should I need to reinstall, I do not miss anything

View 1 Replies View Related

Programming :: List 4 Names From Users List And Output Them To Fbusers In Numbered Ascending Order?

Feb 2, 2010

How would I list 4 users ID numbered 10, 11, 12 and 13 from my users list and output them to a file busers where their names are numbered by ascending order? How would I accomplish that on a one line command?

View 4 Replies View Related

Programming :: Downloading A List Of Files From A Remote Server Using A List?

Feb 10, 2009

I am trying to get this script to work. The purpose is to download a list of modules from the slax.org the list consist of a list of module numbers. What I am trying to do is Download the file or the file name corresponding to the number in the list.the list is comma delimited. this is what I have done so far and I am a stand still.

#!/bin/sh
# Wget script to retrieve modules from slax.org modules
#
# ----Begin of user defined values -----
# Path to wget

[code].....

View 7 Replies View Related

Ubuntu Servers :: Creating A List Of Banned IP's With Fail2ban

Oct 16, 2010

I'm trying to use a technique suggested by a fella at this website....

[URL]

He suggests adding an echo line to the actionban line in order to create or add to a file that will contain a list of all the IP's that fail2ban has banned.....but it doesn't seem to generate any output. .....here is the command.....

actionban = iptables -I fail2ban- 1 -s -j DROP
echo >> /etc/shitlist

I never get any IP's in the file so the echo part does not seem to work.

View 5 Replies View Related

Ubuntu :: Convert The Containers Of PHOTO`s And AUDIO`s Files To Minimum Space

Aug 11, 2010

i need a way to convert the containers of PHOTO`s and AUDIO`s files to minimum space as possible

for example .wav to .mp3 and photo to convert to .jpg

prefer to use the command line in order to write a script

View 3 Replies View Related

Programming :: Active Forum / Mailing List For C Programming?

Apr 19, 2010

Just i want to ask doubts in c programming. I dont know whether this is the right place to ask doubts in c. If this is not a correct place, may i know where can i get help for c programming?is there any active forum or mailing list for c programming?

View 6 Replies View Related

Programming :: Creating Database Using C Language

Apr 7, 2011

How to create a database using c language it includes structures, pointers, arrays and switch..

View 4 Replies View Related

Programming :: Creating A Memory Leak In C++?

Dec 16, 2010

I need to write a small program that eats away at availabe memory. I need to creaty a memory leak to test how other programs cope. I need to run this program on linux and see if the available memory is decreasing.

So I have done:
Code:
int main()
{
int *buffer;
while(1)

[Code]...

View 10 Replies View Related

Programming :: Creating C++ Shared Libraries

Apr 4, 2010

I have 2 questions... I couldn't find answers by Googling (more precisely, by Blackling) and in GCC documents, so I'm asking here.

1. There are 2 flags for position independent code, -fpic and -fPIC. All the examples I read use -fPIC... so when is -fpic useful and what is the difference?

2. Some tutorials use "g++ -shared" while others use "ld" for the creation of the shared library. Why? Does it matter which method I use? Is there a difference? Why does nobody mention both options?

View 11 Replies View Related

Programming :: Developing Distro - Creating Own OS

May 1, 2009

I am very much interested in operating systems and I am a beginner. I just finished understanding OS concepts. I want to create my own OS. But I am thinking of creating a linux distro first and then going towards complicated things. How I need to equip myself for creating it. What should I know, learn and where to start.

View 6 Replies View Related

Programming :: Creating A Program Using Fstream?

Jan 31, 2010

a)using notepad,prepare a text file with marks for 8 students on seperate lines. The program will then read this file and store all the marks into an array.

b)It will then calculate the average marks.

c)Finally, displays all the marks and average marks on the screen.

would you be kind enough to give me the workout solutions.

View 7 Replies View Related

Programming :: Best SDK Tools For Creating Applications?

Jul 21, 2011

I'm new on software development and I interested which SDK tools are best for creating application for WM platform, Android etc. Also my another question is on which distribution of Linux is best to do this?

View 2 Replies View Related

Programming :: Creating An Automated Bash Scrpit

Feb 2, 2011

list the used variables.

1. display menu until user quits the script
2. menu would give following options to
a. create backup
b. restore files from backup
c. quit
3. for option a or b user would be required to specify the files and name of the archive]
4. has option to be run with use of parameters if that is the case it will not display menu but carry out required task unless it was not possible to do
5. incase of any errors are encountered it would call external scrpit that would display custom disigned error message.

View 6 Replies View Related

Programming :: Creating Child Processes In A Script?

Oct 14, 2010

the wrong part of the forum but basically im working on a project and getting no where what so ever and i was wondering if i could get your help. Basically i have to create two scripts do:

The parent script which is going to:
o spawn several child processes.
o keep track of the progress of the child processes.

[code]...

View 1 Replies View Related

Programming :: Bash - Creating Service For A Script?

May 10, 2010

I wrote a script for capturing port 5060 with tshark.Well, it's only a line, but I needed to send a positional var, and I couldn't do it with an alias. Now I need that script to run as a service, so I can start/stop. (Using CentOS)

Code:

#!/bin/bash
#
# capture service

[code]....

One more thing, my goal is to start/stop the service with

Code:

service myservice start|stop

Is that possible? I read that I must use chkconfig.

View 1 Replies View Related

Programming :: Creating 2 Sockets In Client / Server?

Jun 9, 2010

I have a problem creating my second socket in client file. the program was running well but when I try to add another socket to connect to the same server, I got a problem connecting to the first socket! it doesn't make sense. the original code was:

sockfd[i] = socket(AF_INET, SOCK_STREAM, 0);
if(sockfd[i] < 0) error("(MAIN) - Error openning socket 1");
port_num[i] = portno;
bzero((char*) &serv_addr[i], sizeof(serv_addr[i]));

[Code].....

View 1 Replies View Related

Programming :: Automatic Login By Using Ssh But Without Creating Public Key?

Apr 12, 2010

I want to connect to anothere server from my current server through SSH command.

when I am using the command in the terminal like-- ssh username@ip it is asking me to give password. This is working fine in the terminal. but I want to do it automatic through a shell script.

How can I be able to provide userid and password through shell script?

I was trying to achieve it by creating a public key and copy it to the destination .ssh file. but I dont have the permission to create any file in the destination server.

View 2 Replies View Related

Programming :: BASH Scripting - Creating A Map Tree?

May 7, 2011

looking to write a dependency map tree that creates a tree structure of object names . This tree will be written to a file and read back to create the tree structure of files . how to write this using bash ?

View 1 Replies View Related

Programming :: Module In Cpan For Creating A Blog?

Apr 2, 2010

Exist it a module in cpan for creating a blog?

View 4 Replies View Related

Programming :: Change Priority When Creating New Thread?

Feb 21, 2010

I have created an error logger thread in my application using pthread_create(), I want this thread to have a lower priority than my application's priority so that the application would run properly. Is there an easy way to do this? I know that we can change priority for thread created with policies FIFO or RR, since I don't set the policy for my application, I don't know what to set for my thread.

View 4 Replies View Related

Programming :: Creating Array In Shell Script

Feb 7, 2011

1. How do I create an array with 5 entries
2. Output one of the entries in the array randomly
3. Subtract the entry output from the array
4. Repeat steps 2 and 3 until there are no more entries in the array

View 11 Replies View Related

Programming :: Creating Gnome Panel Applet?

Mar 12, 2010

I need to be pointed in the right direction on how to do this project. I simply want a gnome panel applet that will run constantly and, when clicked, will display an IM style list of I.P. addresses that are active on the network I am currently connected to. It should be able to have a configuration menu that will allow the user to specify a subnet mask, and frequency of scan. I am looking for something that will return something similar to the output of:

Code:
nmap -sP xxx.xxx.xxx.xxx-xxx

My question is: What language should I learn to make this happen, and is anyone willing to mentor me through the process?

View 1 Replies View Related

Programming :: Creating Packages Using Mono-develop

Nov 18, 2010

How can I create packages for Windows7 and Linux using C# in mono-develop ? Will the packet be directly installed under Windows7 ?

View 1 Replies View Related

Programming :: Creating Simple Webcam Effects?

Apr 13, 2010

I want to create simple webcam effects filters. I am only interested in doing relatively simple image processing like blurring or averaging the color. I would like to create the filters in either C or Python.

So before I dive into using Gstreamer or V4L I wanted to ask the forum if they have had any experience with webcam development?

View 2 Replies View Related

Programming :: MySQL Error When Creating FK In Tables

Dec 11, 2009

Can't single the cause of the error.

mysql> CREATE TABLE Shipment (
-> Shipment_ID INT(10) NOT NULL,
-> Delivery_ID INT(10) NOT NULL,
-> Customer_ID INT(10) NOT NULL,
-> Driver_Employee_ID INT(10) NOT NULL,
-> Consignee VARCHAR(255) NOT NULL,
-> Payment_Method VARCHAR(255) NOT NULL,
-> Payment_Received VARCHAR(1) NOT NULL,
-> CONSTRAINT PRIMARY KEY (`Shipment_ID`)
-> FOREIGN KEY (`Delivery_ID`) REFERENCES `Delivery`(`Delivery_ID`)
-> FOREIGN KEY (`Customer_ID`) REFERENCES `Customer`(`Customer_ID`)
-> FOREIGN KEY (`Driver_Employee_ID`) REFERENCES `Driver`(`Driver_Employee_ID`)
-> )ENGINE=InnoDB DEFAULT CHARSET=latin1;

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FOREIGN KEY (`Delivery_ID`) REFERENCES `Delivery`(`Delivery_ID`)
FOREIGN KEY (`C' at line 10)

View 4 Replies View Related

Programming :: Creating A Page With Cgi Script In Perl?

Jan 2, 2010

I have a problem to creating a page with cgi script in perl. I have my registration.html page and registration.cgi script. The form in registration.html is the following:

Quote:

<form action="./registration.cgi" method="get">
<fieldset>
<legend><b>Fill up cells to creating your account</b></legend><br/>
<label>Name: <input type="text" name="name"></label><br/><br/>
<label>Email: <input type="text" name="email1"></label><br/><br/>
<label>Re-enter email: <input type="text" name="email2"></label>

[Code]...

View 53 Replies View Related

Programming :: Creating Multiple Processes Using Fork

Oct 23, 2010

As an assignment i was doing a program to create two process using fork and pass messages between them using message queue.Did it worked well until my friend tried to copy it using scp.suddenly all hell broke loose as processes without ran syncronisation ie. in tech terms the process just wont wait wen a message queue is empty.it keeps on executing randomly.but after a reboot .. everything worked fine. until again i tried to do scp on my system on purpose. and again the program just went mad.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved