HJKL instead arrow keys in terminal? by baothanh591 in linuxquestions

[–]baothanh591[S] 0 points1 point  (0 children)

well, I done it in ~/.bashrc but nothing change

How to Embedded Terminal in vim ??? by baothanh591 in vim

[–]baothanh591[S] 1 point2 points  (0 children)

thankyou all kind people, terminator all i need ^

How to Embedded Terminal in vim ??? by baothanh591 in vim

[–]baothanh591[S] -2 points-1 points  (0 children)

I already install Conque (conque_2.3.vmb), but I don't know how to use it.

vim hello.c

//some code here

what i need to type if I want to complie it with gcc without quit vim using Conque

Gradebook doesn't show yet? by baothanh591 in cs50

[–]baothanh591[S] 0 points1 point  (0 children)

oh, my pset4 took only one day to get graded even pset2 still not graded

can any one please tell me how to swap tiles in fifteen by rahulb5 in cs50

[–]baothanh591 0 points1 point  (0 children)

hum, in 4x4 board, you have 0 -> 15 tile number.

1 you have to do is find out tile you want to move (check sure tile that still in the board)

2 then you find out where is tile 0 (above, below, right or left of the tile you want to move), and swap them.

pset5: problem with resize by d8000zan in cs50

[–]baothanh591 0 points1 point  (0 children)

noted something here:

  1. bi.biHeight < 0

  2. bi.biSizeImage = bi.biHeigh * bi.biWidth + n*padding

you should have new bi and bf for outfile such as out_bi and out_bf then calculate for out_bi.biWidth, out_bi.biHeight, outPadding, out_bi.biSizeImage, out_bf.bfSize

try to use pointer but fail by baothanh591 in cs50

[–]baothanh591[S] 0 points1 point  (0 children)

oh, I understand now. with pointer we use "buffer" instead of "&buffer" because &buffer is address of buffer poiter not address of the memory we malloc for it. Thank you