Beginners - August 2012 (Page 35)

by Chubbs
Output syntax
 
Hello everyone, I have a code outputs this: "Enter a search word: Searching for the word ... [Love sought is good, but given unsought is better.] Found...
[15 replies] Last: then just System("CLS"); before makeing it display it in backets.... (by IWishIKnew)
Printing from structures
 
Hello, My class is over but I want to figure out how to print from a structure. In my program the first 28 lines were the example frrom the instructor on struct...
[2 replies] Last: Thank you very much. I got it fixed and it works great. I replaced cou... (by thumperslpss)
trouble with a for loop
 
I'm trying to build a program that will take a dollar amount, a percentage, and a number of years. In a for loop, the program is supposed to multiply the dollar...
[2 replies] Last: cool thanks! (by Hydrasin)
by gerfy1
Don't understand pointers and references
 
I do not understand references and pointers well. I don't understand the difference between each other and why you use them.
[1 reply] : This question is asked over and over.First, please read this to learn ... (by Moschops)
Memory and Optimization [tutorial? pls?]
 
Does anyone have any good tutorials for C++ on optimization and or memory? Those are my interests so I want to learn more about the two topics. :) What could I...
[12 replies] Last: Hi there, I hate to say it, but google really has a lot of links turn... (by closed account o3hC5Di1)
How to print the multiples of 2? (1,2)
 
I remember this part but I can't just figure it out.. My current code: /* Make a program that keeps printing the multiples of the integer 2. */ #include <i...
[20 replies] Last: I finally got my program to work haha. I see two (tiny) mistakes in y... (by Bufflez)
by beakie
% (mod) for floats
 
Need some code to perform a mod style algorithm on floats or doubles. So... 123.2 % 3 = 0.2 Any ideas?
[4 replies] Last: oh yeah.. duh. I always forget fmod exists because I confuse it for m... (by Disch)
The same result
 
Hello Everybody, Im new here and im learning c++ from the e-book here. while im reading the pointers chapter i had a problem that i get the same result from ...
[5 replies] Last: A pointer to function, from C++ point of view, is a functor (just like... (by Cubbi)
by agatte
simple question [istream]
 
Hi, I am doing first steps in c++. I have very basic question. I want to read data from txt file. I have to use istream. I received an error: I am t...
[2 replies] Last: Thanks very much for help ;) (by agatte)
by agatte
question ? []
 
Hi all Useres ;) I am beginner in c++. I received an error. vtkXMLFiberDataSetReader.cxx 15> vtkXMLFiberDataSetWriter.cxx 15> vtkDataManagerWriter....
[3 replies] Last: Which libraries did you link it with? Looks like you miss some of them... (by KRAkatau)
inputting strings into a character array
 
int main() { char str ="hello world"; cout<<str<<endl;//outputs "hello world" cin>>str;// input "hello motto" cout<<str<<endl; // only outputs "hello" ...
[5 replies] Last: Ah I didn't know that. (by Zephilinox)
Getting the boost framework
 
I need the boost framework/library for the c++ xcode program i am making. Where can i get the framework file so i can use boost/regex in my program?
[1 reply] : a. If you haven't done so already, install MacPorts http://guide.macpo... (by JLBorges)
by Siren
Display return value of a sub function
 
What this code does is user enters a number and the console displays "the number entered is (what is entered)". When the code is executed, the sub function i...
[4 replies] Last: I see. Thanks for clearing the confusion :) (by Siren)
2D Array problem
 
I'm trying to write a program challenge out of this text I bought. The problem is to write a 2d Array to a file. I'm having trouble getting the file to write co...
[1 reply] : Ive commented the minor changes I've made. I didn't any crazy characte... (by closed account 4izT0pDG)
utilizing cin.get()
 
hi Everybody, Im totally new in working with c++, and i got stuck I think in some stupidity I cant find out what it is. I dont know what is going on wrong with ...
[3 replies] Last: you would use this while(!infile.eof()) No, you shouldn't. Loop on ... (by ne555)
by ekard8
why does this keep closing
 
#include <iostream> using namespace std; int main() { int lol; cout << "Hello, and welcome to Joe's awesome adventure where the goal is to nothing but...
[4 replies] Last: I understand your issue after reading this. First, you're not understa... (by Volatile Pulse)
by mp3nut
Using a loop to print a decimal array
 
Ok, I've rewritten this program a million different ways and I dont seem to be getting anywhere. I believe this is the proper format for printing an array (goin...
[6 replies] Last: Great! Can't believe I overlooked it I've been going over this code so... (by mp3nut)
Program has stopped working
 
My program keeps crashing. Every time I run the program, it'll print the original sales array, process the sales transaction and add the totals into the sales a...
[7 replies] Last: Maybe you didn't have any error indexs in the last one. Or simply you ... (by Volatile Pulse)
by mp3nut
Using a function to find the mean
 
I am working on a program in my first c++ class. I have been doing ok so far I guess, but I cant figure out how to get this program to work. I keep getting the...
[2 replies] Last: Thank you so much! (by mp3nut)
Initialization of non-aggregate type with an initializer list
 
class monthData { int days; char name ; }; const monthData months = { { 0, " " }, { 31, "January" }, { 28, "February" }, { 31, "Marc...
[6 replies] Last: It is important to know the definition of an entity you are dealing wi... (by vlad from moscow)
August 2012 Pages: 1... 3334353637... 45
  Archived months: [jul2012] [sep2012]

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