Beginners (Page 17)

Vector and strings
 
How I can input words invector? #include <vector> #include <string> #include <iostream> u...
[4 replies] Last: Great, thank you! (by victorio)
Java Program to C++?
 
So I'm trying to change this Java program to C++ but have the same result, and compilers haven't bee...
[5 replies] Last: Hence the reason I'm in the beginner forums... (by TheSkyWookie)
Undefined error - but I added the header file OK
 
Hello C++ professionals, I am getting an error below. I have searched online for this solution, but ...
[2 replies] Last: That's a linker error. It has nothing to do with the header file. It... (by MikeyBoy)
error C2677: binary '%': no global operator found which takes type 'std::string' (or there is no acceptable conversion)
 
WinExec("netsh advfirewall firewall add rule name="%name%" enable=no action=block program="%path%...
[4 replies] Last: error C2664: 'UINT WinExec(LPCSTR,UINT)': cannot convert argument 1 f... (by malibor)
...
 
...
[4 replies] Last: There's a tag line somewhere that goes I have a problem. I know, I'll... (by salem c)
Fibonacci fcn using vector, wont print in main
 
I created a Fibonacci function but am having trouble printing out the result in main. #include ...
[2 replies] Last: Got it to work, thanks! (by monicam)
Help with changing values of 2 Dimensional Array in a Function
 
Basically the title. I'm trying to change the values of newArray in the Copy2DArray Function to be t...
[6 replies] Last: and, what I gave you is kinda C-ish. But so are arrays, so call it ev... (by jonnin)
Problem in linear probing
 
I have commented the portion where I am facing a problem. I have to tell whether the array is full o...
[5 replies] Last: What's going on at lines 18-20? Those lines just set j=0 or j=x. Did... (by dhayden)
Array full or not
 
Can anyone tell a simple way to check if an array is full or not?
[13 replies] Last: ^^^ It won't help because he is doing hashing, if its the same questio... (by jonnin)
by Bopaki
Asking for help with the two function sum() and print()
 
:\Dev-Cpp\Chapter1\Exercise14.cpp: In member function `void testClass::print() const': C:\Dev-C...
[3 replies] Last: > C:\Dev-Cpp\ I really hope this isn't the same directory structure th... (by salem c)
by AL88
Errors with includes and inheritance and pure virtual functions
 
Why am I geting "expected class name before { token" in player.h line 15 and Enemy.h line 9? Why is ...
[2 replies] Last: m_joysticks and m_joystickDeadZone are members of the class Input... (by MikeyBoy)
Blackjack game returning odd values
 
OK, I've spent hours trying to figure out what the issue is, but at this point I am just looking at ...
[6 replies] Last: You need to change your 'choice' man (by Rubickon)
Program for finding the largest product of a file
 
Hello, I'm a C++ student at a community college and I'm completely stumped on this program we're tas...
[3 replies] Last: @babyboi44, A number of the size that you cite for a product of 15 c... (by lastchance)
by iiAlex
Caesar Cipher Encryption
 
How would I get my for loop to go back to my starting value on the ASCII table? Since the user can u...
[2 replies] Last: @iiAlex This for loop.. (lines 36 to 42) for (int i = 0; i < n; i++... (by whitenite1)
Inheritance Class
 
I'm supposed to to make a program in which I must enter in various info about an employee and split ...
[5 replies] Last: Thank you for the help! I'll go on and finish what I need to now. (by Deadweight77)
Remove node by value (hash table using chaining)
 
I'm working on a school project, and I'm having some trouble identifying all of my potential deletio...
[2 replies] Last: I was able to fix the issue by scrapping the deletion pointer so that ... (by FeedMeTacos)
by jmb
program is adding too many characters to string
 
Hello all, I'm doing this program as a school assignment and I'm really stuck. It's supposed to ...
[7 replies] Last: Yes, that clears things up a lot for me. Thank you! (by jmb)
Can't find error in code for Binary search
 
I have been trying to find what's wrong in this code for binary search. Someone please help #incl...
[8 replies] Last: Got it, thanks a lot mate :) (by kingnoobcoder)
Allocate new array and copy
 
Hello, I want to create third array with size of first and second. But it doesn't work. #i...
[6 replies] Last: #include <iostream> int main() { int first { 4,15,19,32,44 }; ... (by Furry Guy)
Reaching all the nodes at specific height
 
I have been trying to make logic for this but it's not working. The user will give a value for heigh...
[3 replies] Last: I'd approach this like peeling an onion. Figure out what you need from... (by dhayden)
Pages: 1... 1516171819... 24
  Archived months: [oct2019]

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