General C++ Programming - September 2009 (Page 4)

Multiple programs in one..
 
So I have multiple simple math programs I have designed. Some have to deal with quadratic formulas, cross products, unit vectors/directional cosine angles, exp...
[4 replies] Last: I'd suggest you to write a simple bash script for this instead of some... (by Bazzy)
by luq
Application for phpBB3 login
 
Hi, I'm making an application to login into the phpBB3 forum on my website. I've allready made the password-hash etc. but now I want to setup the connection,...
[2 replies] Last: I think you misunderstood my question. I know how to let PHP communica... (by luq)
How to do profiling in C++
 
Please help I've to measure the time taken and the number of cpu clock cycles that were required by a C++ program to execute. Please explain how to do that and ...
[no replies]
Creating a .cpp, compiling and executing
 
Hello people, I'm trying to create a program that dynamically creates strings of code, and as C/C++ is a compiled system, it's not possible to use something ...
[7 replies] Last: try bison http://www.gnu.org/software/bison/ You could probably ... (by turbozedd)
by Oromis
Program doesn't run
 
Hello, I'm writing a simple program to experiment with SDL. I use Dev-C++ as compiler. I use no optimization. The project type is "Win32 GUI", it's linked t...
[2 replies] Last: The header is legal, yes. It seems an array of a class was the problem... (by Oromis)
by MaxT
Storing Objects /Object Properties
 
So here is the situation: I want to be able to store a bunch of objects (which will probably be be stored in a linked list but that is not finalised) In a file...
[2 replies] Last: Or is there a way to store a whole object/datastructure as a binary f... (by jRaskell)
simple instant meesenger code
 
i really need a big help from you guys!!my codes for our midterm project is still not successful. today(9-19-09) was suppostedly last submission but luckily, ou...
[2 replies] Last: Please, please, please use code tags. That's just too much code to ... (by jRaskell)
What's the deal with valarray???
 
So I've been spending some time in the valarray documentation and I'm wondering does anyone use this? Is it just some happy thing that got included in the STL? ...
[1 reply] : Those things are used to have an easy interface to some mathematical t... (by Bazzy)
Problem with format and initialization
 
I have to create a class containing both a const and a non-const float. Initialize these using the constructor initializer list. I cannot find direct example...
[6 replies] Last: Many thanks to guestgulkan (896) for the explanation (by Peter1234)
A simple pointers question
 
void MyFunc(int *x); main() { int z=5; MyFunc(&z); cout<<z; } void MyFunc(int *x) { *x = (*x)++; } Does it work error-free? (cannot...
[2 replies] Last: Thx a lot! (by luckycusp)
C++ programs
 
I have projects that relates to typing in the Microsoft VisualC++ Express. But the sad thing is that it would not work at all. So I was wondering if there was...
[2 replies] Last: What seems to be the problem? Can you describe more understandably? (by Denis)
Ok but now this errors came
 
I have in main include .h #include <iostream> #include <string> #include "TwoDimArray.h" using namespace std; int main() TwoDimArray Array1( 3,4); ...
[2 replies] Last: Why have you posted twice? (by buffbill)
how solve thos errors
 
I have in main include .h #include <iostream> #include <string> #include "TwoDimArray.h" using namespace std; int main() TwoDimArray Array1( 3,4); ...
[2 replies] Last: Yes but where is the definition of the print function which identifies... (by buffbill)
by aajruh
line 47 (in my code) is not working becaues of getline?
 
I need some help. I enter a name company "International Business Machine" and a symbol "IBM" when I am prompted. However, you see 47 line, cout << a << "(" << ...
[1 reply] : Move line 38 to 33. BTW, if you plan to use system ("pause"); , ma... (by Duthomhas)
Reading an unknown amount of data from file into an array
 
Hello, This question pertains to a programming problem that I have stumbled across in my C++ programming class. The Assignment: -------------------------...
[13 replies] Last: Thanks for all the info guys, it seems this problem sparked a bit of i... (by nickg140143)
by Null
#pragma pack()
 
Hello, i have few questions about #pragma pack(). 1.can anyone tell how #pragma pack() works? I mean how it changes data structs? 2. Why some data structure...
[1 reply] : (Very ) Basically the compiler unless otherwise directed will line up ... (by guestgulkan)
Core Dump in called function?How to handle it gracefully from calling function
 
Iam calling a function from another library.The function is coredumping due to unavailability of memory.My question is Who should handle the function graceful...
[no replies]
Yes/No programming question
 
Alright so i have this code i made, and i want to ask if you are sure that is what you want but i dont know how. here is the code. ill bold the part i need help...
[5 replies] Last: Just put your code in [code ][/ code] (without spaces) to use code-tag... (by Bv202)
Array problem
 
#include <iostream> #include<iomanip> using namespace std; bool exists(int array , int length, int newnum) { for (int i=0; i<length; i++) ...
[2 replies] Last: for(int k=0; k < count208; k ++) { for(int q=0; q<countM... (by mqj0712)
errors with code
 
Im having problems with errors for my code for a class.Im supposed to test the functions defined in the header in the main program.When i compile i get these er...
[15 replies] Last: I believe that you can find what is wrong on your own, look the declar... (by Bazzy)
September 2009 Pages: 123456... 14
  Archived months: [aug2009] [oct2009]

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