Beginners (Page 26)

Possibly really stupid question about data structures
Hello, I am learning about data structures, and the videos i see creates the data structure, for ins...
[1 reply] : you may read from a file while (input >> a >> b >> c){ l.append( i... (by ne555)
User identified input from computer
Hello, I am currently working on to create text to Binary converter. There is no problem in the code...
[3 replies] Last: Thank you! (by NoobProgrammer002)
Undefined reference to template class
What am I doing wrong here finaladt.h #ifndef FINALADT_H #define FINALADT_H #include <iostream> us...
[3 replies] Last: Delete the definition of those functions I know what you're trying to... (by mbozzi)
Adding and subtracting money question
I've been introduced with friend functions and the like and have been trying to fix my code. I can't...
[2 replies] Last: Oh! Ok that did the trick. Thank you! (by Deadweight77)
Cant figure out error in Bank Simulation logic!
My problem is that when I run the simulation for the bank it keeps removing the wrong customers from...
[3 replies] Last: Cross-posted to: (by Furry Guy)
Calculating GPA from User Input (with constraints)
Hello, I am having some trouble creating a simple program to calculate a GPA from user input due...
[3 replies] Last: I think I solved it using 'cin.get', but if anyone has any other solut... (by confundido)
Reading from file and placing its contents into an array of objects
Hello, I've been trying to read from a file and place its contents to a array of objects in a class ...
[2 replies] Last: Not much, since my teacher at the time didn't do a good job explaining... (by GachaLuck)
without using arrays or vectors
Brian is a shopaholic. Whenever there is a discount of the kind where you can buy three items and on...
[5 replies] Last: Where are you initializing the total and discount? Also, if conditi... (by Duthomhas)
Segmentation Fault, Dynamic 2d Array Part2
I've found what part of my code is causing the segmentation fault but I don't know why. Can anyone h...
[5 replies] Last: The values I've been testing are Board size: 10 rows, 10 columns xRow... (by stephcat5)
by lexa19
Insert user input into mysql
Hi! I have this piece of code, I want to write the user input into db. The problem is that the varia...
[4 replies] Last: the database insert statement should work exactly like it would in a s... (by jonnin)
by Astra
How to prevent the latter function from being called twice
In my visual tictactoe game, I check for a win like so: void HelloWorld::CheckWin(int x, int y) {...
[5 replies] Last: Thanks @jonnin , and Glad to have your 5500th post :D (by Astra)
Someone who can correct my code, please
#include<iostream> #include<fstream> #include<conio.h> #include<iomanip> using namespace std; s...
[7 replies] Last: Hello MazeStuck, This should help to get you started: /* 1)Given a ... (by Handy Andy)
Looking for some advice on that piece of software to create
Hello, I need to create a piece of software that includes a data structure and a search function, bu...
[3 replies] Last: Thanks I will look into these options (by MyOnlinePersona)
Bubble sort with random array
Hey so I am writing a program that sorts a randomly generated list five different ways (bubbleArray,...
[2 replies] Last: So I am trying to take it piece by piece and here is how I am trying t... (by CodingIsHard17)
Reading secret messages
Instructions: A local company is developing a way to pass multiple messages to multiple places at th...
[6 replies] Last: For anyone that needs help. I got it working. Just have to clean some ... (by XboxOne2019)
Bar Graph Manipulation assistance
Here is my code for population growth. The output is nearly perfect, I just need the '*' to be besid...
[1 reply] : #include <iostream> #include <fstream> #include <sstream> #include <i... (by lastchance)
C++ E0413 I want pushback with a Pointer
Hi i have problem with my code. I want use pushBack with a Pointer. But when i use it E0413 ap...
[3 replies] Last: > I dont want use vector beacuse its destroys everthing. > I can^'t us... (by salem c)
by maryt
time complexity of recursive function
Hello. I would like to ask the time complexity of this function. Can you please provide a method of ...
[3 replies] Last: you are welcome. Even if the loop changed N, the answer is the same ... (by jonnin)
Time complexity of matrix addition
Implement the addition of 2x2 matrix in c++ and then give the asymptotic running time in O notation ...
[3 replies] Last: matrix addition is O(N) where N = rows*cols or its N*N if you consider... (by jonnin)
Unexpected answer
The answer is ZERO 0. Why. Please explain #include <stdio.h> int main() { int p=100,q=5,...
[3 replies] Last: Thank you (by Beginner of C)
Pages: 1... 242526272829
  Archived months: [sep2019]

Cannot post in this page. To post a new message, go to the first page.