Beginners - May 2015 (Page 26)

Need help please
 
Write your question here. can someone plz help me do the print case 4 and save case 5, i cant still do that part.. #include <iostream> #include <fstream> ...
[no replies]
Help please this is buggin me!! I keep getting this error!, [Error] expected ';' before 'cout'
 
hey so I am new to c++ and I am using dev-c++ version 5.11 and I keep getting this message! Help me please, expected ';' before 'cout' #include <iostream> ...
[1 reply] : You have quotations around your parenthesis, such as in: while(true)... (by Ispil)
Default values
 
Hi, I was wondering how do I go about displaying default values, in the case of the code shown below. #include <iostream> struct Candybar { char name ; ...
[2 replies] Last: Thanks! I think I misunderstood the question. Yea, you're right! :) (by Drakonaut)
Need help asap plz
 
Write your question here. I have a code that need help completing the forth and fifth of it.. Also I have issue with the the second and third case, once i add ...
[5 replies] Last: okay I just looked over the part I am missing in ofstream but wonderi... (by MinBar96)
by how209
finding the median from a list of numbers in a file
 
I have the hardest time figuring out how to even begin properly, im not a computer science person but my math major requires i take a intro to computer science ...
[6 replies] Last: thats what a computer science major was helping me with, problem is s... (by fg109)
undefined reference
 
I'm getting the error undefined reference to 'pointerswap(int*, int*)' How do I fix this? Thank you! #include <iostream> using namespace std; voi...
[2 replies] Last: Thanks! (by fermentingblob)
Creating my own vector class using a statically allocated array
 
Hi, For my school assignment I have been instructed to write code that takes a text file and counts either the total number of words or the number of unique wor...
[no replies]
Passing vector to friend class
 
Hello everyone. I am new in C++ and start to work in a code. Basically I create a vector from Main that is populated in class A, but when I try to read that ve...
[6 replies] Last: Thank you AbstractionAnon, after thinking what you were saying, it wor... (by TheCatintheHat)
Need help with input from a file
 
Write your question here. // Flowers.cpp - This program reads names of flowers and whether they are grown in shade or sun from an input // file and print...
[no replies]
by ynotmi
I'm still trying to enter LINES and PRINT to a Printer
 
I need so help! I'm a Beginner and I have ONE project! Grade USA Notes I need to separate some of this data! It's all jumbled up! This code is no wher...
[2 replies] Last: problem 3 IS it possible to make it print to a printer! I have search... (by admkrk)
by kunz
calling validation function
 
void moive_valid(int movie_type) { while (movie_type<1 || movie_type>4) { cout<<"invalid option please enter integers between 1-4"<<endl; cin>...
[2 replies] Last: thanks got it correct now (by kunz)
by eyadsg
Linked list issue Delete() function
 
I am Working on a project about university database and i got stuck in DeleteCollege(College*&head) funcion that would take the head pointer and search for the ...
[no replies]
Need help with loop
 
I need help getting the points for each class the students have. The way it is supposed to work is that the students grade is converted to an actual value. For ...
[5 replies] Last: Line 36: You're passing Stu_new, but at line 30, Stu_new is ininitial... (by AbstractionAnon)
Basic exercise: to manage a table >> unexpected values
 
Hi, I am learning C++ on this website. First, I would like to thank the authors for the work here: the tutorials are well done. I am doing some tutorials to un...
[2 replies] Last: That works! Thank you very much for your reply. That was it. I have ... (by cplusacc)
by TRun
Sorting Array of Struct
 
Hi everyone! I'm still a beginner at this and totally lost on sorting. I am taking this as a distance learning class so the book is the only reference I have....
[4 replies] Last: It works! Thank you so much for all your help jlb! (by TRun)
2 Dimensional Arrays & Addition
 
Hi, I'm meant to write a nested for loop to add 5 to each element of this array, here's my code so far, but I keep getting the error: incompatible types in ...
[1 reply] : add 5 to each element If that is your goal, then what do lines 24 a... (by keskiverto)
FLTK and Cygwin
 
Hi all, this is my first posting on this forum. I'm fairly new to C++ and this forum so please give advice on how to post. Now, my problem: I am making my w...
[2 replies] Last: Good idea. I'll let you know the outcome. thank you. (by mainecat)
static_cast vs no static_cast
 
Hello. The following code lines do exactly the same thing. Is there any reason to use one over the other? #include <iostream> using namespace std; i...
[1 reply] : You definitely want to use the static_cast. http://www.gotw.ca/gotw/0... (by keskiverto)
Need Help!
 
Hi, I'm new to programming and I'm having trouble with my own program that I created it's just for fun. Right now I'm teaching myself If and Else if statements....
[11 replies] Last: I haven't got that far in C++ to do functions yet. I'm on while loops ... (by closed account yR9wb7Xj)
by savanh
need help
 
why it syas when i call friend template class the "name" unclear indenifer! #include<iostream> using namespace std; template <class T> class SW { pub...
[3 replies] Last: Consistent parentheses and whitespace between tokens help make the cod... (by maeriden)
May 2015 Pages: 1... 2425262728... 40
  Archived months: [apr2015] [jun2015]

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