49,761 Topics

Member Avatar for
Member Avatar for open2join

Hi I am considering to use C++/CLI because of .NET. My aim is to create DLLs where these would be used by some language. Would I be getting any problems if I decided to export DLL containing managed code? Any portability issues? Thanks in advance

Member Avatar for rproffitt
0
287
Member Avatar for cppgangster

Hi I am developing using C/C++ window application using winapi. I will be using some standard STL containers and some win api functions provided by windows.h. I would like use the app on different windows versions such as windows 7 and 10. The apps will be builded for x86 architecture. …

Member Avatar for zigale
0
572
Member Avatar for Yasin_4

The program needs to get loan amount, loan term, and loan interest rate from the user and then use those same numbers to create a function that calculates the monthly payment of the loan using monthlyPayment = principal * rate / ( 1.0 – pow(rate + 1, -term)); I've come …

0
241
Member Avatar for hollywoood69

Hey everyone of the c++ world. I am a little stuck. Here is what i am suppose to be doing. Write the program as an object-oriented C++ program that calculates and displays the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, …

Member Avatar for Yasin_4
0
2K
Member Avatar for dekker13

I'm trying to add insert functionality to a textbook code example. I have an "off by one" error and I can't think of a way to fix it. Here's my attempt below: template< class NODETYPE > void List< NODETYPE >::insertMiddle( const NODETYPE &value, int position ) { ListNode< NODETYPE > …

Member Avatar for Amanuel_1
0
4K
Member Avatar for MattyEva

I should go to this program mentioned below. make a double loop (do ... while) to suppress an incorrect daily calculation!note :::: work with a char variable "error" for erroneous daily calculation. In contrast to the origin program, deposit and payout data should be requested again for a result of …

Member Avatar for Reverend Jim
-1
385
Member Avatar for Jibin_1

So, I have created a text file containing the following: 10001 General Electronics 500 20001 fACEBOOK 700 10002 Twitter 400 The records are stored in a struct containing an integer id, string company and integer number of shares variables. I want the user to enter a Id, say 20001, and …

0
281
Member Avatar for DavidB

I am updating a C++ program, part of which copies arrays of doubles by iterating through each array (copies elements of array wa2 into array X): for (j = 0; j < N; ++j) { X[j] = wa2[j]; } // End for j I would like to use the built-in …

Member Avatar for Tom_40
0
2K
Member Avatar for cambalinho

the question seems simple, but isn't. think that i have the functions list and it's parameters and the variables on vectors(inclued it's types.. it's a structure). now see these string(yes i have the words\operators count): function1 ( function2 ( ) , function3 ( parameter1 ) , parameter3 ) the count, …

Member Avatar for cambalinho
0
594
Member Avatar for Hamza_23

i want to write code in data structure using c++. my topic is online voting system.

Member Avatar for Adhocdegra
0
768
Member Avatar for Fernando_14

Hello! I am interested in the issue of protecting the code from hacking. Do you protect your code from decompiling and hacking? Why did the question arise? I worked in a team that developed games for Android. They all used obfuscators! So almost no one could hack their application. Now …

Member Avatar for StarDrago
1
3K
Member Avatar for coldkiller

I am working on a equation balancer for my 12th class computer science project.But somehow i am not able to balance the chemical equation.Please if anyone can provide me the source code it will be a great help.Urgently needed!

Member Avatar for Hariharan_1
1
7K
Member Avatar for cambalinho

