Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » not wanting to pick all members of user type
not wanting to pick all members of user type [message #47079] Tue, 29 November 2016 13:29
kr8vzn is currently offline  kr8vzn
Messages: 4
Registered: May 2013
Location: Australia
Junior Member
Hi,

I have the following

struct Test : Moveable<Test>
{
unsigned u;
String a;
String b;

static unsigned u_counter;

Test(String s1, String s2 = "") {u = u_counter; u_counter++; a = s1; b = s2;};
Test() {u = 0;};
}

unsigned Test::u_counter = 1;

CONSOLE_APP_MAIN
{
Index<Test> test;
test.Add(Test("one"));

test.Set(0,Test("one+","plus")); // I would like to change value of test.a and test.b but not test.u
}

How can I change just the required values in test with new ones?

Previous Topic: Hey,i met a problem
Next Topic: Docking in the middle.
Goto Forum:
  


Current Time: Thu Mar 28 16:21:55 CET 2024

Total time taken to generate the page: 0.01280 seconds