Beginners - November 2015 (Page 31)

Alternative to .length()?
 
I keep getting an error that says .length() is not usable with a char, and I can't seem to figure out an alternative. Any help would be much appreciated. ...
[11 replies] Last: #include <iostream> int main(){ std::cout << "Input: "; char... (by closed account 48T7M4Gy)
Which program with database and load images
 
Greetings. I am looking for some software 2D that I can use with C++ that will allow me to do the following: ◾Be able to load images of various layers of di...
[no replies]
Access is denied?
 
When I debugged it, the error said that it was unable to start the program and access was denied. Here's the homework problem: Your goal is to create a pro...
[3 replies] Last: Oh cool, Cody was right. I reopened the program again and it can displ... (by ruroni24)
Union of Sets, Dynamic Memory, operator overloading
 
So, I have to create methods that takes the union and intersection of sets. I must also create a method that removes an element from the set. The union works fi...
[no replies]
(UPDATED **Class help**)Input and output to file issue
 
Hi I'm pretty new to this so please be nice ^.^ but I'm working on a project trying to learn how to input and output to file if anyone can look at this code and...
[7 replies] Last: So now I am going to incorporate classes into my program. I am very ne... (by Andrew655)
Number of Days between Two Dates
 
Hello, So I've been trying to figure out how to do this program. I know there are many mistakes. So I'm sorry about that. The program will calculate and print o...
[4 replies] Last: string readDate (int& m, int& d, int& y) { //bla bla if (d < 0 ... (by closed account 48T7M4Gy)
by Dkob1
Zip file for Visual Studio?
 
How do I make a zip file for Microsoft Visual Studio 2013 for C++ ? I have 3 files: a header file, .cpp, and another .cpp
[5 replies] Last: Right click the project folder. Select the send to option. Then compre... (by Yanson)
Calculator: Bedmas.
 
Hello, I am an 11 year old beginner and trying to finish my first project- the calculator. It functions but cannot do more than one equation at a time or can...
[2 replies] Last: Thank you very much helios! I really can't understand it yet... too ad... (by Lance2212)
by Andym
Operator overloading and class inheritance
 
If data is private in the base class, can it be printed from the derived class using an overloaded operator? I need to print all of the data from both class...
[5 replies] Last: Those are initializer lists. It is the recommended way of setting up y... (by TwilightSpectre)
Looping
 
how to stop looping until the newline? please help thanks. int h = 0; do { cin >> h; }while(true);
[2 replies] Last: @TC: What are you actually trying to accomplish? You are already requi... (by Zhuge)
If statement problems
 
Hey, In this program every time I enter the scores is prints the else statement at the end, can someone please help me ? thanks. #include <iostream> #...
[2 replies] Last: The program is supposed to only accept numbers. (by Duplacy)
Phone Book
 
I was wondering if you could help me about this. It's a phone book. I am recording name in it. Then searching it from number and from name. Problems; 1-...
[5 replies] Last: nice (by jasonwynn10)
Linked List withing a Linked List?
 
I'm trying to figure out how to create a linked list where each element of that list contains its own linked list. The first list is a list of teams and the sec...
[2 replies] Last: Okay so I've been trying to figure this out and I'm probably over thin... (by thelegendpaul)
pow
 
Hello, how can I make a program that can check which is the last number in a sum like 2^100 + 3^100? Tried doing it with long double but the cout still print...
[1 reply] : I think you should read this first. http://www.cplusplus.com/forum/beg... (by Thomas1965)
transfering scan,print to cin,cout
 
how can I transfer this 2 codes into cin,cout instead of scan,print Char X; float w ,l ,b , h , r ; const float pi = 3.14; Scanf("%c",X) if (X==R) {sca...
[1 reply] : Have a look at this tutorial: http://www.cplusplus.com/doc/tutorial/ba... (by Thomas1965)
Priority Queue Help
 
I am implementing a priority queue based on heuristic for an 8 piece puzzle program. I am wondering how to easily do this. How would I go about pushing in the n...
[5 replies] Last: So, as this inserts nodes into the Fringe it will compare them with th... (by elite zero)
Condition problem
 
Hiw do I make the condition that if x is an integer I want a condition in an if function that says if x!=integer?
[1 reply] : That depends on the type of variable x. Which type did you have in min... (by Kevin C)
Simplifying
 
So I just wrote my code for this class and it works great, I was just wondering if there was a way I could simplify this? Just to pick up a few tips and tricks...
[5 replies] Last: Oops. Missed that the OP was using it to position i. Thanks cire ... (by AbstractionAnon)
Easy Question : Which book to study?
 
Hello, So, I am an Applied Mathematics student currently in my 4th year of Bachelor's degree. I have experience with programming, as I passed a Java programm...
[6 replies] Last: Ok, you guys, since I really can't waste any more time... I've checked... (by Yektakhalili)
How to use IF statements?
 
Hi, I'm new to programming with C++ and need a little help with the following program. I'm trying to create a shipping cost calculator that takes the miles and ...
[4 replies] Last: [quote=freshprince23]Please let me know the correct way of doing it. ... (by Chervil)
November 2015 Pages: 1... 2930313233... 53
  Archived months: [oct2015] [dec2015]

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