General C++ Programming - April 2010 (Page 22)

using ints created in one cpp in another
 
Is there any way of using ints that you have created in one cpp file in another cpp file Any help is much appreciated =)
[17 replies] Last: if you would use the energy and lives as the above code then, it must ... (by blackcoder41)
Optimising Merge Sort
 
For a bit of fun I coded my own implementation of the merge sort algorithm, after watching a lecture from ocw.mit.edu (really cool site!) which discussed it. ...
[6 replies] Last: All great info...thanks guys! (by sammy34)
win32 syntax
 
i am learning windows programming lately, i just wanna ask, isn't it that the syntax of a function is type name ( parameter1, parameter2, ...) { statements }...
[9 replies] Last: thanks, but i feel like my question is already answered.. but i think ... (by blackcoder41)
Have you ever created a game with C++?
 
After 5 days of coding I finally finished my first C++ video game. I used windows.h to create shapes and move them. It's not to complicated game, but took a lot...
[2 replies] Last: A good project is never finished Great! Now I have an excuse for neve... (by hamsterman)
by qabil
better language (1,2)
 
friend.. wIch one is better.. learning c++ until expert level..or learing csharp using visual stdio until expert level
[28 replies] Last: thanks, another knowledge from you. i'll remember that. (gregorian cal... (by blackcoder41)
C++ Load Images?
 
So C++ can load images and then use them? How do I do it then, I propably have to use LoadImage or LoadBitmap functions? anyone know how to do that? thanks ;D
[2 replies] Last: actually i have been playing with windows.h shapes and a little with O... (by Kondziu)
Global namespace error
 
I'm getting this error in the file math.h: Error: 1> c: \ Program Files \ ogresdk \ nxogre \ dependencies \ bml \ math.h (63): error C2039: 'fabsf': is no...
[1 reply] : Is solved. I had to clean the project to adjust first. The probl... (by dokfiler)
by maikel
Zero Memory in C++
 
Hey, i am a little confused. I want to initialize a struct, so it will be zero'd. But here is the restriction: Since memset, (or on windows ZeroMemory) are ...
[5 replies] Last: I found an interresting link: http://www.fnal.gov/docs/working-groups/... (by maikel)
Could someone give short simple example of using threads?
 
I'm trying to make a simple program, but I need to use threads for that. Could someone give simple example of program that's using threads? Thanks :D
[9 replies] Last: ahh ok started to work with WinAPI and almost got my program working, ... (by Kondziu)
How do I make this program work how I want it to work?
 
this is the program: #include <iostream> #include <windows.h> int main() { int n=1; while (n<20) { Sleep(500); std:...
[6 replies] Last: int main() { int n=1; while (n<20) { Sleep(500); std::cout << "... (by choisum)
Does anyone have an idea on this error "error C2248"
 
When i want to create a fonction that opens file and write into it i get this error.I have tried to find out solutioun of the error on Google but i couldt get a...
[11 replies] Last: Hey guestgulkan,im really greatful to you.Thank you so much. Have a ni... (by badiparmagi)
by JRevor
`_IO_FILE' was not declared in this scope
 
I'm using a Huffman compression library implemented in c , and I'm having the following compilation error in c++ : _IO_FILE' was not declared in this scope ...
[10 replies] Last: @ mofochickamo Sorry about that. (Let me try to pull my foot out ... (by Duthomhas)
Linked List Problems
 
Hello everyone! I am currently working on a linked list program that asks the user to enter numbers into a linked list, and then asks the user to input a num...
[1 reply] : cout << "Please enter the value you would like to search for in the... (by screw)
by qabil
sending mail
 
who know the code that can sending mail to my acount??? help me please...
[14 replies] Last: roger That (by qabil)
Linked Lists
 
Hello Everyone! I am currently working on a problem that requires me to search a user entered linked list for a value that the user asks for. So far I have w...
[4 replies] Last: 1) The STL has an already implemented doubly-linked list with full C++... (by closed account S6k9GNh0)
Stacks&Queues Linked List [Problem with pop and deque]
 
Alright so it works fine, but the proble is that it pops/deques out all the elements instead of one element. Say for instance I pushed in 5 then 4. The stack wo...
[6 replies] Last: I know. Sorry if I seemed mean O.o I didn't mean to. (by CuddlyBear)
Best way to store objects in a class
 
For one of my projects, we had to make a class called Rectangle2D. It contains 4 data fields. X and Y which indicate the center of the rectangle and then the wi...
[14 replies] Last: What do you mean by this, copy the line to either source sans the ex... (by BradyT88)
by Altar
Puzzling error
 
#include <cstdlib> #include <iostream> using namespace std; int main() { int n; cout << "Type your desired number in:"; cin >> "n"; ...
[2 replies] Last: Thanks! i got it working now! (by Altar)
Projet Laplace
 
Hello, I have an important project to my school in C++. I can not execute it. Does someone want to contact me please. Thank you
[1 reply] : What is this important project about? And what is it that you need? If... (by m4ster r0shi)
send output to a printer instead of the monitor.
 
Can anyone show me how to send output to a printer using C++?
[12 replies] Last: if you are using win32 api's then you can open the standard print dial... (by writetonsharma)
April 2010 Pages: 1... 2021222324
  Archived months: [mar2010] [may2010]

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