General C++ Programming - November 2008 (Page 10)

by vivid
How to find a reliable interpolation program
 
Hello, everyone. I am new here. I have a problem. I need a cubic spline interpolation code for my program. But I don't know where to find a reliable code to do ...
[no replies]
by spa
The GAME OF CONNECT N
 
Hi, I am trying to develop the following code for an assignment, but I am stuck! It is a game which is played by two people using circular game pieces (checker...
[no replies]
Converting letters to numbers
 
I'm new to C++ and one of my first assignments is to write a program that ask for a telephone number entered in letters and convert it to numbers. Below is my ...
[1 reply] : Well, your main problem is the "while(letter)" which will always evalu... (by firedraco)
How can i write port scanner in UDP fashion?
 
I know how to write a port scanner over TCP - i should connect() to each port. How to do it in connectionless fashion? I tried to do sendto(), but i discove...
[1 reply] : You will have to use ICMP Echo Requests and look for replies with the ... (by jsmith)
by am1767
Making Change
 
I'm currently making a soda machine program. The user enters change, selects an available beverage and then change is returned. I'm in the process on figuring o...
[2 replies] Last: So in the real world - if you are a cashier, and I give you 1 dollar f... (by guestgulkan)
Is fork() a multi-threading? What Win32 uses for multi-threading?
 
Whats the difference between fork() & select()?! Select() gives you the ability Synchronous I/O Multiplexing! fork() gives every connection a child process, so ...
[4 replies] Last: THANKS (by f ben isaac)
by Roz
a function with character array
 
How can I write a program to call a function to perform the following: 1- intpu 10 elements of array type character 2- print the elements 3- count how many "...
[1 reply] : 1: passing arrays is the same as passing other variables (if you want ... (by Bazzy)
by n0ext
How to write/read from the RS232C serial port?
 
Hi! I have to write an application which sends/receives a data through the RS232C port but don't really know where to start. The standard input stream come...
[6 replies] Last: It's been a long while since I've done it on Windows, but it is straig... (by guestgulkan)
"official" geometry library/classes
 
I've spent a lot of time working on a bunch of classes (point, vector, ray, triangle, plane) etc to work with these objects and their intersections in c++. Howe...
[2 replies] Last: There isn't any standard I'm aware of, but there are good libraries fo... (by exception)
Roots Function. Can't make it work......
 
The descriminant value shows up but the roots do not output. Any thoughts? Heres the problem specifications. Function poly(given x, z, a, b, c; returns y...
[1 reply] : Please use [/co de] tags around your code so I can actually read the... (by firedraco)
Functions that return char[]
 
I have written this code as part of a project. if my variable Name has the value "Amazon", how can i change this function so that the output is say Amazon.BAS i...
[6 replies] Last: seems it's been answered, but for future reference, it is much appreci... (by Mal Reynolds)
Root Function. Time is limited. Due Tomorrow!
 
This is probably the worst prof I have ever had so I have no idea what to do to make this program. Help would be greatly appreciated. Specifications: Fu...
[1 reply] : Well we aren't a homework service, but we will help you solve the prob... (by jsmith)
binary output of any type
 
#include <iostream> void binOutput(unsigned char*,size_t); int main() { bool variable; binOutput((unsigned char*)&variable, sizeof(variable)); std...
[1 reply] : I'd do template< typename charT, typename Traits, typename T > ... (by jsmith)
Accessing Private Members of the Base Class
 
Its apart of the project assignment that they are defined as private not protected. I need to use this data in functions of my inherited class, manipulate the d...
[2 replies] Last: As noted above, yes, you would have to write a setter and getter for e... (by satm2008)
Reading a flie
 
/** Stephen Ingram CS 115 Sec 401 D. Cichon 10/25/2008 s.ingram@uky.edu This program decides whether a .txt file passes a certain test based on its con...
[1 reply] : You have made an error in Line 60 - in the invalid_Password function. ... (by guestgulkan)
Function that returns object name in c++
 
I want to initialise an object say A of class alphabet. the data for the object is located in a textfile A.txt. How can I write a function in c++ that return...
[9 replies] Last: will surely try again. thanks (by ejjunju)
problem in map-iterator!!!!!!!
 
i have the code for the following problem but it's not working plz help me out! we have to enter first name and last names of 5 people of which two have sa...
[1 reply] : map is not the right container for this, at least the way you are usin... (by jsmith)
Creating a Battleship Game!!!!!!!
 
I need to write a program to play a game like battleship where you try to sink a fleet of 5 vessels by guessing their locations on a grid. The program uses rand...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ Write down for yourse... (by Scipio)
by Muidem
Ternary Operator Problems
 
I've written a shift cipher encryption program and just for educational purposes I wanted to see if I could reduce all my if then statements to a big long terna...
[4 replies] Last: Code obfuscation I suppose. (by firedraco)
list::sort for pointers
 
Hello, I have list with pointers to a class object. I want to sort them by the first data member of the class. I use list::sort and my function for compariso...
[2 replies] Last: Thank U! Best regards! (by functionargument)
November 2008 Pages: 1... 891011
  Archived months: [oct2008] [dec2008]

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