Oct 24, 2018, 03:23 AM

News:

Choose a design and let our professionals help you build a successful website   - ITAcumens


Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - magesh.p

1
Hi,

Today I Learnt About How to get the file names in the folder.

And Compare the filename list with text files ( The text files contains name of the files i needed )

What ever the files missed from my list to store that filename in database name.

2
Change Text & Color when Highlighted

My Code is Below :

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
FontDialog1.ShowDialog()
RichTextBox1.Font = FontDialog1.Font
End Sub


Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
ColorDialog1.ShowDialog()
RichTextBox1.ForeColor = ColorDialog1.Color
End Sub

When I Want to change font and color in richtextbox, All Text in Textbox is Changed.

I Want  that change color and font in text that we highlight.

Help Me,

Thanks in Advance..........

3
Use memcpy to duplicate structures

Code: [Select]
#include <memory>
#include <iostream>
using namespace std;

struct mystruct
{
       int i;
       int x;
       int y;
};

int main()
{

  mystruct source,destination;

  source.i = 1;

  source.x = 2;

  source.y = 3;

  memcpy(&destination,&source,sizeof(source));

  cout << destination.i << endl;

  cout << destination.x << endl;

  cout << destination.y << endl;

  return 0;
}


Output

Quote
1
2
3


4
Array of structures

Code: [Select]
#include <iostream.h>
#include <stdlib.h>

#define Length 5

struct Employee {
  char title [50];
  int year;
} employee [Length];

void printemployee (Employee employee);

int main ()
{
  char buffer [50];

  for (int n=0; n<Length; n++)
  {
    cout << "Enter title: ";
    cin.getline (employee[n].title,50);
    cout << "Enter year: ";
    cin.getline (buffer,50);
    employee[n].year = atoi (buffer);
  }
  cout << "\nYou have entered these employees:\n";
  for (int n=0; n<Length; n++)
    printemployee (employee[n]);
  return 0;
}

void printemployee (Employee employee)
{
  cout << employee.title;
  cout << " (" << employee.year << ")\n";
}


Output

Quote
Enter title: Title
Enter year: 123
Enter title: Title 2
Enter year: as
Enter title: TitEnter year: ^CTerminate batch job (Y/N)? n


5
Pass structure to a function

Code: [Select]
#include <cmath>
#include <iostream>
using namespace std;

// define the structures
struct DataStructure
{
  float radius;
  double angle;
};

struct ResultStructure
{
  float area;
  double sine;
  double cosine;
  double tangent;
};

ResultStructure compute(struct DataStructure mystruct);

int main ()
{
    DataStructure input;
       ResultStructure output;

       input.radius = 3;

       input.angle = 0.8;

       output = compute(input);

    cout << " The area is "<< output.area << "\n";
       cout << " The sine of the angle is " << output.sine << "\n";
       cout << " The cosine of the angle is " << output.cosine << "\n";
    cout << " The tangent of the angle is " << output.tangent << "\n";
       return 0;
}

ResultStructure compute(struct DataStructure mystruct)
{
     ResultStructure answer;

        answer.area = pow(mystruct.radius,2);
        answer.sine = sin(mystruct.angle);
        answer.cosine = cos(mystruct.angle);
        answer.tangent = tan(mystruct.angle);

        return answer;
};



Output
Quote
The area is 9
The sine of the angle is 0.717356
The cosine of the angle is 0.696707
The tangent of the angle is 1.02964


6
Define pointer for structure

Code: [Select]
#include <iostream>
using namespace std;

struct MyStructure
{
   int n;
   float f;
   float f2;
};

int main()
{
MyStructure myMyStructure;
MyStructure *ptrMyStructure;

//set the f of the structure
myMyStructure.f = 1000;

//intialize the pointer
ptrMyStructure = &myMyStructure;

//change the pointers f
ptrMyStructure->f = 2000;

//print out the structures f
cout << myMyStructure.f << "\n";

return 0;
}


7
Return structure from a function

Code: [Select]
#include <cmath>
#include <iostream>
using namespace std;

// define the structures
struct DataStructure
{
  float radius;
  double angle;
};

struct ResultStructure
{
  float area;
  double sine;
  double cosine;
  double tangent;
};