i create the read(...) function for read to variables. but i need too the read()(without arguments) for press enter before continue\exit. void read() { //wait if the enter key is pressed: cin.ignore(); cin.get(); } template<typename first_t, typename... rest_t> void read(first_t &first, rest_t... rest) { std::cin >> first; read(rest...); //function is …

Member Avatar for cambalinho
0
2K
Member Avatar for cambalinho

i'm trying using the GNU compiler with command lines( using the ShellExecuteEx()). when i do: string FileName1="C:\\Program Files\\mingw-w64\\x86_64-7.2.0-win32-seh-rt_v5-rev1\\mingw64\\bin\\x86_64-w64-mingw32-g++.exe"; run(FileName1,"-c \"C:\\Users\\Cambalinho\\Documents\\CB\\testfolder\\bin\\Debug\\test2.cpp\""); the object file is created. these line creates the exe: run(FileName1,"-o C:\\Users\\Cambalinho\\Documents\\CB\\testfolder\\bin\\Debug\\test2.exe C:\\Users\\Cambalinho\\Documents\\CB\\testfolder\\bin\\Debug\\test2.o"); (tested) but the exe have some dependencies... so seen the Code Blocks: x86_64-w64-mingw32-g++.exe -Wall -g -std=c++14 -c …

Member Avatar for cambalinho
0
2K
Member Avatar for Aild

Hi all, I'm having a little problem with array and some "unqualified-id" problem. I've created gazillions (okay, maybe 80) arrays before but I had never encountered such problem. Especially with static arrays. [CODE] #include <stdio.h> #include <cstdlib> using namespace std; int main() { // with addition of buffers for 3x3 …

Member Avatar for Andy_20
0
13K
Member Avatar for Ashish Kumar_1

Create a text file (w/o using any C++ program) containing the names of students and their marks in the following format: **Ajay 350 Vijay 340** where name and marks are separated by either a space or a tab and end of line is a record separator. Write a program to …

Member Avatar for AS@daniweb.com
-2
700
Member Avatar for Sandra_18

hi so i am studying programming and i want to extract from an inputted string values in the left right and middle. i have only begun learning a few months ago so i dont know anything about pointer how to i build a funtion to extract the mid left and …

Member Avatar for rproffitt
0
355
Member Avatar for tobygarrick

and im working on Archery, bow hunting, bow sling, paracord, backcountry gear, tree stand, my sling-a-ling ,jakt gear, total archery challenge, hunting accessories, bowhunting accessories, bowhunting gear, bow hunting, 3D archery, archery tournaments, hunting season, archery sling, archery accessories much more .Im new in this forum I need lots of …

Member Avatar for happygeek
0
459
Member Avatar for Yoni_2

hello. how can i print out in textbox a void * value ? here is the code: uintptr_t offsetFromBuffer = (uintptr_t)internalAddress - (uintptr_t)&buffer; void * healthDecAddress = (void*)(currentChunk + offsetFromBuffer); richTextBox1->Text = healthDecAddress; // how can i do it right ?

Member Avatar for Yoni_2
0
413
Member Avatar for networkZombie

Ok so I have been trying to do project euler problem 1 which finding the sum of all the multiples of 3 and 5 that are less than a thousand. i dont know why my program is not working. here's my program - [code=c++] #include <cstdlib> #include <iostream> using namespace …

Member Avatar for memson
0
519
Member Avatar for Petcheco

Hello, friends. I did the fourth challenge on Project Euler and I'd like to know what I can do to improve the efficiency of my code. Right now it takes 1.562s to run and the source code is as follows: #include <iostream> #include <string.h> using namespace std; int Number = …

Member Avatar for memson
0
414
Member Avatar for nitos
Member Avatar for rproffitt
0
325
Member Avatar for Ana Mae

#include <iostream> #include <cstdlib> #include <fstream> #include <ctime> using namespace std; void array(int arr[], int arrSize); void add(int arr[], int arrSize, int newElem); bool edit(int arr[], int arrSize, int index, int newVal); bool delEm(int arr[], int arrSize, int elem); bool search(int arr[], int arrSize, int elem); bool PunoNa(int arr[], int …

Member Avatar for Ana Mae
0
892
Member Avatar for cambalinho

heres my actual code for find\search a folder: string FindDirectory(std::string FindDirectoryName[2], std::string StartDirectory="C:") { WIN32_FIND_DATA file={0}; string str=StartDirectory+ "\\*"; HANDLE search_handle = FindFirstFile(str.c_str(), &file); static bool blnFindDirectoryName=false; static string strFolderName =""; //testing if the folder is valid: if (search_handle != INVALID_HANDLE_VALUE) { do { //if the folder was founded, then …

Member Avatar for cambalinho
1
2K
Member Avatar for Ilia_2

Hi, I have a C++ program : // ConsoleApplication14.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <list> #include <queue> #include <vector> #include <string> using namespace std; class RectangularVectors { public: static std::vector<std::vector<int>> ReturnRectangularIntVector(int size1, int size2) { std::vector<std::vector<int>> newVector(size1); for (int vector1 …

Member Avatar for Nutster
0
595
Member Avatar for cppgangster

Hi I am trying to get windows positioned in specific order as show below ![desired.PNG](/attachments/large/3/6447240b1491d04046fa904f31659f9b.PNG) but I am unable to get and get always this ![wrong.PNG](/attachments/large/3/71f4b92c4f40a6afeeab7e3c2f136526.PNG) the code below is shown HDWP cmdWnds; cmdWnds = BeginDeferWindowPos(col.size()); for (int i = 0; i < col.size(); i++) { if (i == 0) …

0
335
Member Avatar for killerqb

I know an AVL Tree guarantees a time of log(n), but what is the time cost of the actual re balancing of the tree and why is this ignored?

Member Avatar for Herbert_3
0
488
Member Avatar for VASebastian

I am a beginner in C++ coding. Now I am making a little text based game and i need to do a loading screen. I've kind of made one but i want to fill it with this shape ■. What i know is that the ascii code for it is …

Member Avatar for rproffitt
0
650
Member Avatar for sgw

When I try to display the address of a char type variable, I don't get the normal hexidecimal address, but some strange symbols. I don't have the same problem with int or string, etc.. Example: char x='#'; cout << &x; The output of this is: #( ( What's the explanation?

Member Avatar for sgw
0
535
Member Avatar for restrictment
Member Avatar for emeraldamerican
0
6K

The End.