
please wait
by junweinehc
An input variable takes both double and string?
|
I'm making a timezone converting program. Sample outputs are here: $ echo "noon HST EET" | ./a.out midnight $ echo "11:29 a.m. EST GMT" | ./a.out 4:29 p.m. w... |
Jun 30, 2022 at 2:03pm
[1 reply] : Read the input into a string and parse the string (checking for all va... (by JLBorges)
|
by denver2020
Image pixel to vector
|
Is there any way to read various images from different types like bmp, jpeg, png and put those pixels values in a C++ vector, then modify those pixels values an... |
Jun 30, 2022 at 12:29am
[16 replies] Last: Be careful with that stuff though. IIRC, bmp alone has like 5 'magic'... (by jonnin)
|
by JamieAl
FFT results of c++ vs MATLAB (1,2)
|
I have the following code in c++ with an fft function that has been tested before: #include <cmath> #include<math.h> #include<stdio.h> #include "fftw3.h"... |
Jun 28, 2022 at 8:48pm
[22 replies] Last: This is pretty HELPFUL, thanks a lot everyone! (by JamieAl)
|
by seeplus
Help with this problem
|
and what is your current effort to code this? How far have you got? What issues are you having? Post your current code. |
Jun 28, 2022 at 11:55am
[3 replies] Last: ... but can you understand and explain it? If that was for a homework... (by seeplus)
|
by thmm
Fuzzer support in VS2022
|
I just installed VS2022 and noticed that there is sth. called Fuzzer Support under Settings->C++->General. How does it work? Has anyone used it ? |
Jun 27, 2022 at 10:39pm
[2 replies] Last: I've seen it, never used it or any of the other address sanitizers ava... (by deleted account xyzzy)
|
by LukeProducts
Virtual method from derived class is not called
|
Hello all, i am stuck fixing why the base classes virtual method is not called. The variable (arr) is initialated as the base class Entity. I now want to be... |
Jun 27, 2022 at 9:15pm
[8 replies] Last: @kigar64551 One could argue that bar() on line 7 is "called via poin... (by Peter87)
|
by marhuum
Code writing specification when it needs to be broken to the next line
|
How's coding text specification when it needs to be broken to the next line by adding \ i.e. how is it if there're some \ characters in the will-be-broken long ... |
Jun 27, 2022 at 3:55pm
[4 replies] Last: heh, they linked the tame clang bug report, but not gcc's https://gcc.... (by Cubbi)
|
help with stack |
Hello, I'm trying to create a stack wherein it can accept any data types, but somehow I'm having some errors while running the program. I keep on getting the ... |
Jun 27, 2022 at 8:54am
[3 replies] Last: As one file, consider: #include <iostream> #include <string> templ... (by seeplus)
|
by t im
About the return value of (b, c)
|
I just want to write the code // a, b, c are all int; a = max(b,c); However, I missed the max, and the code is: a = (b,c); The code ran as well. I wonde... |
Jun 27, 2022 at 3:06am
[3 replies] Last: Thanks for your answers. (by t im)
|
by Worldtreeboy
Does reference variable/reference parameter store address?
|
I know that reference is an alias to a variable but i read somewhere online that reference store address of the variable it refers to. Kind of confused right ... |
Jun 27, 2022 at 2:15am
[4 replies] Last: As mentioned, in the language, references have no size and no address,... (by Cubbi)
|
by Worldtreeboy
why does printing address of c string returns the entire string?
|
why does printing address of c string returns the entire string? let's say I have a char cString {"HELLO WORLD"} 1. why does printing out the &cString r... |
Jun 27, 2022 at 1:25am
[3 replies] Last: Thanks. I edited my code. (by Worldtreeboy)
|
by ForgottenLaw
Help in Stacks
|
Hello. I've been studying stacks and I just want to know on how to modify this code below, wherein, This program can accept any data types. Can someone help me ... |
Jun 26, 2022 at 5:04pm
[4 replies] Last: printStackElements() is very inefficient as it first copies the stack ... (by seeplus)
|
by LukeProducts
Assigning derived class of new-array failes
|
Hello all, i am currently in the process of implementing a console version of greenfoot. I have assigned the base class (Entity) to each object on the 2-dime... |
Jun 26, 2022 at 6:45am
[2 replies] Last: Class Entity should have a virtual destructor. Deleting an object... (by JLBorges)
|
by lexicution17
Difficulty with "if statements" homework
|
I'm struggling hard with an exercise in Cengage for my Intro to Programming class. Professor hasn't gotten back to me for assistance (it's an online class) and ... |
Jun 25, 2022 at 4:48pm
[5 replies] Last: Post your completed code and we could give some "better ways to code" ... (by deleted account xyzzy)
|
by sandbox007
Help with building this game
|
Hi all , I have been trying to make a game where 2 players pick from 4 cards but I am having trouble on assigning the randomly generated numbers into each card ... |
Jun 24, 2022 at 11:00pm
[8 replies] Last: FYI, anyone foolish enough to click on spammer Hison's links deserves ... (by deleted account xyzzy)
|
by TofuKozo1221
Help Lease a property ADT
|
Add a Property Lease a Property Retrun a Property Show Property Details Show all Property Show all Available Properties Leaser's Log -1 Add ... |
Jun 24, 2022 at 10:54am
[6 replies] Last: To get you started: #include <list> #include <queue> struct Property... (by thmm)
|
by crdo
can't see my data stored in a (VECTOR/STRUCT)
|
my code is bellow. I'm trying to call the data stored in the vector (cout command in the last line) and when I run this code it just prints "LECTURA FINALIZADAo... |
Jun 23, 2022 at 11:42am
[7 replies] Last: L21. This isn't needed as file streams are closed automatically when t... (by seeplus)
|
by denver2020
Phone DB app c++ (1,2)
|
Hi All I have developed a phone DB application with user name, address, contact number related info. Also created functions for adding, viewing, searching, e... |
Jun 23, 2022 at 6:52am
[26 replies] Last: is it awful? Its ensured so you can do exactly that, or am I off base... (by thmm)
|
by JamieAl
2D FFT of Eigen matrices using FFTW library
|
I'm trying to use the FFTW library with Eigen. Since Eigen's unsupported module is slower. So, I'm struggling on implementing a very basic example. Here is what... |
Jun 22, 2022 at 7:09pm
[2 replies] Last: @kigar64551 hey you're so right, I guess writing code at 1 am is not a... (by JamieAl)
|
by frek
Max product of three elements
|
Hi all, Task, in summary: Find the maximum product of three elements in an array of int type with at least 3 elements . I'm sure this task is something you'v... |
Jun 22, 2022 at 8:43am
[8 replies] Last: That's why I assume there must be some math source I can study and le... (by seeplus)
|