General C++ Programming - May 2012 (Page 17)

a q here...
 
is there anyway wherein i could get the ip where and online game is connecting with and change it using C++?
[6 replies] Last: Very funny. By the time you acquire the skills to write one, that game... (by Athar)
New to Boolean; Need some help. (1,2,3,4)
 
I'm just learning about using Bool in class, and I need to know why my source code doesn't output correctly. My goal is to create a program that determines whe...
[72 replies] Last: Anyway, I'm pretty comfortable with all of this now, and I've gotten i... (by crystalgem)
c++ won't output the correct decimal...
 
#include <iostream> #include <cmath> using namespace std; void tax(float r, double x, double y, float z) { cout<<"Please input the cost of an...
[1 reply] : You should stop putting single quotes around everything. A character i... (by Athar)
by mher
Object
 
Write a program that the student information including name, and list their courses (including course name and grade) is to manage. Description: Students w...
[3 replies] Last: lol yeah, it's a good problem for me... but there's no way i would sho... (by John McCrary)
recursion mirror number output
 
Where is return statement so that if I call for e.g. printNum(1), the output is: 123456789987654321? Also, if someone give me some assistance with my other pos...
[2 replies] Last: do you mind taking a look at my pointer to pointer issue with my order... (by closed account 4ET0pfjN)
calling functions
 
can i call a function declared after the function i'm calling it in? for example: int fun1() { fun2(); return 0; } int fun2() { return 0; ...
[3 replies] Last: yeah, it's hard to try to make a complex program without calling user-... (by John McCrary)
How to modify Dijkstra to obtain augmented path
 
My textbook provided pseudocode for the Dijkstra algorithm, which I implemented as follows: struct Edge { int vertex; //index of vertex in the adjList...
[3 replies] Last: Dijkstra takes at each step the node with minimum "distance", and expa... (by ne555)
Difference between char arrays and other arrays
 
Hello, How does initializing a char to a string literal work? For example, lets say I have this code. char mychar = "Hi"; cout << mychar << "\n"; // ...
[2 replies] Last: Ahh, I see. Thank you very much! (by Flurite)
Need help with Allegro 5 Program
 
I am learning Allegro 5 (which I have installed through a DevPak in Dev-C++), and I have attempted to create a game with five small 16x16 bitmap images (aligned...
[no replies]
rand for statistical purposes
 
I read that rand should not be used for serious statistical purposes. Does anyone have an explanation for this point of view? What are more suitable alternative...
[4 replies] Last: http://en.cppreference.com/w/cpp/numeric/random is a good place to st... (by cire)
IPC blows - general
 
Sup cplusplus people? I have been working on some stuff lately that syncs data across multiple running application spaces. This shit is freakin confusing man. ...
[1 reply] : It isn't a piece of software, but is it just me or does using winhttp ... (by exiledAussie)
User defined output file name
 
I am trying to write a program that will output whatever the user types in to a file with the name of thier choice. If I give it a specific name I can run the ...
[2 replies] Last: Thanks that worked perfectly. (by nailo2532)
Searching Text File
 
Hi, I am wondering how to search through a text file for one specific word and display what is after it. For example, search for the word Phone Number: and disp...
[1 reply] : Use the strstr function. http://www.cplusplus.com/reference/clibrary/... (by exiledAussie)
by userid
C++ -> C#; MemCpy -> BlockCopy; Arrgghhh!
 
I am baffled as to why using Buffer.BlockCopy in C# is yielding different result than C++ MemCpy, using the 'same' arguments? The C++ array SOURCE elements ...
[12 replies] Last: The snippet you provided works. The arrays now 'match': memcpy(buff... (by userid)
need help in program
 
Consider a classical 2-arm 12-hour clock. Now imagine a really precise one. One that can indicate the time in hours, minutes, seconds, and hundredths of a seco...
[1 reply] : If you are on Windows you can perhaps start here: http://msdn.microsof... (by Texan40)
c++ Inheritance function access
 
Hi, this is the problem i am having with my assignment(the code that i am going to show here is not my assignment,i just wrote this code because i am experianci...
[3 replies] Last: To declare this function as virtual in the base class. (by vlad from moscow)
by sa60
CImg 3d surface issues
 
Hi I am currently trying to modify the image_surface3d example fro the CImg library , however my inexperience with the CImg library is limited. The input ima...
[no replies]
How to do this function once the decrement becomes less that zero example below C++?
 
Once this function becomes lower than zero how can I make so it decrement minuses from 256 EXAMPLE 5 -5 = 0 after this i want the program to 256 -5 = 251 251...
[3 replies] Last: For example it can be done the following way unsigned char c = 5; f... (by vlad from moscow)
problem in queue
 
I want to work program for the clinic will accept patients on the basis of the patient's condition , queue by linked list .
[1 reply] : this is the code without loop and if statement , i must have if statem... (by khalilshawahin)
Binary Tree Traversal
 
/* * SCUN.Wuhan * Edited By: JangDelong * Student Number: 10066013 * Date: 2012.05.10 * * Program Name: * Binary Tree Traversal ...
[no replies]
May 2012 Pages: 1... 1516171819... 41
  Archived months: [apr2012] [jun2012]

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