Beginners - November 2012 (Page 33)

Question
 
Quick question. I have to use parallel arrays to make this phone directory program. I was just wondering if their is a better way to do something this is a sam...
[7 replies] Last: Never mind I think I'm just going to stick with the parallel arrays be... (by jlillie89)
How do I access a function from another function?
 
Hi Im making a text based game in C++ console. I have a class for player, a class for monster a level class. I can add the player to the level and I can add the...
[3 replies] Last: Yes that is what I want to do. At line 89, if (myLevel == 2) {... (by DeltaRed)
by jimm78
How do i stop the program from closing?
 
How do i stop the program from closing when the robot reaches the boundaries of the grid? #include <iostream.h> #include<conio.h> #include <windows.h>...
[1 reply] : General advice, avoid having numbers like 79 or 70 or 20 etc scattered... (by Chervil)
What is the best IDE for C++?
 
I'm looking for C++ IDE for Windows 7. If you can provide description thanks.
[6 replies] Last: I use code::blocks and it's really nice. Though it lacks all the littl... (by Eliijahh)
by dancks
Can someone tell me how linking works?
 
Basically what I'm asking is, for Mac, linux, and Windows, how are program and library files stored? For example, I know that library files, when compiled on...
[3 replies] Last: #include <file> actually says look for the file in the folders on th... (by andywestken)
Program-Error after using <cmath>
 
hello, im quite new to c++ and i have a big problem at the moment wich i really want to solve.. i am looking for the solution since 2 hours now and im getting ...
[14 replies] Last: ok i fixed all my mistakes and now i am a bit more satisfied with my w... (by cabardi)
Help... robot flickering.. ASAP plz
 
//robot is flickering while moving #include<iostream> #include<windows.h> #include<conio.h> #include <iomanip> using namespace std; void gotoxy(...
[3 replies] Last: Yes that is true but for beginners the two usually go hand in hand so ... (by closed account 3qX21hU5)
Basic sorting with algorithm library
 
my currently code #include <iostream> #include <string> #include <vector> #include <algorithm> #include <conio.h> using namespace std; class Books{ private:...
[15 replies] Last: Yes. (by Peter87)
by StKaz
nested loop problem!
 
Hi guys, for most of you PROs out there might think that the question is quite lame but here it goes... i have to create a cross pattern in c++ that looks like ...
[2 replies] Last: Like hamsterman said the original if(x==0||y==0) is very close just ... (by closed account 3qX21hU5)
by LSD
Print the lengths of words
 
I am trying to do Exercise 1-13 from The C Programming Language book which is: Write a program to print a histogram of the lengths of words in its input. It is ...
[1 reply] : @LSD Line 16 has a problem with the subscript - the comment tells wha... (by TheIdeasMan)
by cplus2
anyone please help me ...
 
My teacher asks me to do c++'s homework but u know i don't know how to write the code and it is should be written by for looping and by iostream. please help me...
[2 replies] Last: If you don't know about loops I would recommend checking out control s... (by closed account 3qX21hU5)
by Ai wei
help for add item ! Please
 
Hai. First time look over here.. Hope someone might help me.. #include <iostream> #include <string> #include <conio.h> using namespace std; temp...
[2 replies] Last: ya i know. but not really how to compare using the template. mind to p... (by Ai wei)
Program goes into infinite loop, showing weird characters
 
After I successfully read in and stored my datas. When I press 2 to change my filtering criteria, changing it to a, b or c it is fine and working but whenever I...
[3 replies] Last: I didn't. How do I start debugging? I am using quincy 2005 (by b1b2b3b4)
by Z feng
File I/O: writing linked list
 
OK, This is the reading file function: course* restoreList(course* head)//given by professor, should be right. { fstream fin; fin.open("courses.dat", ...
[no replies]
by Z feng
Sort name Alphabetically
 
I know there are couple example on the other post. But i haven't studied the most of those kind code. i only studied #include<cstring> . There is my idea, I ...
[4 replies] Last: thanx! I fixed it! (by Z feng)
by ceMOS
Dec to Bin, Compare 2 Bins, Back to Dec
 
Hello, I'm having trouble with part of my assignment. I'm supposed to take 2 decimal numbers change them into binary numbers, do AND and OR comparisons betwee...
[1 reply] : Never mind, I finally found what I was doing wrong, had my int i = 0 i... (by ceMOS)
by amguy
Array help please.
 
I am making a program where i remove duplicates from an array.. so far i have it so that the program recognizes the duplicates and shows them. It also tells ...
[2 replies] Last: i could attempt and look into it, though I have yet to be lectured on ... (by amguy)
Program crash upon outputting to file
 
I am currently making a genetic algorithm, and once I got that working I started creating a program to optimize the variables (like mutation rate and population...
[no replies]
Hash Function, Hash Table
 
How can I write a good hash function that takes input as a string and returns a integer with minimum number of collisions between strings. I have a bunch of ...
[1 reply] : std::unordered_map ? There are plenty of info on hashing strings if... (by cire)
Math Tutor Project Program.
 
Ok so I got a good chuck of the project done I am just having trouble get this idea into the project. Phase III: Now you will change your doOneSet function s...
[3 replies] Last: I'm having the same problem. Would you please be able to explain what ... (by Rem)
November 2012 Pages: 1... 3132333435... 75
  Archived months: [oct2012] [dec2012]

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