Beginners - February 2017 (Page 6)

Plain simple C++ code returns error
 
Hi guys. This is my biggest struggle ever. C++ has been constantly defying me for the last couple of days. I have written a code that performs a depth-based sea...
[6 replies] Last: Thanks SamuelAdams, Enoizat, cire! It does work now, I have no idea wh... (by theodor1289)
im a Beginner
 
Write your question here. I'm trying to write s small program to get an input value of variable x and then calculate the expression "((x/3) + (x%)) * 3 = y" wh...
[3 replies] Last: HI. i got the same problem. Thanks :) (by Sected)
Issue with menus and loops
 
Hi, this is a project for my first C++ class. I've ran into a few issues though. I'm not completely finished yet, but I thought I would fix these issues before...
[2 replies] Last: Thanks so much for the reply. I will implement this into my code. (by dsteemke)
Help with errors in if else if statements.
 
Hi I'm still a beginner at programming and having to do a Biological Age calculator program with if else if statements. I've done the bulk of my work but need h...
[5 replies] Last: I hope this code could be of some inspiration: #include <iostream> #i... (by Enoizat)
by Iamyou
I need assistance correcting my program
 
Enter name and income.If income<1000 then no tax will be charged but If the income is >1000 but less than 2000 but less than 3000 the tax is 7% of the income.If...
[2 replies] Last: Hello Iamyou, In addition to what Hengr has said I see a problem with... (by Handy Andy)
ISO C++ forbids comparison between pointer and integer
 
I wrote this program that takes in a month, day and year and outputs a day of the week. I'm getting an error when I check if the year is a leap year AND checkin...
[3 replies] Last: Thanks for the help. getMonthValue() returns a value to be used when ... (by closed account jhb7Djzh)
Why are there no types as natural and real numbers?
 
It is for a long time now known how to implement arbitrary precision numbers. Why is there not some way that I can choose types for my variables as natural n...
[1 reply] : It's impossible to implement the true set of real numbers in a compute... (by helios)
[SDL] Game Dev. Question.
 
I'm quite familiar with the C++ syntax and the SDL2 library, but not so much with structure. I'm going to be making a simple platformer game and want to structu...
[1 reply] : Well, there's nothing inherently wrong in anything you've said. A desi... (by helios)
problem shows in visual studio
 
i write a simple C++ code and debug in visual studio. I got this error. Exception thrown at 0x53380B5C (ucrtbased.dll) in ConsoleApplication1.exe: 0xC0000005: A...
[15 replies] Last: what is the pointer ?char * means string?if double **, it will crash d... (by teopeishen)
Storing a list of words from a .txt file into a string array
 
I know my code is VERY sloppy, but my objective is to read in a .txt file of shuffled words, store it into a string array and alphabetically sort the string arr...
[10 replies] Last: Alright thanks! Also I've seem to find the source of my problems... Co... (by Sirivsly)
Help fixing program
 
How would I fix this program to make it run correctly? I know I would need to add || where the if statement is located but I'm confused because I get an error s...
[3 replies] Last: #include <iostream> #include <iomanip> #include <cmath> // <math.h> ... (by JLBorges)
Hex2Bin : Unable to convert multiple lines of hex
 
Hi All, I have written a program to read hex from a txt file and to convert to binary and proceed to generate the result to a new txt file. However, the progr...
[1 reply] : Every time you read a new line, you overwrite the last one. Either do ... (by TwilightSpectre)
Rectangle program
 
Cannot figure out my mistake. Can someone please point it out? My friend also helped but can't figure out as well. Thanks! #include <iostream> using namespace...
[4 replies] Last: @whitenite1 thank you! (by dullerthandull)
Sockets in C++
 
I am looking for a good tutorial or example etc of sockets in C++ and sending data all i've found is for C or Java etc i want to do an idea kind of like a Serve...
[no replies]
Trouble with static 2D-Array in function
 
Problem description: I'm currently working on a program that contains a 2D-Array in a function. Since I wish to update it inside another function I declared it ...
[8 replies] Last: Don't underestimate how much you helped me, not only with code! As fa... (by Misenna)
Need help and explications with my code
 
So I almost finished the code,but I've got problem with displaying the results.It just does not display anything even tough I introduce good values. The problem...
[2 replies] Last: I do not see much sense in doing that considering that there is only o... (by ufrnkiddo)
by Crim
_frstnullptr error with GLEW
 
So I have been working on a game through C++ with GLFW and GLEW and everything was going fine until I implemented GLEW then I get an error that I have never enc...
[1 reply] : So I just discovered if i take out std::cout << glGetString(GL_VERS... (by Crim)
How to limit output responses?
 
Hi all! I am hoping I can ask this in a general way and avoid a lot of details. I am tasked with writing a code that will output given responses based on cert...
[2 replies] Last: It looks plenty elegant to me, much appreciated. I knew there was a w... (by rshrecky)
advise
 
Just trying to see understand what was done incorrectly #include<iostream> using namespace std; class account { public: account(...
[2 replies] Last: HEY @THOMAS1965, THANK YOU HELPING. i got a few points taken off and ... (by Mediumgrit)
by pmi
run slow
 
hey guys; I am very new in c++ , I try to run this code with code block, but it is too slow and take long time, I really appreciate any sort of help or tips to ...
[1 reply] : Firstly, for future reference please use to format your code so th... (by Crim)
February 2017 Pages: 1... 45678... 37
  Archived months: [jan2017] [mar2017]

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