Looking for a online tool/application that can read this code
Go4Expert Forums » C++
by Dellan
11M ago
Hi Guys im looking for a tool/application that can read this code:: void create() { // file pointer fstream fout; // opens an existing csv file or creates a new file. fout.open("reportcard.csv", ios:ut | ios::app); cout << "Enter the details of 5 students:" << " roll name maths phy chem bio"; << endl; int i, roll, phy, chem, math, bio; string name; // Read the input for (i = 0; i < 5; i++) {... Looking for a online tool/application that can read this code ..read more
Visit website
Fpermissive error
Go4Expert Forums » C++
by codeBlue
1y ago
I am coding a project and when I compile it I get the following error. src/bitmatrix.cpp: In function ‘Bitmatrix* Inverse(const Bitmatrix*)’: src/bitmatrix.cpp:353:23: error: passing ‘const Bitmatrix’ as ‘this’ argument discards qualifiers [-fpermissive] m->Swap_Rows(r, c); I have tried a few things to fix this but have been unsuccessful, if you all need the portion of code this pertains to I can post that up as well ..read more
Visit website
C++ Shellcode from char into virtualalloc & memcpy does not work
Go4Expert Forums » C++
by shity23
1y ago
I am having a hard time figuring out why the payload isn't working after reversing in decoder2.cpp. When I "cout" the output of the "Reverse(input);" I get a valid shellcode and can be inserted into decoder1.cpp without any problems. decoder1.cpp Code: int main() { //char code[] = "\xfc\xe8\x8f..."; // INSERT SHELLCODE HERE void *exec = VirtualAlloc(0, sizeof input, MEM_COMMIT, PAGE_EXECUTE_READWRITE); memcpy(exec, input, sizeof input); ((void(*)())exec)();... C++ Shellcode from char into virtualalloc & memcpy does not work ..read more
Visit website
Help with the code
Go4Expert Forums » C++
by JamesFlangan
2y ago
hi there, can somebody help me to do this task. I would really appreciate it. thanks in advance! I already have some parts of the code but I got stuck and I don't know what to do and if the code is correct that I already have ..read more
Visit website
Unable to exit program
Go4Expert Forums » C++
by Kenneth Reid
2y ago
I am working on a large C++ (console) project that has multiple menus (1 main menus with 4 options, and each of those options as additional options or menus). The int main() module simply calls the "MainMenu()" option, which has 5 options to choose from - 4 options to go to other menus, and 1 option to "Exit the progam". If I choose to exit the program before going to any other menu, the program will exit, but as soon as another menu option is chosen, the program will not exit. I have no... Unable to exit program ..read more
Visit website
Trying to create a variable that holds 15 items
Go4Expert Forums » C++
by Kenneth Reid
2y ago
How would I create a variable that holds the following information: string Data["Current Assets", "Current Liabilities", "Inventory", "Total Debt", "Total Assets", "Profit Before Taxes", "Interest Charges", "Annual Lease Obligations", "Fixed Charges", "Sales", "Receivables", "Sales per day", ["Fixed Assets", "Net Profit After Taxes", "Net Worth"]; I am trying to setup this variable (Data) to hold 15 items of data to be used for a screen printout and/or a hard copy printout of data. Each... Trying to create a variable that holds 15 items ..read more
Visit website
How do I make menu items "active" when selecting a specific menu item from the main menu bar?
Go4Expert Forums » C++
by Kenneth Reid
2y ago
I am working on a new program using Visual Studio 2022. I have edited the main menu bar to display 9 different drop-down menus. Each drop-down menu has x menu items to choose from, some of which will display menu items (specific to that menu item). How do I write the code to make the menu items "active" when the user clicks on a menu item (i.e., when a menu item is clicked, it will open a new window to allow for user input)? I am new to writing Windows programs. I am not finding example... How do I make menu items "active" when selecting a specific menu item from the main menu bar ..read more
Visit website
Difficult C programs
Go4Expert Forums » C++
by aijaz
2y ago
hello frends ... i need sme help in developing some programs in C 1) i want the out like this 1 1 1 1 1 2 1 1 2 3 1 1 2 3 5 1 1 2 3 5 8 ... & soon .. till the range i specify ... here you can see tht we are adding the Diagonal digits ... plz help... Difficult C programs ..read more
Visit website
Momentary Switch Function
Go4Expert Forums » C++
by ddragon1999
2y ago
I have a micro-controller from Red Bear Labs and I am using it to control an 8 channel Relay Module with a Red Bear Labs iOS app. I am using the code that has been provided to me by the company and I have done little modification to it but I want to add a function to it. All of the switches on the iOS app that control the micro-controller / relay act as toggle switches. Once pressed from High “H” (relay switch open) to Low “L” (relay switch closed) the switch will stay in the low position.... Momentary Switch Function ..read more
Visit website
Logical operators in c++
Go4Expert Forums » C++
by hassan ali
2y ago
i am a novice programmer and i want to learn through practicing. Code: #include <iostream> using namespace std; int main() { for(int i=0;i<=6;i++) { if((i<=3)&&(i==5)) continue; cout << i << "\t"; } } I created the above code and my required output of this code is 4 6. when i compile and run this code the output is 0 1 2 3 4 5 6 which is not my required output. I can get my required output through || operator. Code: #include <iostream> using namespace std; int main() { for(int... logical operators in c ..read more
Visit website

Follow Go4Expert Forums » C++ on FeedSpot

Continue with Google
Continue with Apple
OR