ResultStructure compute(struct DataStructure mystruct);

int main ()
{
    DataStructure input;
       ResultStructure output;

       input.radius = 3;

       input.angle = 0.8;

       output = compute(input);

    cout << " The area is "<< output.area << "\n";
       cout << " The sine of the angle is " << output.sine << "\n";
       cout << " The cosine of the angle is " << output.cosine << "\n";
    cout << " The tangent of the angle is " << output.tangent << "\n";
       return 0;
}

ResultStructure compute(struct DataStructure mystruct)
{
     ResultStructure answer;

        answer.area = pow(mystruct.radius,2);
        answer.sine = sin(mystruct.angle);
        answer.cosine = cos(mystruct.angle);
        answer.tangent = tan(mystruct.angle);

        return answer;
};


Output

Quote
The area is 9
The sine of the angle is 0.717356
The cosine of the angle is 0.696707
The tangent of the angle is 1.02964


8
writes a structure to disk and then reads it back in

Code: [Select]
#include <iostream>
#include <fstream>
#include <cstring>
using namespace std;
   
struct status {
  char name[80];
  double balance;
  unsigned long account_num;
};
   
int main()
{
  struct status acc;
   
  strcpy(acc.name, "A");
  acc.balance = 1.23;
  acc.account_num = 34;
   
  ofstream outbal("balance", ios::out | ios::binary);
  if(!outbal) {
    cout << "Cannot open file.\n";
    return 1;
  }
   
  outbal.write((char *) &acc, sizeof(struct status));
  outbal.close();
   
  // now, read back;
  ifstream inbal("balance", ios::in | ios::binary);
  if(!inbal) {
    cout << "Cannot open file.\n";
    return 1;
  }
   
  inbal.read((char *) &acc, sizeof(struct status));
   
  cout << acc.name << endl;
  cout << "Account # " << acc.account_num;
  cout.precision(2);
  cout.setf(ios::fixed);
  cout << endl << "Balance: $" << acc.balance;
   
  inbal.close();
  return 0;
}


Source : java2s
9
Variables, arrays and operators

In the sample program above, i have introduced another feature of C++ without explicitly mentioning it. Variables. Variables are used to store data in it and usually waste memory space.

In C++, all Variables must be assigned a valid data type. The data types of C++ are the same as in C. Consider the following samples:

Quote
//elementary data types
bool x; //declaring a variable of type bool
char c; //declaring a variable of type char
int i;
short s;
double d;
float f;
long l;
//non-elementary data types
struct s;
class c;
enum e;
//STL special data types
10
Declaring vs Defining variables

In C++, there are 2 ways of introducing variables. The first way is called declaration of a variable. The second is called definition of a variable. The following code snippet shows the differences:

Code: [Select]
int i; //declaration of i as type int
int i = 5; //definition of variable i and assigning value 5 to it
string s;         //declaration of s as type string
s = "Hello World; //assigning "Hello World" to s
string s2 = "Hello Reader"; //definition of s as string with value "Hello Reader



Note that, when assigning values to variables, you need to make sure that the value is a valid value . This means that, when, for example, you define a variable of type int you have to make sure that the value you assign to it is an integer.

Quote
int i;
i = 5; //correct! 5 is integer

int j;
j = "Hello World" //wrong! j is not a string

double d;
d = 3.145; //correct! 3.145 is a double

int k;
k = 1.23456; //wrong! 1.23456 is not an int



If you assing wrong values to variables of another data type, the compiler will complain an error.

Defining a variable means to declare it and assign a value to it.

Declaring a variable means only to introduce it to the compiler.
11
Zenith launches new laptops


MUMBAI: Zenith Computers has announced the launch of a new range of laptops -- Admirale Plus, Presidio and Director Ultra Plus.

The new range sports reflective metal finish inspired by chrome and high-gloss surfaces. The fluid reflective screen ensures security and privacy of data with its anti-glare feature.

Announcing the launch, Raj Saraf, Chairman and Managing Director, Zenith Computers said, “The new range is especially designed to sustain the rough work environment in India.”

Zenith Admirale Plus is an ideal option for business users. Based on the latest chipset from Intel, IntelGM45, it runs graphic presentations. The laptop comes with an option of processors ranging from Celeron to Intel Core2Duo.

