General C++ Programming - November 2012 (Page 25)

"Smart" Calculating
 
I'm trying to do some work with some simple trigonometric functions. (Law of Sines and Cosines knowledge is useful here) I have a triangle: __ \ / \/ (I apo...
[3 replies] Last: Ah, I've just always used floats, I used doubles when I first started ... (by Spirrwell)
reading a matrix
 
hello every one. I have a small problem. I keep get an error when i'm trying to read a matrix. I'm using C programming style cuse this is what they ask at schoo...
[1 reply] : My solution is the following: #include <stdlib.h> #include <stdio.h... (by infoartenovo)
helping neede
 
please help me finding and fixing my errors on http://ideone.com/l1ntrO
[1 reply] : Ooh nice, they enabled hyperlinks for people with less than 50 posts ... (by LB)
existing string to name a struct
 
Hey All, I have an existing string. string stateString; I have a struct. struct node { int nodeState ; int d; int h; int c; }; I ha...
[12 replies] Last: Thanks again for your help with this. Your information and patience i... (by bwquestion)
Dynamic recompiling
 
Hey everybody, Well i created my first emulator. Currently, it only interprets. Ive learned first hand the obvious - its slow. So my solution is to make it dyn...
[3 replies] Last: A pure interpreted language would be the most appropriate to implement... (by JLBorges)
String test for capitalization failing to work
 
These all fail to work. I have no idea why. Any help is appreciated. p1 is user entered char string. Another code array sets the string as 'p' if it pass...
[5 replies] Last: The problem was that code was only ever storing the most recent compa... (by MikeyBoy)
??????????????????
 
how can i make a program that reads from an input file as following : the input file contains TWO lines: the first line contains length of the ladder , the n...
[3 replies] Last: vector (by Moschops)
by nnxen
Floats as indices
 
I'm having a problem with the following calculation in a line of code: 10^(dB/20) ...where dB is a float. I get Error: Expression must have integral or en...
[7 replies] Last: You aren't allowed to overload operators to where both operands are pr... (by hiw)
Client Vs Server -Multiclient Networking
 
I created Server-Client Programs for LAN and they are working,but the problem is that the server accepts only one client at a time.If more than one clients appr...
[12 replies] Last: I looked at lacewing some time ago, but haven't used it in anything se... (by kbw)
Array Help (again)
 
With this program, I am trying to make a program that has the user input 10 grades to be averaged. That is the easy part. I got that working, and now I am tryin...
[12 replies] Last: I ended up having the program send the main -1 and it worked out great... (by mckizzlealmond)
by mono
template class??
 
The instructions of the homework said that This is a template class. The template parameter, called RT, may be instantiated as any struct or class that contai...
[2 replies] Last: thanks (by mono)
Recursive function for sorting array
 
Hi all, i have this mini program that generates randomly 15 to 25 sized array. This array then randomly generate lower and upper case letters. So far i have g...
[no replies]
by na7937
Series Function
 
Write a function that returns the sum of the series 1! + 2! + 3! + 4! + ... + n! where n is an integer passed to the function as an argument. This is what I ha...
[11 replies] Last: @naraku9333 I'm sorry. For the sake of learning, it's good practice to... (by Thumper)
My program hangs
 
#include <cstdio> #include <kdtree++/kdtree.hpp> #include <vector> #include <map> #include <set> #include <iostream> // cout, endl #include <fstream> /...
[1 reply] : _ [co de] "Please use code tags" [/co de] _ Learn to debug. If you ... (by ne555)
by HJH
Enumerated type
 
I need to rewrite the following program so it uses an enumerated type to represent the planet. #include <iostream> #include <string> #include <iomanip> ...
[2 replies] Last: I am not sure if I understand how and where to put this code in progra... (by HJH)
Student database problem
 
Hey all! I'm trying to write a program that simulates a student database. From the user, it takes the number of students there are, their names, student ID's...
[no replies]
SendDigItemMessage function.
 
Hello I was having problems with the SendDigItemMessage function. This is what I have and it doesn't seem to be working. if(LOWORD(wParam) == 5){ SendDlgI...
[1 reply] : This should have been posted in the Windows Forum Secondly - here is h... (by guestgulkan)
Changing chars at specific coordinates w/o reprinting everything
 
How to, instead of reprinting a whole chess board for exemple, changes only the char at given coordinates? For exemple, how to move the 'o' down here one ste...
[no replies]
Pure virtual function of template class (undefined reference)
 
ishape.h template < typename T > class IShape { public: IShape() {} virtual void move(const T&, const T& = 0, const T& = 0) = 0; vi...
[1 reply] : Is it defined in the header file ? Since it's a template class the imp... (by closed account o1vk4iN6)
something with struct and class i dont understand
 
you know you create a struct like this right... struct weasels { int num; weasels *link; }*p; /// what the hell is this????? what is that between the } ...
[8 replies] Last: yes very much so, im almost able to completley grasp pointers and link... (by devonrevenge)
November 2012 Pages: 1... 2324252627... 51
  Archived months: [oct2012] [dec2012]

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