Beginners - March 2014 (Page 34)

by ndat
Help with insert
 
I'm stuck on this homework problem where he asks 1: Write a C++ program that has functions insert to insert a node into a linked list, and delete to delet...
[1 reply] : start with this: template <typename T> class LinkedList { struc... (by Smac89)
Making the program repeat the menu
 
How do I get the menu to repeat immediately after the user has input their choice? When I run it, it gives the output correct the first time, but then is blank,...
[1 reply] : At line 64, that else needs to have braces. What's happening is if the... (by Renthalkx97)
Text Counting Program, No Errors, Doesn't Work
 
I'm using Visual Studio. No Errors are declared, but this will not display any of my menu. I think it is because the while(inputfile) meant to measure the int...
[1 reply] : I do not know how to attach text files on this forum. I keep the text... (by TheMouseRan)
Does wcout provide UTF-8?
 
Hi there! Guys, I'm trying to figure out how does wcout work. The problem is I use wcout to output some text to console (cmd.exe): #include <iostream>...
[13 replies] Last: @LB string to string conversion is a whole other story. There have alw... (by Cubbi)
using functions
 
Hello guys, I have been working on this all weekend. Write a program that asks the user to enter five test scores. The program should display a letter grade fo...
[18 replies] Last: We are agreeing on the subject, so I feel no need for the argument to ... (by Jamerack)
Sorting 2 Arrays ?
 
How do you perform a second level sort so that the user can choose to sort Column 1, and then if they want add a second level sort to column2? Like for examp...
[1 reply] : You already have a sorting algorithm that, when it determines that it ... (by keskiverto)
doublylinkedlist class
 
Hello, this is the part of my program that displays. I'm getting a runtime error during the while loop when ptr gets to be NULL. I can't see any reasons. I've c...
[2 replies] Last: Well I actually understood that the problem is in while loop by debugg... (by tcan618)
by F1n
.exe file suddenly stops running
 
Hello everyone, I'm attempting to teach myself C++ and I've started to create a custom GPA calculator using the principles I've learned so far (although I'm sur...
[3 replies] Last: windows tells me the .exe file has stopped working This doesn't sound... (by booradley60)
Repeating a Menu
 
Im very new at programming and cant seem to figure out what these errors mean. Ive read that it means im not linking something correctly or using right library,...
[4 replies] Last: Oh, yeah thank you. I did that to the while part but not the body.... (by morphantom)
Program not building.
 
Hello, I have been puzzling over this for some time now and unable to find a fix. I bought the book Beginning C++ Through Game Programming, 3rd edition, Mic...
[3 replies] Last: Thanks to you both for the quick reply. I am not sure what went wrong ... (by teflmcdonald)
Class Averages
 
Hello! A few days ago, I asked for help with a Class Average problem I was assigned, and have now worked through the code, but I can't get the right output! I'...
[5 replies] Last: [quote=mymalibu8]Can you explain what you mean by output statement? Yo... (by LB)
I need help!
 
Create a program that simulates a random walk. It starts with position 0. If a generated random number is an odd number, it moves to the right (add 1), if the...
[1 reply] : You already posted a topic here: http://www.cplusplus.com/forum/genera... (by LB)
Boolean Function Help?!
 
Hello, thank you for the help in advance. My problem is that I have my bool function testing to see if the times entered are valid, if they are it returns tr...
[2 replies] Last: Works great, thank you. (by Raspb3rry14)
Help with ostream operator
 
In my program I have defined the ostream and am trying to have it call a function that already formatted the output, but it is not working. The error I get is: ...
[5 replies] Last: Ha, you guys are good, I forgot about stringstream. That fixed it, tha... (by pepstein)
RPG CLASSES//spells
 
Hello all, For a text RPG would it be more efficient to make a class for all spells then link the spells to the job class.. Or to just have the spell function ...
[9 replies] Last: No, no. You'd make it as if it were a variable within in the class. So... (by Ispil)
Question about a code
 
Hi everyone , i have a few questions about the code that i post below. 1.Well i have to use the overload of the << operator but i can't change some parts of th...
[6 replies] Last: I just saw my error , it's true that i don't need the method print , o... (by alejandrojimenez)
reading a file in c++
 
What is the proper logic and code to find the number of rows and columns while reading from a file (.txt)??means if we have to find the rows and columns from a ...
[2 replies] Last: Alright thank you. (by Ahmed50)
Trouble with curses
 
I can't figure out how to include the Curses library. I have tried #include <curses.h> and #include <NCurses.h> . I can't get either of them to work. I am usi...
[5 replies] Last: I also tried using PDCurses, and that didn't work either (by Jamerack)
returning a pointer to pointer to pointer from function
 
Hi guys, I am trying to return dynamically allocated 3-dimensional array from the function. When I run the code, it does not give an error message in the erro...
[2 replies] Last: oh, thank you Cubbi. You're right. I mistyped line 30. it should have... (by herohero)
by mfooo
Can anyone help me with this. (C++) I just have a few parts that I can not figure out.
 
Ok, here is the question...... 1. Bring in the program lab4.cpp and the data file transaction.txt. a. Read the program to understand what it is doing. b. Add t...
[1 reply] : Would this be right for the loop part with the dashes? for (int i = ... (by mfooo)
March 2014 Pages: 1... 3233343536... 79
  Archived months: [feb2014] [apr2014]

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