473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

HELP!! method calling...

21
So what i am trying to do is call a method with in a method.

Example:
Expand|Select|Wrap|Line Numbers
  1. void printBooks()
  2. {
  3.     ....
  4.     findRelavant()
  5. }
  6. void findRelavant()
  7. {
  8. ....
  9. }
  10.  
Is this posible or do i have to do something else????

I tried it in my code and got 3 error messages.
1. error C3861: 'findRelevant': identifier not found
2. error C2365: 'findRelevant' : redefinition; previous definition was 'formerly unknown identifier
3. error C3861: 'findRelevant': identifier not found

Please Help
Sep 26 '06 #1
1 2120
vermarajeev
180 100+
So what i am trying to do is call a method with in a method.

Example:
Expand|Select|Wrap|Line Numbers
  1. void printBooks()
  2. {
  3.     ....
  4.     findRelavant()
  5. }
  6. void findRelavant()
  7. {
  8. ....
  9. }
  10.  
Is this posible or do i have to do something else????

I tried it in my code and got 3 error messages.
1. error C3861: 'findRelevant': identifier not found
2. error C2365: 'findRelevant' : redefinition; previous definition was 'formerly unknown identifier
3. error C3861: 'findRelevant': identifier not found

Please Help
You need to first declare 'findRelevant' before it can be used lise


Expand|Select|Wrap|Line Numbers
  1. void findRelavant();
  2. void printBooks()
  3. {
  4.     ....
  5.     findRelavant()
  6. }
  7. void findRelavant()
  8. {
  9. ....
  10. }
  11.  
Sep 26 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: David | last post by:
Hi, I am writing a C# program and want to run a java application and pass it a filename as a parameter. I want to be able to write a method in C# that will run this Java app for me. Eg. I want...
5
by: Chua Wen Ching | last post by:
I had use fxcop to check my code. I had 1 confusion here. I would normally call a method by this way in my IAnimal: Example: public void CallFuncA(ushort port); But fxcop says i need to...
3
by: Jack Black | last post by:
Help!! I'm trying to call a custom stored procedure from a VB.Net code-behind page in an ASP.Net application, and I keep getting an error with no real helpful info... Basically, I'm accepting a...
4
by: Mori | last post by:
I would like to be able to call methodTrue() when the user clicks yes and methodFalse() when they click No. How do i accomplish that? here is my code: private void methodTrue() { //method...
1
by: jens Jensen | last post by:
Hello , i'm calling a webservice generated with oracle webservice java tools. I'm not able to add a web reference to a .net client the usual way with visual studio 2005. I was therefore...
1
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
The code below is pretty simple. Calling Talker() in the parent returns "Parent", and calling Talker() in the child returns "Child". I'm wondering how I can modify the code so that a call to the...
9
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a win32dll which is a dll to send SMS. I am using Dllimport to call the methods in the dll. In Winform it works well. In Web form the method doesn't work and returns false. (I am debugging...
20
by: d.s. | last post by:
I've got an app with two classes, and one class (InventoryInfoClass) is an object within the other class (InventoryItem). I'm running into problems with trying to access (get/set) a private...
2
by: Builder | last post by:
Hi, I imported following COM interface DECLARE_INTERFACE(IAxMediaCB) { STDMETHOD(BufferCB) ( LONGLONG theStartTime,
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.