Beginners (Page 25)

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 gett...
[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 a...
[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...
[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...
[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...
[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, passenge...
[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 progr...
[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...
[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 th...
[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 o...
[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, sh...
[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 trave...
[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...
[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 class...
[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...
[3 replies] Last: fmod() is % for doubles, sort of. You REALLY need to review what that... (by jonnin)
istream input loop
 
Hello. If you enter the wrong data in the code, for example, two words through a space, then the inp...
[4 replies] Last: Thanks again. All the best to you. (by moskitos80)
overloading << why as a friend?
 
Hi guys, have been meaning to ask this question for a long time,I have done some research and see...
[2 replies] Last: but still can't seem to figure out why we must make operator<< a frie... (by jlb)
illegal else without matching if
 
Hi friends How to solve illegal else without matching if #include <iostream> #include <conio.h> ...
[1 reply] : else if (ch == 'g'); There should not be a semi-colon at the end of ... (by Repeater)
by hoogo
How do you reference class object inside said class constructor?
 
Hello! Okay assume you have a class: class Foo { private: int a; int b; p...
[7 replies] Last: @keskiverto My bad I was going to post the whole code but I had to go... (by hoogo)
by Dvx70
Read & write in a file at the same time
 
Write your question here. Hello to everibody...7 My problem is to read and write, at the same time...
[4 replies] Last: a stream and a file are not the same thing. your hard disk is incapab... (by jonnin)
Pages: 1... 232425262728
  Archived months: [may2018]

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