Author Topic: How to get the method(member) of class in codeblocks  (Read 4607 times)

Offline heliang6291

  • Single posting newcomer
  • *
  • Posts: 3
How to get the method(member) of class in codeblocks
« on: March 29, 2013, 04:34:39 pm »
Hi everybody
When I write the method of class,I can't get the method of class when I'm using "::" ,for example

Code
class exp
{
public:
   void get();
};

void exp::  //Now, codeblocks can't show the list of the method "get()"
exp p;
p.  //Don't show the list.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to get the method(member) of class in codeblocks
« Reply #1 on: March 29, 2013, 05:56:36 pm »
Which version and OS?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Radek

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: How to get the method(member) of class in codeblocks
« Reply #2 on: March 31, 2013, 10:53:49 am »
First of all, try changing the name of your class. exp() is a standard math function. It happens often that the parser gets confused if you "overload" such standard identifiers.

Offline heliang6291

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to get the method(member) of class in codeblocks
« Reply #3 on: April 02, 2013, 04:50:48 pm »
My CodeBlocks version is 12.11,my os is Win XP sp3