Beginners - February 2014 (Page 23)

Help with for loop (generating multiples)
Right now i am doing an assignment for class using loops (for, while, and do - while). i have to write a for loop to display: 1,2,4,8,16,32,64......8192. That ...
Feb 19, 2014 at 9:51pm
[8 replies] Last: That helped a bit but I don't get why you put the if and else outside ... (by Rudy Ortiz)
by ZachyJ
Output trouble
I am suppose to write a menu based program that is suppose to pick an item off a menu, a side, and a drink. I tried to do as much as I could on my own but I'm s...
Feb 19, 2014 at 9:49pm
[1 reply] : There are a number of issues wrong with your program at the moment. Ma... (by Need4Sleep)
Why is char * pointer not showing
Hi everyone. I have just started learning C++ and am playing with pointers. I think I understand the concepts, but whilst playing with pointers just now I ...
Feb 19, 2014 at 8:46pm
[3 replies] Last: Its just because the operator << is overloaded so that when you have... (by giblit)
by f8al
Class help
fixed
Feb 19, 2014 at 8:43pm
[4 replies] Last: Thanks, I just changed line 10 to void ContactBook::AddContact(stri... (by f8al)
by ch175
how to count characters inside tags in a html file?
I want to be able to count the characters inside the tags in the html file. I can get the total of the whole file characters but not the total of the characters...
Feb 19, 2014 at 8:18pm
[no replies]
I don't understand bool true and false
Can someone explain to me what's the use of bool true and false and when to use it. It's my first day reading the tutorials and it's really confusing. I never d...
Feb 19, 2014 at 7:51pm
[5 replies] Last: On line 3 and 12 of tomdacat's first example change == to = . The ... (by kevinkjt2000)
by zolo
reading in multidimensional array of unknown size
Hi, I am back to the forum after a long period and I have probably an easy question but somehow I could find the answer yet. I would like to read in a two dime...
Feb 19, 2014 at 7:49pm
[17 replies] Last: Thanks for the solutions I am trying out out everything since to this ... (by zolo)
Trouble with a list class
I've been working on a List class for a couple weeks and recently I've been having lots trouble with it. From what I can gather, there's something wrong with th...
Feb 19, 2014 at 7:22pm
[1 reply] : Anybody? This is seriously stumping me. (by InfiniteLoop)
Level editor help
Hello i am making a text based level editor in C for another text based game and so far have got a simple editor and i can save the levels but i am having ...
Feb 19, 2014 at 7:13pm
[1 reply] : also i know this is a cpp forum but as C is basically part of c++ i th... (by tomdacat)
A set of sample codes
Hello guys, I'm writing a set of C and C++ little sample codes. I currently have more than 100 codes. Each code is small and shows a specific functionnality...
Feb 19, 2014 at 5:36pm
[6 replies] Last: It mean : "compare int". :) (by Fvirtman)
Undeclared Identifier Madness!!!
I am having trouble getting all these bizarre errors to go away - namely it is just C2065 and C2146 that I think are causing chain errors, but I have included a...
Feb 19, 2014 at 5:25pm
[5 replies] Last: I just solved this, maybe not the best way, but at least it runs now. ... (by jheard901)
class without body?
What does it mean if there is a class without a body (Class A in the example)? class A; class Data1 : public Data2 { .... } Thanks for help....
Feb 19, 2014 at 5:00pm
[1 reply] : Classes without bodies are known as forward declarations. http://en.wi... (by kevinkjt2000)
whats wrong with my bool script?
Im trying to use this function to find whether a user input integer is a prime number or not: here is my code with a bool function: #include <iostream> #i...
Feb 19, 2014 at 4:46pm
[10 replies] Last: Thanks for your explanation. I understood it. (by binaryamg)
Code Efficiency
Let me start by saying hello and that I am new to C++. I am a systems administrator and have been for years however I have always loved coding but never really...
Feb 19, 2014 at 4:35pm
[3 replies] Last: endl will perform a buffer flush, simply adding "\n" (newline escape s... (by ValliusDax)
Set Theory (A-B)
Hi Guys! Help me with the code for relative complement. Here is what i've done so far. char A ; char B ; int e; int i; int j; cout<<"Enter number of Element...
Feb 19, 2014 at 4:26pm
[1 reply] : First, please use code tags: char A ; char B ; int e; int i; int... (by ValliusDax)
Array values
Hi, I'm trying to write a quick program to output a data string that looks something like "PCB #A-1111 PF". I imported all of the prefixes, dashes, and numbe...
Feb 19, 2014 at 4:13pm
[1 reply] : The loop control in your second for loop is causing issues... The bre... (by ValliusDax)
Is this good for a project proposal?
Hi, I'm in my first year at programming. Our professor told us yesterday to come up with a project proposal that has -Arrays -Pointers -Exception Handling -Stru...
Feb 19, 2014 at 3:31pm
[4 replies] Last: Our term is just composed of 11 weeks, and it's the sixth or seventh w... (by EternalFantasy)
Range in switch statement.
//I'm a beginner and I just started doing these test exercises on the forum. //I'm doing the first one. http://www.cplusplus.com/forum/articles/12974/ //...
Feb 19, 2014 at 3:26pm
[15 replies] Last: Its ok Jesc9 :) And thank you for explaining. @ keskiverto: This is ... (by talhabhatti5)
Classes
Hello experts! :) Our teacher told us to make something like: -->Arrow Release ----> Ranged --> ...
Feb 19, 2014 at 3:02pm
[1 reply] : Can someone please help me make these seven classes into one single .... (by mutexe)
passing arrays to classes
Just a general qustion... How would you go about passing a char array (for example) to a class? I'm so confused. Thanks!!
Feb 19, 2014 at 2:52pm
[4 replies] Last: That answers my question! Appreciate it! And yes I will read those. ... (by pilotnate)
February 2014 Pages: 1... 2122232425... 60
  Archived months: [jan2014] [mar2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.