Beginners - October 2017 (Page 2)

Starting in the middle of a grid and tracking random movement
I am currently writing a program that will start in the middle of a grid that you determine the size...
[4 replies] Last: Thank yall for the assistance, I have got the code to work and I will ... (by atvman36)
by stb453
fstream file reading trouble
Running the program below will yelid an error saying the program file does not exist and in the line...
[1 reply] : It sounds like you are using an old compiler, or a recent one configur... (by Chervil)
Need help fixing the error thank you
// Lab 3 percentage.cpp // This program will determine the percentage // of answers a student got...
[3 replies] Last: Taking care of those kind of errors is really important and it can ste... (by benhart)
Programming Assignment
I need help finishing a program. #include <iostream> #include <string> using namespace ...
[3 replies] Last: You'll need to know how to create loops and use rand() to generate ra... (by MarbleHornets)
Need help with this code:
I have written this code to take 10 grades and average them, but the average is always like 75383571...
[6 replies] Last: Oh, thanks for the advice everyone. I didn't realize i was trying to g... (by Wilshire)
Conversion of String into Two Dimensional Array
Hi everyone! I'm pretty new to coding so there's still much for me to learn. Recently I've been wor...
[4 replies] Last: What I meant was for "P1" to be shown on my two-dimensional (a ) gam... (by Jaybob66)
by glof2
SFML doesn't work...
I've got an error with dlls... I tried 64bit (it's on my PC) version but it had errors, and i could...
[2 replies] Last: I've downloaded 32 bit version. (by glof2)
Segmentation fault using struct
Seg fault after "Enter full Name line. Indicated below. #include <iostream> #include <string>...
[3 replies] Last: Undefined behaviour is undefined. Sometimes it can mean your program ... (by MikeyBoy)
turning 1.234 to 1234
hi,i need to turn a float number to integer with deleting its point sign. like this: 1.234 turns to ...
[4 replies] Last: Thank you all for your answers. i used all of your advises to put them... (by Hospitr)
static vs constant in layman's language
Please tell me the difference between static and constant in easy language.
[5 replies] Last: thanks guys. (by suyashsing234)
Best way to manipulate texts using C++
How to manipulate texts using C++ like we do it using awk command in Unix
[5 replies] Last: There are many, more or less complicated ways to do it. Just try not t... (by benhart)
by ZhuZhu
Question: Get the difference for the largest and smallest number in a positive integer
Create a function to get the difference for the largest and smallest number in a positive number. Fo...
[3 replies] Last: #include <algorithm> unsigned int max_digit( unsigned int n ) { ... (by JLBorges)
by cash
how to delete index from array
I need to delete an index from the array, but mine is deleting a number rather than an array. ...
[12 replies] Last: when using arrays (not vectors) you can't actually delete an entry, yo... (by Jaybob66)
Using external files
im reading from an external file. the program is suppose to be on bank transactions. I cannot seem ...
[3 replies] Last: [quote=neilram27]I cannot seem to get passed one step. [quote=Handy A... (by Enoizat)
CALCULATOR in c++ with implementation of OOP
It's my school assignment i have to implement c++ in OOP Urgent need to submit this morning :( calc...
[3 replies] Last: int Calculator::selectOption; should be int Calculator::selectOptio... (by Enoizat)
my compiler doesnt like the way im doing std::vector and std::map for my sort is there any way to do...
[5 replies] Last: This looks a question for clairvoyants: how to guess what’s wrong in... (by Enoizat)
by vitcal
show data from txt file
Hello, i'm a really beginner in c++ code and i have a problem regarding the possibility to read a te...
[1 reply] : you will need to know the possible value ranges that the columns will ... (by Jaybob66)
help with printing user inputted arrays
I am writing a program where the user chooses a class size from one to twenty and user inputs the sc...
[1 reply] : cout << "Original Scores: " << score << endl; score is effectively ... (by Repeater)
by Galtor
Problem with complex numbers
Hi all, I don't know how to solve the problem when compiling next code: in function 'void resfexa...
[9 replies] Last: Ok, the code from @lastchance worked. Thanks a lot! (by Galtor)
Iteration to Recursion
I'm having trouble with iteration to recursion. I looked at many forums and articles (including the ...
[5 replies] Last: Line 3 creates an empty word. The word.size() is thus 0 and the loop n... (by keskiverto)
October 2017 Pages: 1234... 32
  Archived months: [sep2017] [nov2017]

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