Beginners (Page 8)

Getting the Number of characters from a text file
 
ok I have a text file with thousands of words, A new word on every line, How do I count every charac...
[1 reply] : Short of using a pencil and paper as the answer I imagine you could wr... (by kemort)
by Athul
How to repeat an if statement
 
Hey , I stated coding 4 days ago and i thought i would write a small code . I want to repeat the if...
[4 replies] Last: Thanks guys i was able to write my program as i wished thanks to you :... (by Athul)
by Albos
Switch and char problems
 
Hello guys, how are you doing? Ok, so I have a problem with this code #include "stdafx.h" #in...
[11 replies] Last: Good to hear :) Well in terms of the OP arriving at a solution - b... (by TheIdeasMan)
by kugen
Using switch statement to create a program that total up remainder when divide by 8
 
Currently my code is not working, Im trying to count the total of each remainder from the 20 numbers...
[11 replies] Last: Thanks for the advise. ill keep that in mind. And i will try to improv... (by kugen)
Hang Man Game
 
Hi! Could someone help me find the logic error in my functions? I don't think its the boolean, but I...
[1 reply] : This will not work. if (secretWord == guessTemplate ) You need to u... (by Thomas1965)
by baluu
double use of arrow pointers
 
Hi all, I am trying to understand LAMMPS Molecular Dynamics package, in it, they use double use of ...
[1 reply] : Any pointer is accessed via the -> operator. The struct/class LAMMPS... (by coder777)
Random Number Generation
 
Write your question here. #include <iostream> #include <iomanip> #include <cstdlib> #includ...
[2 replies] Last: sorry. I am supposed to create a program that will randomly generate 5... (by bkoertje)
by S879
Please help
 
What will be a c program to find the sum of the following series (x/1!)+(x^2/2!)+(x^3/3!)+...nt... t...
[1 reply] : Hi, Firstly, can you explain what the little math symbol "!" does in t... (by closed account 5a8Ym39o6)
Why is it outputing a weird number?
 
See below for the code. My question/problem is why is it outputting weird numbers. For example: ...
[5 replies] Last: Good to hear :) (by closed account 5a8Ym39o6)
Using Switch to total the cost
 
Hey guys, I need a quick lesson and help on why my program isn't working as I want it to. I am pract...
[2 replies] Last: Albos, Thanks, that did the trick! :) (by MisterTams)
Pass by Reference from pass by value code
 
How would I turn this simple void code with one parameter into a pass by reference code (rather than...
[9 replies] Last: Understanding passing by reference better now? And you are welcome. :... (by FurryGuy)
Pancake Glutton almost finished.
 
Hello, I have almost completed the excercise Pancake Glutton, but i can't manage to figure out how t...
[8 replies] Last: > No, that is just the nature of the Bubble sort's algorithm. No, the... (by Arslan7041)
IF and ELSE statements within a WHILE statement help?
 
Okay so I i'm just messing around with some code trying to learn on my own. Anyways, I'm trying t...
[7 replies] Last: Good to hear :) (by closed account 5a8Ym39o6)
tolower not working
 
I am having a user input his selection from a menu. In order to prevent confusion when the user inpu...
[2 replies] Last: Does that help you? :) (by closed account 5a8Ym39o6)
srand
 
Hi everyone , so I'm new to C++ and i wrote a little code , I defined a function witch randomize som...
[4 replies] Last: http://www.cplusplus.com/faq/beginners/random-numbers/ (by Duoas)
2 Player Hangman code
 
Need help for Hangman Game 2player mode codes. Where the 1st player needs to type the word and the 2...
[4 replies] Last: http://www.cplusplus.com/forum/beginner/194536/ (by kemort)
Encryption Problem
 
I'm working on a machine problem that allows me to encrypt and decrypt messages using an array as th...
[no replies]
Static Cast on Initialization
 
I'm brand new to C++(my only real programming experience is PL/SQL) and have been working through an...
[2 replies] Last: Thank you Thomas1965, this is exactly what I was looking for. I'm not ... (by docbrown)
by Kbott
Can arrays return vectors?
 
What does it mean to have function that takes as parameters an array of int and the size of the arra...
[1 reply] : The prototype of a function could look like this. std::vector<int> g... (by Thomas1965)
Telephone no.
 
Write a program that inputs a telephone number as a string in format 00920519085 and uses function ...
[11 replies] Last: That's it. :) (by Thomas1965)
Pages: 1... 678910... 51
  Archived months: [may2016]

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