For women, light-weight Zenith Presidio is a preferable option. It has a glossy piano finish in black and comes with a biometric finger print reader for secured computing. It is based on the 965 chipset from Intel, runs on Windows Vista Business and offers additional features like Bluetooth, 2 megapixel camera, Giga LAN, DVD writer and memory card reader.

Zenith Director Plus Ultra draws inspiration from stylish sports cars. Built with a magnesium alloy, the laptop is protected against bending caused due to any kind of impact and accidental drops. It has a dedicated 512mb graphics card with c2d processor and Intel pm45 motherboard. The laptop also has an integrated 2 megapixel camera and wireless card.

Source : indiatimes
12
Nanolets Software Private Limited

Nanolets is a learning organization that bridges the gap between the fresh graduates from colleges and universities and the requirements of the industry. Nanolets uses vast opportunities in Free and Open Source projects and provides free training to qualified candidates. Nanolets experiential learning style is specifically designed to enhance the quality and bring out the real potential of the candidate through intense interactive problem solving sessions. This ensures that the skill levels of trainees meet industry standards and increases their job & career prospects. Candidates with passion for Programming, hunger to succeed & the desire to excel in the software industry can walk-in on the scheduled dates.

Recruitment for Trainee Software engineer

Job Description :

Web Development
HTML,CSS,HTTP, HTTPS,JSP, PHP, Python,Apache
Mysql, Zope, Linux,

Content Management Systems
Plone, CRM, Joomla, Oracle Database, Postgresql.
C, C++, Unix, Linux, Embedded C.

Kentropy, Mahiti, Venkatmangudi consulting & DmineX who are providers of open source software solutions, have tied up with Nanolets to help them with the recruitment of quality trained human resources for their growth and expansion plans. These companies intend to recruit every month talented, highly motivated individuals from this community to be part of their rapidly growing team.

Education:B.E/B.Tech

Walk-in:

You are invited to attend a selection test we are conducting on behalf of our clients. There will be a written test followed by a group discussion if necessary among shortlisted candidates. The candidates chosen from this group will undergo a training and induction program at Nanolets and upon successful completion, will be offered employment opportunities by our clients who recruit from this pool every month.

Location : Bangalore
Experience : 0-1 Years

Walk-In / Entrance Test: 13th & 14th October-2008 | Time : 10.30 AM to 17:00 PM

Contact Details

Name : Rakesh.S.Sampat

Venue :

Nanolets FOSS Campus,
3/A, 1st Floor ( Above Canara Bank ),
JP Road, (Opp Radhakrishna Hospital),
Girinagar, Bangalore 560085.

Induction program starts on: 17-October-2008.

* A Hard copy of your last up-dated resume would be required for the Walk-in.
13
Dusane Infotech (India) Pvt Ltd

DUSANE Infotech (DI) is a technology consulting and development company and forms a core part of the 1500 Cr Valuable Group of Companies (www.valuablegroup.com). DI is the driving force behind the various cutting edge Software and Technology Intellectual Property investments by the Valuable Group. DI, formed in Dec 2006, brings together a core team of Technocrats with varied skills in IT consulting to IT implementation to IP incubation services.

DI is one of the very few IT companies in that have developed products and services on EJB 3.0 platform using JBOSS app server. RedHat recently inducted DI as its JBoss Certified Solution Partner.

DI now plans to set up, with active support from RedHat India, an Open Source Technology Group and is in the process of augmenting the team. The team would architect and develop enterprise level application on Open Source EJB 3.0 framework on JBoss AS.

With continuous training and support to be provided directly by RedHat India, this is an ideal opportunity for candidates who are looking for technically challenging implementations in the EJB 3.0 enterprise platform.

Junior Software Engineer/ Senior Software Engineer/ Team Lead

Job Description :
SKILLS : Java J2ee, EJB, Websphere, EJB, UML, XML
Qualification : B.Tech/B.E./ MCA/MSC/ME/M.TECH- Any Specialization, Computers is an added advantage.
Permanent position with Dusane Infotech Limited

