General C++ Programming - July 2011 (Page 7)

Unsigned Int?
 
Hi, I am writing a program that calculates the probability of picking a set of numbers from a larger set (ie. Lotto 649). Both of the numbers sets are user sup...
[2 replies] Last: Thanks that worked great (by WonderPanda)
Sort one array based on values of another array
 
Hi friends, I am trying to sort the values in one array based on the sorting sequence of another array. I use sort(A) for sorting A. For ex, A=[9,6,3,5,7]; ...
[5 replies] Last: Thanks m4ster r0shi, Exactly what I was looking for! (by speedster123)
Employee database: debug assertion failed
 
When I run the program, i get debug assertion failed. What part of the program is wrong? #include <iostream> #include <cstring> #include <cstdlib> #inc...
[3 replies] Last: char search ; int number = 0, length = strlen(search); Here, you're ... (by shacktar)
How much support C++ has in comparision to C#?
 
How much support of .net C++ has in comparision to C#? why C++ is not called C++.net while C# is called as C#.net?
[4 replies] Last: I can confirm what Grey Wolf says. I am a C++ programmer and we trans... (by mcrist)
by teocl5
Converting string with negative values to double/ float
 
Hi, Anyone know how to convert a string with probably negative values into double/ float? I have search the web but answer found were too complicated. ...
[1 reply] : [quote=teocl5]What is the simplest way? I'd say, something like this:... (by m4ster r0shi)
Random number generation
 
Hello I need to write a program that will generate random numbers, but the random numbers will be in a 2 dimension arrays of 7 by 7 the program will randomly g...
[1 reply] : When you post a question, not only describe the task, but also the pro... (by hamsterman)
by teocl5
Extract substring from a line of text in text file
 
Hi there, Anyone out there know the solution to this problem? [in my .txt file] [Expense/income]: : Mobile Bills:-100:20Jul11 Lunch:-10:23Jul11 Ent...
[2 replies] Last: Hi hamsterman, thanks for the help. I have somehow managed to get the... (by teocl5)
can we run c++ with out showing a window?
 
hello guys there is a black screen popup when i run my c++ application i dont need that. is there any way to avoid black screen popup window? i ask this beca...
[1 reply] : I hope these help. They look helpful: http://www.irrlicht3d.org/wiki/i... (by HenriK)
by screw
problem with mingw 4.5.2 and prebuilt boost 1.46.1 libs
 
Hi Everybody! I would like to use mingw 4.5.2 with prebuilt boost 1.46.1 libs. I didn't want to compile the boost source because saving time therefore I down...
[1 reply] : Could it be that you are running your code from eclipse ? We noticed t... (by yakirari)
by Thyde
Functions for roomchanges in a text based game
 
Edit: oops, didn't see the beginners forum. feel free to move it :) I've not been programming with c++ for long, but I'm wondering if this is the correct way...
[12 replies] Last: I didn't think about that, I've been trying to find the right place to... (by Thyde)
Array Indexing Problems
 
Purpose of Program: To encrypt the user's string input by an increment of 1 character. Ex: if the user enters "Hello" the program encrypts it as "ifmmp" Pro...
[1 reply] : for(int y = 0; y < keylen; y++){ if(proto == key ){ proto = ke... (by hamsterman)
csv Inventory file I/O
 
Hello, I am an avid reader of this forum, and I know that it is frowned upon to ask for help when it comes to homework, but I have an urgent problem that I ...
[1 reply] : input.read(reinterpret_cast<char*> (&ProductInfo), sizeof(Product))... (by shacktar)
One Class Accessing Data of Another
 
I have two classes, Player and Wall, that each of a SDL_Rect data member. I need to access the SDL_Rect in Wall from a function in my Player class in order to c...
[3 replies] Last: It actually wasn't resolved with such a simple solution. I had to do s... (by MottMan)
simple va_args question
 
Hi, Am I missing something, or did va_args really not come with any end identifier or count information? My current understanding, and PLEASE correct me if I'm...
[7 replies] Last: Ah, yes, that is a C++11 feature, I think, to be able to use literal i... (by Duthomhas)
Object Serialization C++
 
Hi there! I'm trying to serialize some of my objects, but when they're pointers I don't know how to do it... I have being studying this code that I found in ...
[1 reply] : I've made a simple example, it loads/saves one person and an array of ... (by Turbine)
Projectile OpenGL
 
I am working on a project for school and am stuck. I need to update a loop using vectors to make a cannon fire like it actually would. I got it to fire but the ...
[2 replies] Last: Thank you. I thought I had it a couple times it wasn't the way that it... (by stretch)
by Skid
Parse Last.fm Inbox
 
Hi, i've started to write a program that download messages of last.fm inbox, but i got a problem to connect with my c++ on this site. I tried to connect w...
[no replies]
by jpotts
While statement trouble
 
Hi, I want to make it so that if the user enter in an option that isnt provided, then it will loop back to the begining to make them choose. however no matter ...
[2 replies] Last: Ok, i see what i was doing wrong. Thankyou! (by jpotts)
Keep getting errors using the switch option
 
Hey everybody! I'm trying to create this program for a school project, but I keep getting errors using the switch option in the code itself. Is there a reaso...
[3 replies] Last: Breadman - Thanks for the quick reply! I did what you said and it work... (by Incursion172)
Writing Data input by user to test file.
 
Hi, Im writing a function to store data inputted by a user. I have to press enter twice after first name and after adress fro the program to print out the next ...
[4 replies] Last: So, the customer ID problem was solved as well? (by shacktar)
July 2011 Pages: 1... 56789... 30
  Archived months: [jun2011] [aug2011]

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