General C++ Programming - December 2011 (Page 23)

Need help using/accessing structure.
 
Hi guys, this is my first post here. I started learning C++ this year, so I'm not very good at this. I was trying to make my software get the temperature of my ...
[no replies]
by Mats
Calling up code to be compiled automatically
 
So I have a program and it writes a new (modified) copy of itself to a file.cpp. How can I get the program to call up my compiler to compile this new source fil...
[1 reply] : Depends which compiler and which platform... for MinGW GNU C++ under W... (by mmay)
Using Inheritance
 
Im trying to show a few box objects using inheritance which adds a few new features such as type of material and the sum of the dimensions. I cant get it to co...
[10 replies] Last: @robdog4: hope your assignment got marked leniently >_<... Okay, in... (by mmay)
Game Of Life: display iteration
 
hey guys I've recently made a game of life program. And it works. But I have problem of displaying the iteration. I can display the generations one by one, but...
[9 replies] Last: That's probably the worst solution, but if it works for you... (by bbgst)
by zepher
split string into fields
 
Hi, I need to split a string into a fields. The string is delimitted into fields with a comma (,). Do I have to extract each field via string operations li...
[8 replies] Last: Thanks for all the replies - I really appreciate it. I think the be... (by zepher)
Overtime pay program
 
I am trying to work on a program that computes overtime pay for 3 employees. I have been working on this all week and it is due by midnight tonite and I am at ...
[no replies]
Passing a Struct array to Class Member functions
 
Edit postDelete postReport this postReply with quotePassing a Struct Array using Classes by brb00136 ยป Sun Dec 11, 2011 12:31 pm Hi all, I am working on a...
[no replies]
by Mats
Mouse Movement
 
Is it possible for my program to move the mouse outside of its window? For example, to open up a program and then click things within it?
[5 replies] Last: I'm proposing this as an alternative, because it unnecessary to move t... (by ascii)
Quicksort with LL
 
I'm trying to debug an implementation of Quicksort using a singly-linked list. I keep getting a seg fault right after running the program, which indicates that...
[1 reply] : Nothing stands out.. Though this is not a good method of debugging. Ju... (by hamsterman)
by Eyad
Does not work!!
 
Write a program that reads in a length in feet and inches and outputs the equivalent length in meters and centimeters. Use at least three functions: one for inp...
[9 replies] Last: Thanks everybody, specially azuk040891 :D i changed it to void and it'... (by Eyad)
linking visual studio 2010 to intel ipp
 
hi, after linking my visual studio project to intel ipp i have the following, what can i do? help? thank you 1>------ Rebuild All started: Project: Chen-Im...
[1 reply] : what about this? 2>LINK : fatal error LNK1104: cannot open file 'lib... (by xristina80)
by AliDh
Download a File in C++
 
Hi, I want to be able to download a file from the internet and put it into to a file on my computer. I thought I could access files on the internet with fopen b...
[2 replies] Last: It is super easy in Windows. Use URLDownloadToFile(). See http://msd... (by webJose)
by gnuts
help with ofstream output programming!
 
This is an excerpt of my code. if (save == 1) { for (save = 1; save <= record;...
[8 replies] Last: please check your pm inbox :) (by gnuts)
frustrating errors
 
hi guys, im trying to get a program that requires a input of numbers and add them up, requiring the user to supply number each time using a do loop, ive done wh...
[13 replies] Last: ok this works, thank you. (by PhilThompson)
segmentation fault
 
Hey guys, I'm trying to make a Game of life. But every time I count neighbours I get segmentation fault, what's the reason behind that? This is the code that i...
[8 replies] Last: I understand now. I've edited it. do u have any idea how can i display... (by unstoppy)
Arrays/loops
 
I need help trying to write a program using arrays and for loops for a grades. I have to use an input file for the actual data but need help with a outline or s...
[1 reply] : It depends slightly on how your input file is. If you know that it has... (by hamsterman)
Book on Algorithms using c++
 
Please suggest me a good , easy to learn algorithms using c++, which can help me participate in competitive programming.
[3 replies] Last: That might be so, but I don't see why that is a proble. If you don't k... (by hamsterman)
Tree with multiple nodes at each level (Non-binary)
 
So I was wondering how other people would go about this, I'm doing a project for my Data Structures course (now the second I've taken because this college didn'...
[2 replies] Last: There are instances where you would have more than one item per node -... (by SIK)
by LB
How DO you destroy objects on console close?
 
I'm writing a server in a console, and I need to deallocate some memory when the user simply clicks the X button on the console window. atexit() doesn't work no...
[4 replies] Last: bluecoder 's solution is if you are writing a Windows Service using M... (by Duthomhas)
Rand and srand without time
 
I have a program that involves generating random numbers. A problem that I've run across is I use time as the seed for srand, and the program loops in less than...
[7 replies] Last: On *nix, use usleep () http://www.cplusplus.com/forum/unices/10491/#m... (by Duthomhas)
December 2011 Pages: 1... 2122232425... 39
  Archived months: [nov2011] [jan2012]

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