General C++ Programming - February 2014 (Page 16)

by rchamp
Reading input file into value
 
Ok so I have been trying to figure this out forever. I am trying to read from my input file Transactions.data which is set up as follows V 250190 A 250190 200...
[1 reply] : I don't see where you read the tempID. Suppose that you initialize it ... (by ats15)
getline is not displaying in one line
 
I used getline to import EMPLOYEE's First and Last Name from a txt file. After calculating the weights ans stuff. Now when i try to write to output txt file am ...
[4 replies] Last: really ? it works you ? :s then why is it not working for me ??? maybe... (by umairrahim)
0 unsigned needed?
 
In the below function, it uses the syntax 0U. Now I am wondering why it is using the U to indicate unsigned integer. Wouldn't this function return the same valu...
[1 reply] : See: http://stackoverflow.com/a/4009922/1708463 (by cire)
Register/Login program
 
I want write a program it can register and login how can i write this?
[8 replies] Last: (Obviously, that's not a very secure way of saving it, but that's jus... (by BHX)
VGA mode 06h VRAM layout?
 
Anyone knows the VRAM layout of video mode 06h? I know it's a monochrome mode (each bit representing a pixel, so bit value 80h is the first, ..., bit value 01h ...
[no replies]
by dkaip
Using Libs
 
Hello. From File>New>Project>Static lib> CodeBlocks makes automatically the liba.a library at C:...Desktop\New Folder\a\bin\Debug dir, that contains only ... ...
[4 replies] Last: I don't make it again... how i do it? (by dkaip)
Too few arguments to functions!
 
Hi there below is my code for a program that determines the area under a curve by asking for user input for function, number of rectangles/triangles, and the st...
[2 replies] Last: In a few cases it looks like you're sending a parameter with an uninit... (by wildblue)
Virus
 
I write this harmless virus program,it can open new folder in desktop and cant delete. this program running in background and i cant close. How i close this? ...
[4 replies] Last: never mind sorry i found virus.exe (by mertsamilgul)
pointer to pointer
 
The following is the memory layout of a pointer to a pointer. Let's assume an 8 bit computer with 8 bit addresses (and thus only 256 bytes of memory). This is...
[1 reply] : pointers are variables that store the value of a memory address of ano... (by Smac89)
confusing logic in program
 
I understand the program below, which is an exercise from the book. There is one thing about it though that I don't understand and it's this conditional right h...
[no replies]
Main thread is blocking
 
I have an issue where I iterate through devices and make driver API calls. Unfortunately, these calls take too much time and they are interrupting my real-time...
[2 replies] Last: Thanks again Disch. The devices actually all use different data. I d... (by Stewbond)
Enormous Input Test (C++ Problem)
 
The purpose of this problem is to verify whether the method you are using to read input data is sufficiently fast to handle problems branded with the enormous I...
[no replies]
Association classes example
 
Can please anyone give me a real, with working code, example of using an association class?
[1 reply] : Have you tried Google? (by kbw)
How to use a user entered file in <fstream>?
 
So, I am making a name-database-type-thing and I want the user to be able to enter there own file. Like, here: What is your account file name? And then I h...
[6 replies] Last: As in absolute path... you mean in the project's file? (by AceDawg45)
Library for games?
 
Hi, I am going to be working on a simple games project to help me learn C++. I am looking for recommendations on a good games library that works with C++ Code. ...
[16 replies] Last: My only restriction is that I do not want to use SFML.(It's a long s... (by BHX)
sizeof operator
 
The printf function below prints 16 bytes for the size of test. Now test is an array of char pointers. I believe the size of a pointer is by default 4 bytes. Si...
[2 replies] Last: I believe the size of a pointer is by default 4 bytes The size of a ... (by cire)
by DevTom
Program crashes, can't find issue.
 
When I run the program it immediately crashes, I have been looking over it but cannot seem to find the issue. CircleType.h #ifndef circleType_H #define ci...
[2 replies] Last: Thanks! And I feel dumb I totally forgot about the debug utility! Brai... (by DevTom)
run in background
 
Can i run my program in background
[6 replies] Last: If you don't need console I/O, you could mess with the Subsystem flag ... (by Duthomhas)
Console Life Form Game
 
This is a small console game that simulates life forms as they reproduce on a grid. The code works well enough, but I'm interested in suggestions to make it mo...
[4 replies] Last: Ouch... good catch, thanks. (by HellfireXP)
Array Error
 
So I fixed my previous code, and it compiles, but now it prints junk values. UPDATE: Here's my new code #include <iostream> #include <cstdlib> #incl...
[7 replies] Last: Whenever you declare a variable inside a class method with the same na... (by cire)
February 2014 Pages: 1... 1415161718... 33
  Archived months: [jan2014] [mar2014]

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