Beginners - May 2010 (Page 33)

looping through a 2d double linked list
 
hi everyone, I have been at this for a while now and i do not understand why it will not loop into the second for loop. void printList(const dlist< dlis...
[1 reply] : nevermind figured out my noob mistake...... (by joeyjojo)
While loop with EOF()
 
Hi Everyone, I have done a search though here and found similar problems but in my situation I need to have a while loop or some kind of loop. Anyways so...
[2 replies] Last: Don't loop on EOF. char c; while (fileIn.get( c )) { ... } ... (by Duthomhas)
cin problem
 
when we use cin>> the - in the output jump one line down i dont want it.for example i want to cin these by keyboard 1 2 3 4 5 6 4 2 3 what can i do?...
[6 replies] Last: @a friend: cin<< will seperate inputs by spaces, so basically you don... (by hanst99)
navigate 2D doubly linked lists
 
Hi i would like to know how i can navigate through a 2D doubly linked list. i have created a linked list of a linked list which are contained in classes Row ...
[1 reply] : Why don't you use vectors? It will be easier for you since you can use... (by m4ster r0shi)
question recursive of function
 
hello, i want ask how to write a recursive version of function to determine if an input is prime. anybody can help me..?
[2 replies] Last: @magni: Look at the way the question was asked, and you have the answe... (by hanst99)
by Tzarls
Dungeon Exercise - open for comments (1,2,3)
 
Hi. I wanted to show you guys my version of the Dungeon Crawl exercise. It´s still not finished (like 80%), but all the main features work. I´d like to hear y...
[40 replies] Last: @Tzarls - I just used a struct to make it smaller for the demo. If I... (by Mythios)
inputting from a text file
 
Hello, I need some help getting my program to read from a text file. Everything seems to be compiling fine but Im getting an error as soon as the program ru...
[1 reply] : Do you code like that? That's just torturous.... #include <iostrea... (by closed account S6k9GNh0)
Creating a DAG using BGL
 
I'm trying to create a DAG using Boost Graph Library. Since I'm new to C++ (and I'm finding it a lot more complicated than Java in terms of syntax convention),...
[2 replies] Last: 1) In C++ class/struct are the same, except classes default to private... (by firedraco)
My BMI calculator wont work but I do not see whats wrong
 
I used the formula from this site: http://www.epic4health.com/bmiformula.html My code thus far is: #include "stdafx.h" #include <iostream> int division...
[5 replies] Last: double is a (fundamental) data type . It is used to hold numbers wi... (by m4ster r0shi)
by Nelo87
getline( cin, exp) problems
 
I'm having problems with the getline function of the string class. This is what I get everytime I test: An empty stack has been initiated. Enter a postfi...
[3 replies] Last: stefanmielke is right. Add while (cin.get()!='\n'); after cin>>choi... (by m4ster r0shi)
Inputing data into a file Issue
 
So I'm writing a simple program to mimic an address book for my C++ class. All the data inputted needs to be stored in an external file. I can't seem to get the...
[2 replies] Last: Thanx roshi, That worked out wonderful. just had to throw another anot... (by S7rawMan)
by EEVIAC
calculating factorials with FOR LOOP
 
The following is a sample program out of my book. The program's description is lousy and I cannot figure out what exactly how it works.. Could someone please h...
[2 replies] Last: That makes sense! I can't believe that's all it took to get me to und... (by EEVIAC)
May 2010 Pages: 1... 313233
  Archived months: [apr2010] [jun2010]

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