Beginners - October 2011 (Page 28)

Reading text file EOF issue
 
I need to take values from a text file that looks like this: Name Account Date Outlets Cable John Public 01430-211230-28-9 02/02/2002 2 B...
[2 replies] Last: The iFile stream doesn't fail until after the next attempt at a read, ... (by Cuddlebuddie928)
Need Your Help guys!
 
Im creating a tic tac toe program as my project.But i have problem. even if someone wins,the program keeps on asking the user for move until the moves ran ou...
[no replies]
by BRMV
what type of files are compiler programs
 
Hi, In program execution process the sourece code undergoes through preprocessor , compiler ,assembler, linker, loader and finally the executable file will...
[1 reply] : I doubt any memory is allocated until the program is actually executed... (by Gaminic)
class template, vector
 
Hi, I have this question about storing books information. The actual question is stated below. A. Some of the characteristics of a book are the title, autho...
[no replies]
by jalfor
Array/Vector Multitype
 
I'm trying to make a virtual machine thing, and I have run into a problem. Unless I want massive amounts of useless data, I'm going to need a way to store multi...
[4 replies] Last: As far as I know, there is no way to do this. Even when using pointers... (by Gaminic)
by minde
"stupid" c++
 
I wrote simple program (it's simple version of me last home work) and i dont understand why it dont show ERROR when X=2 and where line with X=3 disapears. Is i...
[2 replies] Last: Well, for one thing: You're error-checking for t = x-C != 0, but divi... (by Gaminic)
Do while loop menu
 
So I'm trying to implement a menu via a do while loop, however I am having a bit of trouble. I can get the "exit" functionality of the menu to work fine, and I...
[3 replies] Last: a) Think you meant to place "do" at the start. If not, you'll need a c... (by Gaminic)
What is wrong with this program?
 
what i'm trying to make here is the classic dice game pig i realize that the program is unfinished, i did not add the computer's choice to take another turn or...
[2 replies] Last: ooooooh thank you very much =D i kinda rushed this project so i guess ... (by icef4lcn)
by snash
Need " Matrix Addition" program
 
Hi guys, I need a 'matrix addition' program as well as a 'matrix multiplication program. I searched for that program on google. But I didn't get latest C++ p...
[3 replies] Last: it is better to you that first you try yourself, twice, thrice ... the... (by Bibek Subedi)
by gh24
Recursive Help Needed
 
Here is the code I need help with. This is a recursive function that is supposed to complete the repeated squaring algorithm on a matrix. My problem comes in ...
[19 replies] Last: Well, you need numbers to multiply together so the return tells the co... (by WilliamW1979)
Server port gets down in Long idle time
 
Hi everyone, I have written small Server app which accepts connections from clients. But what I notice is when the server gets idle for a long time, Clients ...
[2 replies] Last: ServerSocket::ServerSocket(int port) { iSockFD = 0; listenfd = 0; c... (by Ishara54075)
Pthread socket connection
 
Hi all, I have a problem. The code is from an example that I've followed to the letter and it compiles fine, however what stumps me is that the build is uns...
[2 replies] Last: Thank you for pointing that out. I'm still getting the hang of C++! (by Teslafox)
formatted output
 
I would like to format my output so that it looks like this: Head Movement Tracks traversed 15 - 4 11 4 - 40 ...
[3 replies] Last: use gotoxy(int X,int Y) function you can easily display as you like he... (by Dinesh subedi)
Please Help. strcmp not working?
 
/* In this game, there will be a ninja. He will kill the dark evil Ninja. He will go to New York, L.A, or Sanfrisco to search for the evil Ninja. When he go...
[3 replies] Last: Thanks Dinesh! Oh yeah, I fixed it a while ago, I actually made two si... (by hellohellomoon)
Suggestions to improve my code please
 
Hey guys I am extremely knew to programming and I am taking my first C++ class in school right now. It seems to be going well so far, and I am trying to get pra...
[no replies]
cin won't work in function???
 
So I have this function named void name();. This function is supposed to open a file, have the user input a variable within that file, and close the file. The p...
[4 replies] Last: Oh!! my bad. Yeah, I read it too fast. After reading it too fast, I w... (by hellohellomoon)
Help Please! STRCMP?
 
It keeps saying "Cannot covert STD::STRING into Const Char*". But my strcmp function is just comparing the two not converting anything! What's wrong with this t...
[8 replies] Last: thanks Eric, yeah, their suggestions did work :). Lol Disch. Oh yeah I... (by hellohellomoon)
Stock Sorter
 
I'm supposed to make a program which reads a txt file containing stock names and prices and then put them into a struct and then sort it. It's only been like 6 ...
[2 replies] Last: Well now i'm just trying to manually add each struct but I can't get i... (by sixstringaddict)
by RyanV
Can't Seem To Get This Loop To Execute Properly
 
Howdy guys, I'm supposed to design a program for my computer science class that: 1) Outputs an array of random characters. 2) Calculates how many times e...
[1 reply] : Try using for instead of while for(int x=0;x<5;x++) cout << "H... (by WilliamW1979)
Need Teachers = )
 
I'm having problem with looping . I don't quite know how to loop this calculator program . Need help . This is what i've done with the calculator program so...
[16 replies] Last: Thanks WilliamW1979 And TheMeerkat ! You guys helped alot ! (by FrenZFrice)
October 2011 Pages: 1... 2627282930... 59
  Archived months: [sep2011] [nov2011]

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