Beginners - April 2021 (Page 6)

How to pass toupper to a string in a 2D array
 
Hello, I'm working on an assignment and I'm having trouble with it. The instructions are to just use...
[5 replies] Last: Thank you everybody! It's always nice seeing the amount of different w... (by av16352)
Bool function
 
Need help with a bool function in which returns1 (true) if the class instance B is divisible by a ba...
[5 replies] Last: IF that is what you need, then consider: #include <string> #include... (by seeplus)
Exception handling and Debug Assertion Failed Window
 
Greetings. I am learning about exception handling. The following code will give an out-of-range er...
[3 replies] Last: @OP, did you run the code in DEBUG mode in Visual Studio? In DEBUG mod... (by thmm)
by alexas
AxisAngle rotation reverse?
 
I have 3d objects which are translated at certain z from each other and rotated. The information of ...
[7 replies] Last: it's the same, when you add 180 to the angle, you get the opposite. ... (by keskiverto)
Array Error (1,2)
 
So I'm writing code that will prompt a user for the size they desire for an array, then I have to cr...
[22 replies] Last: If you really want to use new/delete (you shouldn't), then: #includ... (by seeplus)
Create Alphabet from Array 2 dimensions
 
#include <iostream> using namespace std; main() { int arr = {{0,1,1,1,1,1,1,0},{0,1,0,0,0,0...
[7 replies] Last: #include <iostream> using namespace std; const int M_SIZE {8}; int... (by againtry)
Using Environmental Variables in Windows 10
 
This is a set up question. I have a beginner's book which uses the MinGW compiler. After installing...
[5 replies] Last: Thank you everyone. I'll read up on batch files. (by Bill1266)
string error
 
hey! I am really new to programming, so please dont kill me if there are any huge mistakes hahahahah...
[1 reply] : goto is bad, very bad. You have no way to programmatically terminat... (by deleted account xyzzy)
Unable to find the largest element in array using Dynamic Memory Allocation
 
So I've gone over my code and tried looking at archives but I'm not sure where I'm going wrong. When...
[3 replies] Last: my code would not work setting it to nullptr for multiple reasons. f... (by jonnin)
!= function linked list
 
Hi, First time using both pointers and iterators. I am stuck on overloading the != operator for my ...
[1 reply] : Line 26: How do you tell that two iterators are not equal? (by Ganado)
by batzot
i want to enter q to quit the and y to play the game again but im not sure what code to use. any suggestion??
 
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { co...
[16 replies] Last: so thats the test cases? To answer your question, one way of looking... (by againtry)
Please help me with file I/O
 
Hello there, I am working on an assignment and the instruction is below. This fifth assignment ...
[6 replies] Last: Perhaps: #include <iostream> #include <fstream> #include <string> #... (by seeplus)
file i/o loop
 
Hi! We're pretty far in this class now and we just did functions. For this assignment, we had to con...
[2 replies] Last: Thank you. My brain is not working right now lol! so simple! (by lelouch420)
fstream
 
If fstream is for reading, writing, or both, then what is the purpose of using either ofstream or if...
[3 replies] Last: why I would use ofstream or ifstream instead of fstream. To express i... (by Ganado)
Help with problem
 
Please note that this is not a homework site. We won't do your homework for you. The purpose of home...
[no replies]
SFML CANNOT FIND -LSFMLxxxx
 
Hi guys! I'm trying to use SFML to make a program. However I couldn't set up the SFML successfully...
[1 reply] : Assuming you're following this to some degree: https://www.sfml-dev.or... (by Ganado)
How to use 2D Arrays with different types?
 
I have this 2D array code that I don't really understand but can somebody tell me how to use both di...
[9 replies] Last: are you still struggling with arrays to functions? here... #includ... (by jonnin)
by y19177
A question on sizeof
 
Trying to practice recursive function. Not sure why the expression sizeof(p) / sizeof(p ) cannot be ...
[8 replies] Last: #include <iostream> int sumArray( int *p, int n ); int main() { ... (by lastchance)
cin.get() not calling anything + how to find info?
 
I can't understand this program what cin.get() is supposed to accomplish here? It is not calling any...
[7 replies] Last: [quote=empleat] I don't have imagination, but I Am very creative If y... (by JRManx)
adding letters to a string
 
I am writing a program that can add letters to a vector then display all elements of the vector. How...
[2 replies] Last: You mention letters (which are type char) but use type std::string?? ... (by seeplus)
April 2021 Pages: 1... 45678... 12
  Archived months: [mar2021] [may2021]

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