49,757 Topics

Member Avatar for
Member Avatar for demigodz24

can you help me to fix my program? how can i non-repeat the numbers i don't know the code..and how can i generate a numbers for bingo?...i need to generate until i win.. [CODE]#include <iostream> #include <cstdlib> #include <ctime> using namespace std; const int ROWS = 5; const int COLUMNS …

Member Avatar for daviddoria
0
101
Member Avatar for spacechase0

I've been trying to make something where I can just plug-in a new implementation (for things like opening a window, displaying graphics, etc.) and it work just like before. I've added a couple of other things like a resource manager, but now I'm getting linker errors. This didn't happen until …

Member Avatar for spacechase0
0
136
Member Avatar for garu525

Hey guys, I'm wondering if you can help me out on my problem. I wrote this code to print out consecutive numbers till it reach the maximum number entered. The code works but I want to control the output. Here's my code so far... [CODE] cout << "Enter max number: …

Member Avatar for garu525
0
106
Member Avatar for CeeY

I am new to C++ and would like to know the best way to setup a 2D game engine. All of the graphic files that I am using for this game are in .png format. How do I use SDL with my game engine, and where do I start when …

Member Avatar for _Nestor
-1
137
Member Avatar for Ana_Developer

I cannot figure out what I'm doing wrong in the following code: [CODE]char* charArray[3]; strcpy(charArray[0],"wn"); strcpy(charArray[1],"chair"); strcpy(charArray[2],"-over");[/CODE] Thanks a lot for the help!

Member Avatar for VernonDozier
0
96
Member Avatar for jeffcogswell

[ATTACH=RIGHT]17677[/ATTACH]Here at DaniWeb, we've talked a lot about [URL="http://www.daniweb.com/reviews/review313227.html"]Intel Parallel Studio[/URL]. I recently had the chance to sit down with Intel's James Reinders, and find out more about his take on [URL="http://software.intel.com/en-us/intel-parallel-studio-home/"]Parallel Studio 2011[/URL]. Mr. Reinders (pronounced Rhine-ders) is a senior engineer at Intel and has been with the company …

7
769
Member Avatar for WASDted

I was wondering about the new [URL="http://software.intel.com/en-us/intel-parallel-studio-home/"]Intel parallel studio[/URL], can anyone share their personal experience with it? Likes, dislikes, cool projects, etc? Our own [URL="http://www.daniweb.com/reviews/review313227.html"]Jeff Cogswell reviewed it here[/URL], but i want to here from a few others...

0
134
Member Avatar for moonL!ght

