Beginners - August 2016 (Page 21)

by MAhmed
Help me understand
 
can someone help me understand line number 12-13 how it is working #include<stdio.h> #include<conio.h> int main() { clrscr(); int a, b, c = 0; pri...
[1 reply] : Another way of writing those two lines is as follows. if (c == 0) //... (by Peter87)
Reversing a string
 
A little help with my program please. I'm trying to print out an inputted string in reverse ----> John Cena = aneC nhoJ void printReverse (string str) ...
[12 replies] Last: @Thomas1965, I was going to mention reversed iterators. your code is ... (by closed account E0p9LyTq)
by MAhmed
Problem in Code
 
i'm making a code in which user will give input and it will return multiplication for example if user give input "6" it should return "720" because 6*5*4*3*2*1...
[4 replies] Last: i've never learnt this can you explain? { if(!c) c = b; else c ... (by MAhmed)
File is not being read and stored
 
Hello, ive been trying to figure out what im doing wrong here. #include<iostream> #include<iomanip> #include<fstream> using namespace std; v...
[5 replies] Last: Actually it probably should look more like: for(auto& itr : rain... (by jlb)
by iluah
Example sms service in studybook is not compiling
 
Hi all, I just joined this website for a problem I can't seem to figure out. I am trying to compile a sms service that is used as an example in my studybook...
[2 replies] Last: Thanks for the quick reply coder777, good to know it was the compiler! (by iluah)
Templated Doubly Linked List Problem
 
Okay, so I've been working on an assignment for a few days, it is a doubly list and I seem to be getting an infinite loop in my program. I believe the cause to ...
[4 replies] Last: Your copy constructor doesn't work. It needs to set the prev pointers.... (by dhayden)
pancake glutton problem
 
The problem I am facing is that I cant get the number of pancakes eaten to be arranged with respective person. I only sort the pancakes. In other words, I have ...
[18 replies] Last: This particular pancake problem has a number of traditional permutatio... (by closed account 48T7M4Gy)
by Vena
Metropolis algorithm for 2D Ising model
 
Hi at the moment i am writing my Bachelor theses about Montecarlo simulation for the 2D Ising Model with the Metropolis algorithm. But my code does´t work....
[2 replies] Last: [quote=TheIdeasMan]Just a note for the future :+) There also shouldn'... (by Naughty Albatross)
by MAhmed
Prime Numbers
 
I'm making an prime number code which should print all the prime numbers for example: 1 3 5 7 11 .... all prime numbers from 1 to 100 but there are alot ...
[12 replies] Last: (Does that help?) :) (by Naughty Albatross)
Working out wastage for game
 
Hi i'm working on a game for my course and i'm stuck on trying to work out the wastage i know i need to work out the total lemons i have used and then minus the...
[3 replies] Last: Another way to get whole number of lemons to compare and therefore get... (by closed account 48T7M4Gy)
calling an array from another program
 
hi, I want to put "hello world" in memory and I want to print it out in another console. how can I do this? in one console i want to put a$="hello w...
[4 replies] Last: I see only two ways. Interprocess communication, which by looking at ... (by vasilenko93)
Infinite Loop in Doubly Linked List
 
Like the title says I'm experiencing an infinite loop in my doubly linked list. Using gdb I've found the infinite loop to be in my size() function and walking t...
[2 replies] Last: Hi, I am probably out of my depth here, but who knows these ideas mig... (by TheIdeasMan)
Linked list: Head not displaying?
 
First member is always PRESIDENT. Last is always SECRETARY. Rest are MEMBERS. Club cannot have more than 3 members. INPUT (for 3 members): 1 a 1 2 a 2 3 a 3 O...
[1 reply] : Aren't they the same conditions, though? With regards to the loop r... (by cire)
by Cannor
Explain process
 
Can someone do me the favor of explaining how this output is 4? Thanks in advance. Struggling with the basics ain't fun! #include "stdafx.h" #include <io...
[6 replies] Last: A more sophisticated way is to use an actual debugger. Hopefully there... (by TheIdeasMan)
Help. Strings already betrayed me.
 
Hello, I'm trying to solve the excersice "Strings are your friends, untill they betray you" from http://www.cplusplus.com/forum/articles/12974/ I know that th...
[5 replies] Last: Thank you very much, i have to practice more to fully understand how p... (by maticode20)
A little help with my code?
 
Hello guys, I'm new to C++, the following code is a homework assignment and the compiler that I'm using is codeblocks' GNU compiler. When i try to run the code ...
[2 replies] Last: Thanks for your assistance. But the problem has been solved. haha. The... (by alexrider0820)
How to create objects from a derived class
 
I'v just stated working on derived classes first i created the person in my program and then the derived class , " student " and i now i don't know how to cre...
[2 replies] Last: ok sure thank you (by pouyasobhani)
by Cannor
Beginner's issues in Trivia
 
So I am quite new to C++. It does take time before things stick to my brain and it is not easy to grasp its logic. I have an issue understanding how code works...
[2 replies] Last: Thanks!! This will be useful in fully understanding it, I see a lot c... (by Cannor)
real basic class function help!!
 
hi, i just start to use a class function in c++ in visual basic and i'm stuck with this code #include <iostream> using namespace std; class fraction { publi...
[3 replies] Last: // i want to set main as fixed can not be changed What does that mea... (by AbstractionAnon)
While problem
 
I have written the program that ccontinues to ask the user to enter any number other than 5 until the user enters the number 5. However, I have a question where...
[12 replies] Last: :) (by closed account 48T7M4Gy)
August 2016 Pages: 1... 19202122
  Archived months: [jul2016] [sep2016]

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