Beginners - June 2016 (Page 20)

by ebto
Help with offset function for a calendar program
 
Need help with calendar program! The problem I think is in the offset function. This calendar is supposed to display a calendar starting on January of 1753. If ...
[3 replies] Last: You should be getting compile warnings that you need to fix! From the... (by jlb)
by Bivs17
Blank output screen
 
I have to write a program (description in code comments). I've debugged it but the output screen is blank. Can anyone please point out what I might be doing w...
[6 replies] Last: The first two parameters are passed by reference? Of course, my ba... (by TheIdeasMan)
Buffered cout and flush confusion
 
I was reading up on std::flush and stumbled upon the following: "By default, std::cout is buffered, and the actual output is only printed once the buffer is fu...
[4 replies] Last: Thank you all for the detailed explanations - especially your demo Cub... (by DrZoidberg)
a function that returns vector
 
I'd like to write a function which returns a vector contains integer values #include <iostream> #include <vector> using namespace std; vector<int>* ...
[5 replies] Last: Thanks @jlb it works after getting rid of pointers . #include <cstri... (by neuronphysics)
by olaf94
ofstream - question
 
Hey guys, I#m currently at a roblem, that I can' overcome myself. I want to write some data into .txt Files of the corresponding User. Like User1.txt, User...
[1 reply] : FOR CREATING FILES IN DIFFERENT FOLDERS In order to achieve this, you'... (by taha ilyas)
c++ windows.h library and handles
 
for the past few hours i have been searching for at least the briefest explanation on handles and commands within windows.h and cant seem to find a single one a...
[5 replies] Last: thanks man you helped me a lot ! i'm spending about 5-6 hours a day le... (by globaltourist)
[please help] converting text to ascii
 
I have to write console program where it changes any text to ASCII. The text has to be written to array and then converted. For example: input: Nc output: 7...
[3 replies] Last: Try it out with different sizes. Try 256. If you look up 'arrays' in t... (by closed account 48T7M4Gy)
by crepe6
why does this program terminate?
 
i'm not sure why this function terminates after selecting an option? example 'e' to encipher. I want t be able to enter text. It works without the if statement...
[8 replies] Last: yeah I think that worked. thanks. (by crepe6)
code to solve for variables
 
Hey, So I was thinking in math class about an easier way to to solve equations like 4=2/9x etc. I already got the basics on how to work C++ out I just dont k...
[2 replies] Last: If you want to work with any arithmetic expression then make them as s... (by Vabi)
by ebto
Help with an array syntax
 
So my question here is that this program is meant to ask for ten grades. Once you input those it should get the average of those and it should display them on t...
[1 reply] : basically your averaageGrades function has a minor flawed logic its... (by shadder)
Problems with integers
 
This is going to sound stupid since the answer is probably in front of my eyes, but I'm currently making a text based game and my compiler keeps giving me to me...
[2 replies] Last: #include <iostream> #include <string> int main() { int menu_choi... (by JLBorges)
by ryhne
digit after decimal point!
 
I need to use digits after decimal point for my next calculations but I don't know how! this is what i came up with: (this program gets user input(distance) a...
[6 replies] Last: thank you everyone! it works now :) abstand is actually the same wor... (by ryhne)
Greatest common factor using euclid's algorithm
 
My task is to write a profram that finds the gcf of 2 integers. Im supposed to use a Euclidian algorithm and it really confuses me. Im supposed to write the gcf...
[4 replies] Last: Here is a an amazingly clear video that explains Euclids algorithm: ht... (by Arslan7041)
by wolfv
Initializer list question.
 
I am trying to define a Composite class. A component needs a constructor parameter. How to initialize the component? Below is my attempt, but it gets a compile...
[2 replies] Last: Thanks TheIdeasMan! That worked. (by wolfv)
Int from file to file
 
Why this is not working? //... void variables() { //... int f1, f2; string a; //... } //... int main(); { variables; cin a; if (a==1...
[3 replies] Last: to make a global variable, declare it outside of any function(remove v... (by jdm1891)
by fntASY
How do I name a basic .exe console?
 
Hello everyone. I am VERY new to C++. I want to make 2d games, but I want to learn all the basics first. (I only want to learn to make games and stuff :P) ...
[3 replies] Last: Just got it! For anyone who also has this problem: You have to includ... (by fntASY)
by Axrol
Can someone help me with random chooser project
 
I am trying to do a simple project. The program should first randomly choose a car for you. e.g: Lambo, Toyota, Mazda. Then it should randomly choose a countr...
[9 replies] Last: To give you an idea (C++ 11 or later): #include <iostream> #include ... (by chicofeo)
Please help c++ beginner
 
Can someone please briefly explain why the output is 55 #include <iostream> using namespace std; int main() { int sum = 0, val = 1; // keep execut...
[2 replies] Last: Hi, You can figure out this yourself :+) Just put a cout that print... (by TheIdeasMan)
by h4ever
how to get value of pixel from image?
 
From one tutorial I have taken this code. I added the second block of loops and I have error on line with alpha * (int) p + beta . I cannot find out how to assi...
[no replies]
compiler does not recognize ofstream
 
I'm currently working on a program to create special lists of people which should be written into files. I'm still quite at the beginning because i was not abl...
[5 replies] Last: Thank you very much, now it's working. You really saved my day. (by Kavanga)
June 2016 Pages: 1... 1819202122... 25
  Archived months: [may2016] [jul2016]

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