pleas will any one help me i feel im going to explode more than 8 hours in this question and i have to submit it after 3hours.. my prog is not finished yet but an error saying unresolved external sympol... actually i have aprog that define the mistake(MSDN library for …

Member Avatar for muze
0
84
Member Avatar for muze

hello guys....lets suppose I have two projects. Now I want to integrate them using visual studio 200X, how can I do that? thnx

Member Avatar for Ancient Dragon
0
102
Member Avatar for neural_jam

What the title says. Basically, I have some code with 12 nested loops based on the code below, and may have to bump it up to 24. This works fine, but seems a little cumbersome, and can't help but think that there's a better way of doing it? All help …

Member Avatar for neural_jam
0
2K
Member Avatar for Jsplinter

My program passes a parameter that looks like this: [CODE]std::vector<myDataType> vec; void function(&vec);[/CODE] Then the function accepts the argument like this: [code]void function(std::vector<myDataType>* myVec){ ...does something }[/code] Yet somehow I am getting the following error: error C2664: 'CMyClass::WriteVectorSTL_CSV' : cannot convert parameter 1 from 'std::vector<_Ty> *__w64 ' to 'std::vector<_Ty> *' …

Member Avatar for Intrade
0
222
Member Avatar for pavan_narla2000
-1
37
Member Avatar for grahf23

Hi guys, need some help in writing a progrom to test my code. Currently, what i have written for the header file is this [CODE] #ifndef _VENDMACHINE_H_ #define _VENDMACHINE_H_ #include <string> class VendMachine { private: string item; int numberOfItems; int cost; public: VendMachine(string s, int = 50, int = 50); …

Member Avatar for Intrade
0
221
Member Avatar for glenak

I saw this code in a textbook and I tried to put in my eclipse IDE, but it didn't work: [CODE] #include "GradeBook.h" #include <iostream> using namespace std; // GradeBook class definition class GradeBook { public: // function that displays a welcome message to the GradeBook user void displayMessage() { …

Member Avatar for glenak
0
156
Member Avatar for Steini_Ey

Hello everybody, I am new here in this community and I hope to learn a lot from you guys and then maybe later become the one to give out advices. I am also new to programing and I recently started learning C++. I am doing a program that is supposed …

Member Avatar for Steini_Ey
0
4K
Member Avatar for ekailan

I need to convert array of char to hex one char at a time , I tried to use sprintf,but it did not work. ?

Member Avatar for ekailan
0
223
Member Avatar for christiangirl

Hello, I have to make a program using heapsort, and am having trouble getting it. I think the problem is with either fixup() or buildheap(). I am having trouble understanding the syntax for both of those methods, the teacher gave us the code for them, but I am having trouble …

Member Avatar for budi indri
1
151
Member Avatar for caelt

I'm really frustrated right now because I've been looking all over the web on how to set up OpenGL to work with Microsoft Visual C++, but it seems like each website I find wants me to do something different. I feel like I'm missing something here...like I'm overcomplicating it. I …

Member Avatar for PsychoLogic
0
167
Member Avatar for Tiny_trixer

I'm working on a program in C++ that is supposed to output som data from a couple of classes. I thought I'd let the user choose what to output (what function) through a switch in main. This is basicly how the main looks now. (Just a general overview of the …

Member Avatar for Tiny_trixer
0
114
Member Avatar for elminster67

Hi, I am new to C++, for my home work for intro to C++, well it would be easier if I just copy and paste the assignment. [I]In this program, you will continuously track the minimum and maximum values of a file of integers as the file is read. Your …

Member Avatar for elminster67
0
131
Member Avatar for n0de

Hi, have tryed and everything below gives me 0 [CODE=c++] sizeof(array) / sizeof(*array); sizeof(array) / sizeof(array[0]); sizeof(array) / sizeof(array data type); //even the thing which i do not understant: template< typename T, std::size_t N > inline std::size_t size( T(&)[N] ) { return N ; } [/CODE] I need to get …

Member Avatar for n0de
0
7K
Member Avatar for dylank

Hey guys, quick question: I have been experementing with the _popen() function to get the stdout from programs. I'm trying to wrap it in a function for quick reuse, but the prog crashes every time! Here is the function (as well as the quick test main() function): [CODE] // crt_popen.c …

Member Avatar for NicAx64
0
676
Member Avatar for demigodz24

hi i have a program..i can't explain this code..can you explain this??... int card[ROWS][COLUMNS] = {{rand() % 15 + 1, rand() % 15 + 16, rand() % 15 + 31, rand() % 15 + 46, rand() % 15 + 61}, {rand() % 15 + 1, rand() % 15 + 16, …

Member Avatar for dylank
0
120
Member Avatar for mybluehair

Sorry for the bad title, but I'm not even sure what I'm trying to do is called. I have about 10 lines of code to clear a screen and reprint only certain images back to erase clutter. The thing is, I'm just simply tiered of writing these ten lines over …

Member Avatar for Master Rattley
0
134
Member Avatar for nickx522

I cant round up minutes and switch them to hours?...for example if a car was parked for 241 minutes(input has to be in minutes) and rate was $2/hour and first 120 minutes were free i would need to charge for 5h and i dont know how to round up right …

Member Avatar for nickx522
0
155
Member Avatar for Clandry

Making Change|Programming Assignment 5 Write a complete C++ program to do the following: 1. Read a single input record from the text le transactions.dat containing the initial number of each coin and currency type in a till from which change for purchases in a shop is to be made. Echo …

Member Avatar for dylank
0
219
Member Avatar for bmos31

I'm having trouble getting a recursion template reduceArray() function to divided elements in an array. I have +,-, and * working fine, but division is not working for me. The function should take the given elements and divide as follows ((((4/2)/7)/1)/9) Here's my code...any tips? [CODE]#include<iostream> using namespace std; template<typename …

Member Avatar for bmos31
0
219
Member Avatar for gotjeff5

Hey I am trying to do a tic tac to game, and im getting a few errors that I don't understand, Please help me. Here is my code: [CODE] #include<iostream> using namespace std; const int num_rows = 3; const int num_colm = 3; void xPlayer(char board[][num_colm], int); void oPlayer(char board[][num_colm], …

Member Avatar for gotjeff5
0
137
Member Avatar for ccube921

I don't know what the problem on line 12 is. [CODE]void mkbrd(void) { for ( int y =0; y<8; y++) //accesses all columns in the array { for ( int x=0; x<8; x++) //accesses all rows in the array { brd[x][y].x= char (65+x); //assigns columns names A-H brd[x][y].y= y+1; //assigns …

Member Avatar for gerard4143
0
71
Member Avatar for sonsofliberty84

I am having some problems finding a good example of a program that runs as a system tray icon, does anyone have one or know where to find a good one with a well readable source code file that I can look at? And I would prefer it to be …

Member Avatar for Ancient Dragon
0
289

The End.