General C++ Programming - December 2021 (Page 2)

Can anyone help with this?
 
so I have to write a program that checks a file for the amount of characters(a-z capital and lower 0...
[4 replies] Last: OMG. Have an array that is indexed by the ASCII value of the read char... (by seeplus)
Help C++
 
There are set K circles (the abscissa and the horde of the center and radius) and m (m<=20) points (...
[5 replies] Last: for( int i = 0 ; i < num_points ; ++i ) // for each point (outer loop... (by JLBorges)
knapsack problem
 
Hello I found this code on a website (https://tfetimes.com/bounded-knapsack-problem/) is it possibl...
[6 replies] Last: Hello, sorry I didn't have time to get back to it, like this is good? ... (by annolliwohe)
Calculate monthly payment for a loan
 
Hello I need help creating a c++ program using functions, that calculates monthly payment for a loan...
[2 replies] Last: I need help creating a c++ program What help do you need? What is y... (by seeplus)
Help with Homework project
 
The current program I am working on for school is as follows: Define a class named Complex that ...
[6 replies] Last: I see, understood. (by Ganado)
how to calculate the power of large numbers
 
How to write a program in c++ to find the power of x ^ y, where y = 2 ^ k? To avoid overflow for lar...
[5 replies] Last: I greatly appreciate your help. Thank you so much! (by algmaster)
Error c2400
 
Why this error error C2400: inline assembler syntax error in 'first operand'; i use [visual studio ...
[5 replies] Last: Just for info. If you compile with VS as 64 bit, you can't use in-line... (by seeplus)
I want to be store multiple bank accounts and access each of them. I want them all to have separate data.
 
This is what I have so far: ``` #include <iostream> #include <string> #include <vector> #include <c...
[5 replies] Last: Thank you man this helped a lot. (by OmegaNavy)
I am new in C++ help me
 
When I run the program, it tells me to enter the gpa, but when I enter the gpa, it does not put you ...
[2 replies] Last: int gpa; scanf("%f",&gpa); Format specifier "%f" expects a poin... (by kigar64551)
Executable files in Windows vs Linux
 
Dear experts In the previous time, I heard that executable files in Windows are able to run even...
[3 replies] Last: CPU has some specification for instruction sets (x86, x64 etc). If ... (by kigar64551)
by pika77
bubble sort syntax error (wrong Output)
 
/* Design and develop a Bubble Sort program using two different modular programming methods, i.e. pa...
[6 replies] Last: owwh I see. Thks again for helping me ^^. (by pika77)
Trying to cin an int into a function.
 
I created a small program to convert Farenheit to Celcius. The function itself has no issues convert...
[7 replies] Last: This book might help you: Think Like a Programmer: An Introduction to ... (by thmm)
i need some help programming...
 
Hey all, My professor assigned a final without teaching us how to go about it. I'm honestly in the ...
[1 reply] : and I'm just stumped Stumped with what? Do you understand the assig... (by seeplus)
Conditional configuration of a C++ module
 
Hi, I am looking for ways to configure a C++ 20 Module. For instance: in ordinary (pre C++ 20) cod...
[1 reply] : It depends on what you are trying to achieve with this condition. Nor... (by coder777)
Has anyone used emscripten?
 
I've used other virtual c++ compilers before, mostly ones to be able to write c++ on android. I kno...
[3 replies] Last: OK, so saving files feels a bit hackish on emscripten. A lot can be c... (by newbieg)
Help.
 
When input is obtained - such as a book's title - then convert it to say lowercase and store. Then w...
[2 replies] Last: Are you writing C or C++? Pick one. When possible avoid mixing them... (by AbstractionAnon)
by Cplusc
MPI_Gatherv
 
Let's say I have two vectors a and b and I am going to get the result vector c =a *b . Each part of ...
[4 replies] Last: thanks for your answer. (by Cplusc)
Search word in text file in print that role of context
 
So I need to let the user to input any words he wants to find. For example, in a row of a name list,...
[3 replies] Last: my home-rolled program like this prints the line number & the line if ... (by jonnin)
c++ console program with html
 
Hello, I am starting out on programming and I got an assigment to make a console program with c++ an...
[2 replies] Last: Thanks ! (by arnas1132)
C++ Reading variable names and values from a file
 
Hello So I have a text file that looks some thing like this one = 1 two = 2 three = 3.3 name ...
[3 replies] Last: Cool thanks guys, l'll make one of these solutions work (by WarrenW)
December 2021 Pages: 123
  Archived months: [nov2021] [jan2022]

This is an archived page. To post a new message, go to the current page.