Beginners (Page 76)

read from a txt file
I wrote this simple piece of code #include <iostream> #include <fstream> #include <string> ...
[1 reply] : ~ is interpreted by the shell, so don't use in a C/C++ program. file.... (by kbw)
I made a mistake in the following program
I recently started C++. I am making this program in which I have to input the value of "x" and the p...
[4 replies] Last: and give me the answer The answer has been worked out - that's why... (by kemort)
by qia360
HELP simple Hello World in codeblock won't run in Mac
Im a newbie and want to learn writing c/c++ programs.. i have a Mac OS X Yosemite 10.10.5 and just...
[3 replies] Last: thanks for the reply.. I have all tried your suggestions..and write li... (by qia360)
How do I find the number of characters in a word in a string?
I want to take a string, find a word that the user searches for and also find the number of characte...
[4 replies] Last: I got it working. Thanks! (by FuManchu)
Printing char[][] in a function
Hi, let's say we have declared char matrix ; int x, y; and then we do printout: for...
[3 replies] Last: You could use a c++11 array of arrays (or vector of vectors) & query t... (by Norm Gunderson)
Write your question here. Okay so I wrote the first code for leap years a few weeks ago, but I w...
[3 replies] Last: Line 25: Get rid of the else . It's not associated with an if. Lin... (by AbstractionAnon)
loop to find prime numbers between 1 - 239
I am working on a program in which I must print out the number of primes, including 1 and 239, from ...
[1 reply] : If you use for loops, you can practically translate your English direc... (by dhayden)
Call By Value/Call by Reference assignment help.
I'm working on a homework assignment for class and am absolutely stumped by what I need to do. I'm a...
[6 replies] Last: If your code for your summing function is the same as in the opening p... (by fg109)
Student GPA Inheritance Program Problem.
I am new to C++ programming and I have working with program for days now. This program using inheri...
[12 replies] Last: Thank You, for all of your assistance and patience. (by gneisler)
Array Elements Issue..
I am having some issues with my code and i cannot figure it out how to fix it since I am a beginner ...
[6 replies] Last: but still I only get 0 as an answer Of course that's what happens. ... (by kemort)
arrays ascending & descending
I dont know what i did wrong an error keeps popping up. #include <iostream> using namespace st...
[4 replies] Last: It keeps saying 'control reaches end of non-void function' You ha... (by cire)
String into a int loop
So Im trying to have the user be able to type the word done (and have the program stop), into a loop...
[5 replies] Last: [quote=b29hockey]i do not understand what you did there, or how to imp... (by LB)
Using a string to verify a part number
I'll start off by admitting this is a homework question- I am not asking anyone to do it for me, jus...
[14 replies] Last: True but I think we should be mindful of the potential for plagiarism (by kemort)
by Smoky
Multy thread Global Variable
Hello everyone. In my program i have main() which runs 2 different cpp files, of which one reads ...
[5 replies] Last: Within a thread of execution, accesses (reads and writes) to all vola... (by JLBorges)
type casting in unavoidable circumstances
Hello, I want to add a certain integer (say 10) at a certain index(say 5) of a vector. For this i...
[2 replies] Last: Okay. Thank you for your response. (by saherch)
Illegal Expression Error
Current Problem; I'm getting an "Illegal expression error" Prompt; 10. Corporate Sales Data Wri...
[1 reply] : CorpData is a type. You can't pass types to function in the argument l... (by Peter87)
error C2064: term does not evaluate to a function taking 2 arguments
Could anyone help me to spot the error ? I dun even know what is wrong with my coding. #include<...
[4 replies] Last: Thanks! The program could be compiled now ! (by jekaterina)
by st4evr
C++ Outputting the sum and product of a set of numbers
Beginner C++ student here, first programming class. I am trying to build a program which will accept...
[2 replies] Last: Thank you for that! That did it. In one version of this I had initiali... (by st4evr)
Seven Days coin toss Program
I need to write a program that recreates the Battle of Seven Days using Coin flips, but I cant seem ...
[11 replies] Last: @whitenite1 Thank you so much for all of your help! (by Akroncs)
ignore causes empty string
I'm trying to understand why exactly cin.ignore causes my string to be empty in this code: st...
[2 replies] Last: Ahh, I see! I didn't know it would "wait" for me to enter something to... (by anarelle)
Pages: 1... 7475767778... 104
  Archived months: [sep2015]

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