Beginners - June 2018 (Page 16)

Flushing the previous input and prompting user to enter again in same string array.
 
So I got homework to make a program that does the following : 1. Calculate the length of the string 2.Reverse the string 3.Replace character (user input charact...
Jun 6, 2018 at 5:02pm
[2 replies] Last: Thanks! Was an easy tweak ! much appreciated. (by akshatmahajan3112)
urgent program to to calculating
 
Write your question here. Hi Gays I want help to write my program The formula for the surface area of a lune is S = 2 * r2 * θ r is the radius...
Jun 6, 2018 at 3:46pm
[1 reply] : People won't do your homework for you. Show what you've tried and what... (by H00G0)
i need a bit of help in one of my codes.
 
Hey i am new here and i am new to coding. My instructor gave me a question which i am close to cracking it i have a problem. here is the question:Write a func...
Jun 6, 2018 at 3:18pm
[5 replies] Last: thanks you all are right here thanks for your support http://www.win... (by quickbook)
I need help decrypting a game save.
 
I'm trying to decrypt the files in a 360 save, I have no Idea what I'm doing and understand none of this. The only think I know is that the game uses a XOR key...
Jun 6, 2018 at 3:05pm
[1 reply] : if you have the keys it should be simple. but you need the datatypes ... (by jonnin)
Several questions
 
Hi all.I am a beginner in C++ and have following question regarding polymorphism.I want that getPolygon will act as Rectangle.But within the method getPolygon w...
Jun 6, 2018 at 11:23am
[3 replies] Last: You are returning a pointer to a local variable that doesn't exists ou... (by coder777)
Warning: Variable ' ' is uninitialized when used here
 
So on the bright side I have my code working for what I was trying to accomplish. However I am getting these warnings for line 16 for the variable stretch, bre...
Jun 6, 2018 at 10:35am
[2 replies] Last: You have: breakage = length * 16 / 100; maxLength = breakage ... (by keskiverto)
by nearc
fstream
 
Guys how to create a .txt file which would have 10 plane names in txt file and to each plane name assign categories. When a program would run it would let sele...
Jun 6, 2018 at 9:59am
[1 reply] : How to write to a file? Just like you write to std::cout . See http:/... (by keskiverto)
fracSeries
 
im suppose to make a recursive function that accepts an integer as a parameter and returns the value of 1/2 + 1/3 + 1/4 + ... + 1/n For example, in the fun...
Jun 6, 2018 at 12:43am
[3 replies] Last: thanks guys, that did the trick (by Ryoka117)
Iterating over GetASyncKeystate function once
 
Hello, I've been trying to find a way to make my program iterate only once over a function when I press a key instead of multiple times, which it is doing no...
Jun 5, 2018 at 11:28pm
[2 replies] Last: If I use the function I psuedo coded above it will register 1 keypress... (by Trintolueen)
Help with Arrays
 
Hello everyone this is my first post and I'm kinda new at this so please forgive me if I have a hard time with understanding the language we use for some of the...
Jun 5, 2018 at 9:21pm
[1 reply] : You have an array that has room for 1000 integers. The user enters N ... (by keskiverto)
by nearc
Need Help in Writing An Airport simulation
 
I have team assignment Write program: Airport (Airplane, Airport, Passenger): airplanes, passenger transport, purchase of aircraft, airport development, etc....
Jun 5, 2018 at 8:14pm
[1 reply] : Your function sig could look like this: void print_plane(const Airpla... (by Thomas1965)
pointers to an array of pointers crash?
 
Hi guys can anybody spot why this code seems to not print any of my cout statements the program will successfully terminate without printing anything to ...
Jun 5, 2018 at 7:38pm
[9 replies] Last: Maybe you're mixed up between "a" and 'a'. "a" is a char-pointer, po... (by adam2016)
What did I do wrong?
 
Really new at this. I tried to write a program just to pass a variable into a class and cout it from main. When I finished the cout command wasn't rebonised. I...
Jun 5, 2018 at 5:16pm
[10 replies] Last: stdafx is a visual studio / microsoft thing and it behaves oddly. It ... (by jonnin)
Deleting every second element from List
 
Hello! I'm trying to delete every second element from a linked list. My current code, kinda does the job but it crashes at the end. It shows the 5's only and t...
Jun 5, 2018 at 5:15pm
[4 replies] Last: Could also just copy desired elements over to a second container. One ... (by icy1)
Write a simple program...
 
Write a simple program (a “cout” is sufficient) that includes a password requiring function in order to run. While typing the password-do not print any char...
Jun 5, 2018 at 5:12pm
[5 replies] Last: Actually it isnt simple. It is tricky to not show what is typed on th... (by jonnin)
convert array to vector
 
Converting to a vector works in main but when I call changeAR, it does not (dataVector size == 0, should be 3). What am I doing wrong? Thanks! #include <iostr...
Jun 5, 2018 at 3:38pm
[5 replies] Last: Thanks guys, that would have taken me a long time figure out! Good ca... (by RslWlsn3)
why is my global variable not updating?
 
I apologize for this long code. The code is called the "Knight's Tour" in which a knight must traverse through each square of a chessboard. A global variable...
Jun 5, 2018 at 11:52am
[2 replies] Last: thank you very much sir. (by impoppy)
Array
 
Hello everyone, i just begun practice with arrays and i want to create a dynamic 2d array but my row and column size are limited by the initialized values for t...
Jun 5, 2018 at 8:57am
[14 replies] Last: Thanks guys! Much appreciated. (by Simmy2512)
by cwn
class array exception
 
Hey! my english is not the best, sorry for mistakes. I'm new to c++ and programming with classes. I have created a class template "CArray" to work with d...
Jun 4, 2018 at 10:33pm
[4 replies] Last: Since an index of size is also out-of-bounds, it should be if (index... (by tpb)
remainder(x,y) returns a negetive number
 
hello everyone im using the remainder() function to calculate the mode of 2 positive double numbers but sometimes the result is negetive! could you please tel...
Jun 4, 2018 at 8:02pm
[3 replies] Last: fmod() is % for doubles, sort of. You REALLY need to review what that... (by jonnin)
June 2018 Pages: 1... 141516171819
  Archived months: [may2018] [jul2018]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.