Beginners - November 2018 (Page 12)

by Bentz
regular pointer vs pointer to an array
 
what is the difference between "int* p" and "int (*pa) " in regards to point to an array int arr ; int* p = arr; int (*pa) = arr; ...
[4 replies] Last: thank you all for the input (by Bentz)
Help with string find() loop?
 
I am asked to use the find function for a string to find the number of blank spaces in string input. However, this program does not give the correct answer. Can...
[1 reply] : You problem is that using i as an offset in find(...) you will find th... (by coder777)
by l0k1
Undefined reference to vtable for screen logger
 
So im working on an assignment for school and i keep on getting an error that says: undefined reference to vtable. I already tried defining all my virtual func...
[4 replies] Last: Thank you kbw! (by l0k1)
Changing array of class
 
Hi!I want to change array of integer in array of elements of other class. class Vector { private:int *vector; //i want to change this array int dim;...
[10 replies] Last: Thank you very much for all of yours answers. (by Zivojin)
Code won't make text file?
 
A while back I got into file stuff in C++ and it was working fine, like I've made small programs with it, but now my code won't work! (This is new code that I h...
[2 replies] Last: > Doesn't the quotations tell the compiler to make the text file at th... (by JLBorges)
Suma de matrices
 
Podrian ayudarme a encontrer que está mal en el código por favor, al momento de copilar no salen errores pero cuando lo ejecuto no sale nada en la funcion que...
[1 reply] : #include <iostream> #include <iomanip> #include <vector> #include <c... (by tpb)
A few lines of the TicTacToe game:
 
cout << "Invalid move "; player--; cin.ignore(); cin.get(); } i = checkwin(); player++; } while (i == -1); board(); if (i == 1) cout << "==>\aPlayer ...
[1 reply] : Hello samtheman, Based on what you have "i" is being set to the retur... (by Handy Andy)
by Kreons
Help with Deck Shuffle Program
 
I'm trying to figure out why my sort function from the Player class doesn't work. Any suggestions will help. My sort function uses an overloaded "<" operator fr...
[8 replies] Last: You have some fundamental problems. You declare Card arrays in Player... (by tpb)
Help with Game
 
Hi there, i have recently been trying to build a slot machine that emulates the wheel actually spinning. For example i would like the characters A B C D E to r...
[6 replies] Last: If you need to do multiple lines then you should take Guando's advice.... (by dhayden)
Having trouble with passby value
 
#include <iostream> #include <string> #include <iomanip> using namespace std; //*******************************************************************************...
[3 replies] Last: Hello BruhImSkill, PLEASE ALWAYS USE CODE TAGS (the <> formatting b... (by Handy Andy)
by Tduck
When to use stacks instead of a vector?
 
From what I understand stacks are just vectors which can only be operated on from one end. Vectors, on the other hand, are versatile dynamic arrays, which you ...
[1 reply] : I asked a question similar to this when I was newer. The answer prett... (by Ganado)
Keep getting 0 for the area of a rectangle HELP!
 
Everything is working fine and the program runs, the only issue is I keep getting 0 for the area when it does the calculation for rectangle. Can someone point ...
[4 replies] Last: Your indentation could use some work. I suggest always using spaces in... (by tpb)
Container Class
 
I need help creating a container class for this code so I can then modularize it. Any help is greatly appreciated!! Below is what I have written so far without ...
[4 replies] Last: I'd start with "multiple modules to organize your code". (by jlb)
Need help with my craps game.
 
Just having issues with my Craps game. I have the game working but how would you go about having the game ask you if you'd like to play again. From what we were...
[4 replies] Last: Hello bored62, When I adjusted your program I found that the while lo... (by Handy Andy)
C++ Windows application start guide
 
Hi guys, I am trying to learn C++ and making some assignments to gain more knowledge. Found this challenge: Make a graphical transmitter application through ...
[3 replies] Last: Next you need to compute the velocity of the rocket ship. ... Ok, I ... (by jonnin)
by faidi
Having to input twice in a loop (C++)
 
Hello! I'm a new user here, please forgive me for any future mistakes that i will do. I'm trying to create a program (based on an exam question as an exercise) ...
[2 replies] Last: Hello faidi, I will try to explain what keskiverto is saying. You ne... (by Handy Andy)
constant constructors
 
Hello. In my program, I am trying to define a constant variable through a constructor, but it returns an error. Do I need to somehow make the constructor a cons...
[4 replies] Last: I think the point here is that it needs to be initialized in the memb... (by MikeyBoy)
I want to input entire dictionary in excel or notepad to run string algorithms
 
Hi there, I want to take Dictionary or few thousand words as a input in excel file or notepad file. How do I do it? I want to run few algorithms. can anyone...
[2 replies] Last: A text file containing over 466k English words... https://github.com/... (by closed account 1vRz3TCk)
2-3 tree Algorism bug(memory allocation)
 
i am trying to bulid 2-3 tree insertion function,it seem successfully in the beginning(from 1 to 14),but when i input 15,the output will beocme infinite and the...
[3 replies] Last: thx all of u, i solve it finally. (by toby1a05)
Help with Rational Class Lab
 
I am having trouble with the main part but the class part is fine and was looked over by my teacher. The 'ToDo's are from my teacher so I need to follow those. ...
[1 reply] : Liners 64, 68 and 72: The way you call a method is object.method(). F... (by dhayden)
November 2018 Pages: 1... 1011121314... 24
  Archived months: [oct2018] [dec2018]

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