Desired Profile :
We will have a Java Week end Drive on 11th Oct 08 Saturday. Request you to attend the same.
* All candidates will go through 3 rounds of interview. Offers will be released to candidates who clear all 3 round of interview.
* Candidates must carry their Resumes + Photo identity
* Send me the confirmation by Friday, 10 Oct 2008 by 6:00pm with the attached updated profile.

Note: If you are planning to attend this Walk-In at MUMBAI On 11 Oct 2008, You need to first send your confirmation to attend this Walk-In at: poonamb@diipl.com

Location : Mumbai

Experience : Freshers, 1 " 4yrs

Note: Only the Freshers who have completed J2EE course are eligible for this recruitment.

We will have a Java Week end Drive on 11 Oct 2008 Saturday. | INTERVIEW TIME: - 10.30AM TO 5PM ONLY

Note : Please carry your Photograph, Resume and your complete Document

Contact Details

Name : Poonam Bhnaushali
Phone : 91-22-25838343/44/45

Venue :

Dusane Infotech(India) Pvt. Ltd.
101,Sun Magnetica, Accolate Galazy,Near L.I.C Building,
Service Road, Thane (West) 400 604. MS
14
Zenith Infotech Ltd

Zenith Infotech Ltd., part of the Zenith Computer Group, is a Mumbai based software product company.

Zenith is a managed services infrastructure provider, where we provide our partners with world-class remote management Platform and back it up with a back-office network operations centre service & an optional service desk.

The combination of our products and services enables Managed Service Providers (MSP's) to deliver a complete infrastructure Solution to their end clients.
We operate in domestic and international markets. Our research and development center is in Mumbai and has support offices in New York, Pittsburgh, Silicon Valley and Singapore.

As of today over 1000 IT service providers use our Managed Services Infrastructure to deliver managed services to over 6000 of their customers covering over 120,000 devices.

At Present, we are handling more than 25000 servers and multiple numbers of Desk tops. You will have direct access to the servers and Desktops of the clients.

Recruitment for Trainee NOC L1


Education: - 12th / graduation + Diploma in Hardware and Networking.

Experience: - 3 months-1 Year experience as a Hardware / Desktop Engineer.

Salary Package: 72,000 (PA) - 96,000 (PA)

Desired s profile:
1. Basic understanding of computer terminology.
2. Excellent written and oral skills.
3. Good analytical and decision making.

Interested candidates can attend interview at below mentioned address. Meeting Timing: 10 AM to 6 PM. | Day: Monday to Saturday.

Contact Details
Name : Shanti Kumari
Phone : 022-28377300 / 28366030

Venue :
Zenith Infotech Ltd.
Zenith House, 30 MIDC, Central Road,
Andheri (east), Mumbai


Landmark : Next to Tunga Paradise Hotel.
15
E-Ring Software Solutions (I) Pvt. Ltd. ( http://www.ering-cad.com )

E-ring is a young company which speacilized in developing real-time decision support systems for its various customer segments like : the Local Government Segments (USA), GIS & Mapping, Building & Construction, Industrial etc . E-ring develops powerful and effective solutions through research and development by translating cutting-edge technologies from industry leaders to empower its customers.

Software Engineer (R&D)

E-ring is your dream company if you are a techie who wants to be cross functional. Look no further if you are from a leading college like IIT/NIT /BITs etc.

Eligibility
- M.E/M.Tech/ B.E / B.Tech of 2008 batch

Salary Ranges
IITs - 5 lpa to 10 lpa (all department)
NITs - 4.2 lpa to 7 lpa (CS/IT)
Other colleges - Rs 3.6 lpa to 5 lpa (CS/IT)

Compensation shall be offered on case to case basis and shall be based on institute and merit.

Event date is expected to be 6th September 2008

Experience : Fresher

Job Locations : Bangalore

Salary Offered : from Rs.3,60,000 /- to Rs.10,00,000 /-

Last Date - 5 Sep 2008

APPLY ONLINE HERE
IT Acumens | GinGly :: SMS Backup | Acumen :: Discussion Board | AshokPillar :: Hosting | CineBuzz :: Latest Cinema News | My Kids Diary :: Capture your kids magical moment
Copyright 2005 - 2017 :: IT Acumens :: All Rights Reserved.
ITAcumens Forum with 2 lakhs post running for 10 years - Powered by HostGator Dedicated Server