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

by Qsh222
A problem involving divisors
 
There are two numbers written on a board, A and B. If A and B are divisible by P, where P is a certa...
[5 replies] Last: For 70 and 84, - divide each by 7 gives 10 and 12 - divide the first b... (by lastchance)
How does one get the width of an general int (1,2)
 
My goal is to set only the high bit of a general int. I would like to use it as a constant for spe...
[23 replies] Last: Implementing a Fourier transform? (by mbozzi)
PLEASE HELP!! THIS IS DUE IN 13 HOURS!
 
PLEASE HELP A COMP SCI MAJOR STUDENT OUT!!!!! (this is due in about 13 hours) I need to Approximate ...
[10 replies] Last: thank you everyone for your help, please forgive my obvious errors I a... (by vvartani)
How to reset ethernet settings?
 
Hi everyone. I want to write a code for reset the ethernet settings. Is it possible to do such a t...
[4 replies] Last: What is "ethernet settings" anyway? In firmware of card, in UEFI nvram... (by keskiverto)
by azenda
An array of pointers to arrays of derived objects?
 
Hello, I have a base interface and a few classes derived from it, holding similar but different d...
[9 replies] Last: I'm not sure (not tested) if I can simply use derived classes in a st... (by MikeyBoy)
Screen capture performance with directx
 
I am trying to make a fast screen capture with direct x, but the performance is horrible.. This func...
[no replies]
by volang
Does all std functions throw exceptions?
 
Does all standard functions throw exceptions? Or only the ones that have specs where it's mentioned ...
[7 replies] Last: right, a thing to consider is many library functions work with user-de... (by Cubbi)
Linked List Delete won't work
 
I was task to create a linked list and it must be menu driven I already finish the other parts but t...
[6 replies] Last: In case anyone in the same class is following along... Notice that ch... (by dhayden)
Need Library for digital to analog conversion: any help?
 
I need to find a library for robotics that lets me change audio from a file, digital, to analog outp...
[5 replies] Last: will openal work on this thing? I am pretty sure it will do what you... (by jonnin)
operator overload from setfill? weird error from code
 
Hey yall, I was working on my code for class and I ran into this error with this chunk of code. I ca...
[2 replies] Last: That worked! I took a bit of editing since the characters started disp... (by dorito200)
MATLAB vs C++ Outputs not matching
 
I have the following function of sum of sines and cosines in both C++ and MATLAB and I am using this...
[10 replies] Last: Hey everyone! It seems the issue was a huge "round off" error. I didn... (by JamieAl)
Help with Socket Programming code
 
Here is the code in question in C not C++: // Example socket client #include <stdio.h> #include ...
[2 replies] Last: It seems you're learning it backwards. Ideally you'd learn a bit abou... (by kbw)
Problem with static queue c ++
 
Hello this is code, but not show list help me please #include <iostream> #include <stdio.h> ...
[3 replies] Last: Line 16: You're assigning a pointer to itself. That does nothing. R... (by AbstractionAnon)
Infinite loop when a letter is an Input, any fix?
 
Hi, I got this problem where the program just infinitely loops when a letter is an input instead of ...
[3 replies] Last: Anywhere your stream may fail, you should have: if (cin.fail()) ... (by zapshe)
Help with Event Simulation Program
 
GitHub URL: github.com/CIS-3207/project-1-fall21-tui92851 File: lab1.cpp can be found in .github f...
[1 reply] : If you debug and go line by line in the while loop you get an idea of ... (by linklance)
replacing function name
 
Hi all - This question is equally applicable to C and C++, I believe. I'm working on porting a...
[6 replies] Last: yea that was the 'wrapper' idea :) but you are totally correct. (by jonnin)
Help with Process Synchronization (C not C++)
 
Please help me solve parts a, b, and c, it is confusing me and taking me forever because I don't kno...
[2 replies] Last: > Please help me solve parts a, b, and c, ¿did you solve part zero? ... (by ne555)
division for a counter??? help please!
 
Hey yall, this is part of a big assignment I have coming up and this part has put my progress at a d...
[2 replies] Last: #include <iostream> int main() { // Create an integer var9 and ... (by The Grey Wolf)
by Armanc
How to not change original array values when using recursive function in C++?
 
I am using a function to change the array's elements. Basically, it merges two elements and puts the...
[3 replies] Last: Aarrgh! That's the worst way to solve it! What that does is create a ... (by Duthomhas)
Need help starting/doing this lab
 
I need help with this problem, its supposed to read from an input.txt file, do what it says in the r...
[7 replies] Last: I really don't know how to do any of those things It sounds to me l... (by dhayden)
September 2021 Pages: 1234... 6
  Archived months: [aug2021] [oct2021]

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