|
From: | Amos Bird |
Subject: | Re: [O] evaluate cpp snippet in org babel with default includes and customized entry point |
Date: | Sat, 16 Sep 2017 17:14:00 +0800 |
User-agent: | mu4e 0.9.19; emacs 25.3.1 |
Hmm, is it possible to customize babel's c++ backend to achieve this? I may also want a evaluation that submits the code to online judge and returns the result.
Thierry Banel <address@hidden> writes:
> You still need to explicitly call twoSum(), and that cannot be hidden.
>
> On 16/09/2017 10:58, Amos Bird wrote:
>
> Ok, i get the idea. So how can I customized the default code expansion so that it can directly evaluate this
>
> class Solution {
> public:
> vector<int> twoSum(vector<int>& nums, int target) {
>
> }
> };
–
Amos Bird
address@hidden
[Prev in Thread] | Current Thread | [Next in Thread] |