Beginners - May 2020 (Page 7)

Making code maintainable and readable
 
How can I make code more maintainable? I come from a Java background, where there is Javadoc, which ...
[4 replies] Last: any good code formatters? Visual Studio IDE has a MS customizable co... (by deleted account xyzzy)
error: 'x' is not a type . Would anyone just debug it . I don't know what is wrong with it .
 
#include<iostream> #include<vector> using namespace std; struct Matrix{ int x,y; vector<vecto...
[11 replies] Last: Coool ! Thanks guys i got those mistakes && even found, far better way... (by Avi0110)
segmentation fault !!!
 
hey, In the main part, I get the segmentation fault error while going to the next part of this, for...
[5 replies] Last: Get rid of all this pointer stuff and stick with char arrays. I guess ... (by Thomas1965)
Need help with project (1,2,3)
 
I have this project, but I have no idea what to do. Can anyone point in the right direction, I just ...
[42 replies] Last: TheToaster , thanks for pointing that out! (by dhayden)
How can i pass 2 dimensional arrays to functions ?? The size of the arrays is not predefined ... We would take it as input .
 
#include<iostream> using namespace std; void MatrixMulti(int A ,int B ,int AB ){//size of A is...
[6 replies] Last: you are making this way too hard by trying to use 2-d arrays or ** c... (by markyrocks)
How can i pass 2 dimensional vectors to functions ??
 
#include<iostream> #include<vector> using namespace std; void MatrixMulti( vector<vector<int> > ...
[3 replies] Last: Ohh great i got it .. thanks Ganado! (by Avi0110)
Modifying records in a linked list
 
Okay so what I want to happen is the program will ask me to input the id of the tutor that I want to...
[5 replies] Last: @Iveeerrr Did you delete your code after getting an answer? Please D... (by MikeyBoy)
Pass by reference in C
 
Hello, Can I have the below code in C? (I don't want to use a pointer.) The below code wrote in ...
[5 replies] Last: https://www.cs.utah.edu/~germain/PPS/Topics/C_Language/c_functions.htm... (by jonnin)
taking input from a file (graph)
 
Hi, So I need to represent a graph using adjacency matrix.The number of vertices and edges I have...
[2 replies] Last: Are you sure that your graph isn't undirected? Your data seems to cor... (by lastchance)
by Mif
Load .txt file with resurce
 
Working to same project an MDI and now I have to load some text files to my child window, that handl...
[2 replies] Last: No no... If you have a project and in the same folder you have an ex... (by Mif)
Polymorphism: trying to access subclass from superclass vector
 
Right now this is my code I have a vector of Shared_ptr of Elements. SignalTrack and StraightTrack i...
[12 replies] Last: It does sound like inheritance isn't the right option here. Sounds lik... (by Repeater)
Pairs card game
 
ssss
[2 replies] Last: i also have a player struct and a game struct that controls the whole ... (by markyrocks)
Back in the classes again... I'm BAAAAACK! (1,2)
 
Okay trying to pass a struct nested in a class nested in a class class BaseClass { public: ...
[20 replies] Last: I say your wrong you take it as a personal attack and act like a petu... (by TheToaster)
reverse a sentence with recursion
 
Hello everyone. I have been asked to reverse a sentence using recursion. Below is what I have manage...
[12 replies] Last: Thanks to everyone that has helped me! Starting to get somewhere now..... (by jamesfarrow)
Reading from a txt file to linked list
 
Hi, I just got started with Linked lists and i am trying to read from a txt file to linked list. Thi...
[18 replies] Last: Thanks guys. everything is working fine now. Really appreciate it. (by dipeshgoyal44)
Can I declare an extern variable static?
 
What the title says. extern static int x(void);
[5 replies] Last: Sorry, I keeps saying that. I’m just using a function because why no... (by highwayman)
by Horror
Text Base Adventure Game in C++
 
Hey, I was trying to see if you someone could help me on creating a text-based adventure game. It's ...
[2 replies] Last: https://cplussplussatplay.blogspot.com/2012/11/text-adventure-games-c-... (by deleted account xyzzy)
Matrix and vector multiplication
 
Hello, so I have an assigment in uni to write program that multiplies matrix by the vector. Also it ...
[4 replies] Last: Thanks, got it working like this: void Matrix::allocation(int ln, in... (by audrius69)
recursive function to normal function
 
Hello there. i'm trying to find gcd between 2 numbers but i did with recursive function. can anyone ...
[1 reply] : Did you try searching the internet? There is code out there for findi... (by deleted account xyzzy)
May 2020 Pages: 1... 56789... 17
  Archived months: [apr2020] [jun2020]

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