Beginners (Page 2)

How to declare array with no constant variable?
 
How to declare an array with no constant variable? like: cin << a; int Mass ; I want to write a pro...
[5 replies] Last: if you cannot use anything other than arrays, this problem is annoying... (by jonnin)
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)
[HELP] Same program that works in Windows (C::B) doesn't work on Linux (Debian 10, g++)
 
I have this program that works perfectly as it should in Windows (using Code::Blocks). Here is the c...
[5 replies] Last: Thank you. That was the problem. I totally forgot about the different ... (by TheToaster)
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)
Which operation has minimum time complexity!
 
Hye, everyone! Does anyone know which operation has minimum complexity and why? Chaining or Linear ...
[2 replies] Last: the hash function used, data, table size vs data size, implementations... (by jonnin)
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)
Programming Assignment
 
[ You by now have lots of practice with built-in types such as float, int, etc. You also have pr...
[2 replies] Last: Hello bethmayweather, I am starting to wonder if you post code just t... (by Handy Andy)
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)
Pages: 1234... 26
  Archived months: [sep2019]

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