[Solved] Cout the last result only?

[ad_1] Just put the cout outside the for loop, like this: for (size_t i = 0; i < boo.size(); i++) { while (boo[i] == ‘a’) { count+=i+1; if(count>b) b=count; // cout<<<<“a=”<<b<<“\n”;; //remove from here break; }} //add here cout<<<<“a=”<<b<<“\n”;; 1 [ad_2] solved Cout the last result only?

[Solved] assembler code of a fragment of C++ code [closed]

[ad_1] If you use GCC for a compiler, you can use –save-temps which prevents the intermediate files (including the assembly output) from being deleted after it’s done. See http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html [ad_2] solved assembler code of a fragment of C++ code [closed]

[Solved] invoked function is not working in winforms [closed]

[ad_1] EDITED You must pass the instance of FrmA into the constructor of FrmMenu. In FrmA: private void Print() { FrmMenu ObjMain = new FrmMenu(this); ObjMain.Show(); } In FrmMenu: public FrmMenu(FrmA f2) { f2.CreateButtons(“NEW”); } 0 [ad_2] solved invoked function is not working in winforms [closed]

[Solved] Making and drawing an image C#? [closed]

[ad_1] You could use GDI+ (and more specifically the Graphics class): // Load an existing image into a Graphics object using (var image = Image.FromFile(@”c:\work\input.png”)) using (var gfx = Graphics.FromImage(image)) { // Draw a line on this image from (0x0) to (50×50) gfx.DrawLine(new Pen(Color.Red), 0, 0, 50, 50); // save the resulting Graphics object to … Read more

[Solved] How can i create a file .csv?

[ad_1] If you want to write the results in a file, move FILE *f = fopen(“test”, “w”); into your main() function (also check return value since the function can fail), if you want the file format to be csv then you should add the extension .csv so that other people know it has that format … Read more

[Solved] how can i fix System.IndexOutOfRangeException: ‘Index was outside the bounds of the array.’ in my undo and redo? [closed]

[ad_1] One simple solution would be to use a List instead of an array. List<string> temp = new List<string>(); It will need some tweaks but it will not limit you to 100 actions. In any other case, you should decide the strategy. Do you want to delete the initial items? Then remove your first X … Read more

[Solved] C++ Word guessing game [closed]

[ad_1] crke[b] = ugib[b]; This line should be: crke[b] = ugib[z]; You might want to consider investing some time in learning how to use a debugger, which would’ve helped you figure it out. [ad_2] solved C++ Word guessing game [closed]