49,761 Topics

Member Avatar for
Member Avatar for CRD

I was told once that If I wanted to know what functions were available in a given header that I needed to open a header file and look. code /* * stdio.h * This file has no copyright assigned and is placed in the Public Domain. * This file is …

Member Avatar for Ancient Dragon
0
261
Member Avatar for Carrots
Member Avatar for Nixriq

How would I go about writing the loop for displaying the index 0,1,2 ... 9 for an array with 10 elements ? here is the code; I know i need to use a for loop, but where and how do i write it ? i tried : for(int index=0;index<20;index++) cout …

Member Avatar for Ancient Dragon
0
106
Member Avatar for miclo

Hey, I have a slight problem. I have managed to figure out how to copy and move files to XP's start up folder, and in some accounts Vista's startup folder. Now with Vista I can successfully copy and move the file to my own user account, but how do I …

Member Avatar for mikiurban
0
117
Member Avatar for Stefano Mtangoo

I have tried to do some Major C++ project with big failure as result. This produced great heart ache that made me recoil from doing further C++ projects. Here is the partial list of my failure: simple encoder with lame_enc.dll, simple CD Ripper with akrip32.dll, simple database manager with wxSqlite3.....et …

Member Avatar for Stefano Mtangoo
0
139
Member Avatar for june_me

for novices: what is' freopen()' function in C language and how it works?...thanks

Member Avatar for Nick Evan
0
95
Member Avatar for xxunknown321

I need help with writing a program for converting int numbers to words. For example, the number 713 would be translated into the string "seven hundred thirteen", and 8203 would be translated into "eight thousand two hundred three". The class should have a single integer member variable: - int number; …

Member Avatar for pulizziva
-1
169
Member Avatar for scott6480

Can anyone tell me why line 140-144 of this program does not do what it is supposed to do. Here is the output and you can see it is all blank? What am I missing? hit any letter keys to add items to the order and then = to stop …

Member Avatar for pecet
1
137
Member Avatar for dmitriylm

Hey guys (and girls), I'm trying to write a program that will read a simple text file and output a file with the same contents with the addition of line numbers. This is what I have so far: [code] #include<iostream> #include<iomanip> #include<fstream> using namespace std; int main() { char filename1[20],filename2[20], …

Member Avatar for vmanes
1
99
Member Avatar for dgr231

Hey all, I am currently working on building a small text-based RPG to practice C++. I am working on a function to load a saved game from information saved in a text file. Below is the code for the function: [code=cplusplus]void getSavedGame(playableCharacter& player1) { int stamina, health, mana, level, strength, …

Member Avatar for dgr231
0
241
Member Avatar for functionalCode

I have been searching and can't quite find how to call a C++ library function from masm. I would like to be able to call printf and system. Can anyone point me in the right direction? Thanks

Member Avatar for ov3rcl0ck
0
93
Member Avatar for EddieC

With its release on Monday of the [url=http://www.microsoft.com/hpc/en/us/default.aspx]first public beta of Windows HPC Server 2008 RC2[/url], Microsoft also was touting features introduced in the [url=http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx]second beta of Visual Studio 2010[/url]. Expected in March, Redmond's next IDE will simplify development of new applications and modification of existing ones to take advantage …

1
210
Member Avatar for StaticX

<thread split from [URL="http://www.daniweb.com/forums/thread172315.html"]here[/URL]> Could i have an elaboration on this explanation please? My poblem being that i have wrote 2 objects to a binary file called "data.dat" No problem there. But then i have a function that needs to find the number of objects in the file.I can do …

Member Avatar for Ancient Dragon
0
87
Member Avatar for Phil++

Hey, I'm trying to put all the objects of my class into an array so it will be easier to display.. It doesn't work though! Here is the code: [CODE] #include <cstdlib> #include <iostream> #include "manager.h" #include <windows.h> using namespace std; void displayManagers(); int main(int argc, char *argv[]) { displayManagers(); …

Member Avatar for Grn Xtrm
0
194
Member Avatar for mrinallabs

Hello There, I want to know how to connect a c++ program with a database. Please provide a beginner approach tutorial...

Member Avatar for Ancient Dragon
0
25
Member Avatar for alexa868

Hey guys... I want to write a program that transforms numbers into letters and letters into numbers... for example 20 would be transformed into twenty I have this but I don't know what's missing or what's the problem... help please [CODE]#include <iostream> #include <string> using namespace std; using std::string; void …

Member Avatar for rati
0
144
Member Avatar for tkud

hey, everyone. I am still learning templtes and I have 2 questions: 1-Why is it that all the examples of templates I have seen are about arrays?Is that all templates are used for? 2-after pondering about the above question, I decided to try something else witha template..a generic unction. However …

Member Avatar for tkud
0
96
Member Avatar for kent01981

How to store string words into individual variable For example: string str1(“Today is a very nice day!”); [B] then we need to store[/B] string s1 (“Today”); string s2(“is”); string s3(“very”); string s4(“nice”); string s5(“day”) Thanks a lot!

Member Avatar for jbennet
0
3K
Member Avatar for AdRock

I've got to write a code parser but am really stuck I have to read a file, process each token and output to a new file. Reading and writing to files isn't a problem, it's processing each token. What i've done is read the file and add each token to …

Member Avatar for dkalita
0
91
Member Avatar for silkyheart

umm... i have this school project... and i wanna make a game using c++... but i dont know how to do it... so please... any suggestions?

Member Avatar for Nick Evan
0
73
Member Avatar for farhan0795

Problem Statement: Merging and Sorting of character arrays You are required to write a program that takes character values in two different arrays as input from user. After getting input, make a third array and merge both these array in third array. Output array must be sorted in ascending order. …

Member Avatar for mrnutty
0
123
Member Avatar for MooAndStuff

Hey guys, first of all thanks for the time to even read this. Basically, Ive had some trouble in figuring out how to get this operator overloading to work. I think I'm having trouble in the functions calls that are within this function. These functions that are giving me trouble …

Member Avatar for MooAndStuff
0
107
Member Avatar for kitty7

Okay, well, I got my Address Book project done on time :) My current project is to turn it into a class. I have been working on this for a while and I keep getting set back to square one. My biggest problem is with writing some sort of user …

Member Avatar for jyoti bansal
0
225
Member Avatar for sebassn

Hey guys, I'm just doing this code to see if it works where the user inputs a name and it outputs a menu where different options can be chosen. For example, if the user press 1 the outputs of the name is reversed, if 2 is pressed the name is …

Member Avatar for sebassn
0
85
Member Avatar for dominion

I'm using Visual Studio 2008 express and I'm simply trying to put my source in different files. I have my Definitions in my .h file, my definitions in my cpp file, and my main.cpp file. I thought this was the correct way of doing things but the linker still has …

Member Avatar for Ancient Dragon
0
104
Member Avatar for kenny1989

Hi all, For my project I'm doing a comparison between solving ODE's in MATLAB and using the GPU to solve them. Anyone know of an accurate way of timing how long the program takes to run on the gpu (same kind of accuracy provided by matlabs tic toc command)? I …

Member Avatar for VernonDozier
1
186
Member Avatar for C++ Beginner

Heres the homework problem: Write a program that displays the status of an order. The program should have a function that asks for the following data: 1. The number of spools ordered 2. The number of spools in stock 3. If there are special shipping and handling charges (Shipping and …

Member Avatar for sfuo
0
3K
Member Avatar for scott6480

I get the following error when I try to compile this code. Can anyone help me make sense of this error? I have tried defining keystroke as a string and a char, I get the error either way. 1>------ Build started: Project: Register, Configuration: Debug Win32 ------ 1>Compiling... 1>Register.cpp 1>i:\c++\register\register\register.cpp(121) …

Member Avatar for kvprajapati
0
566
Member Avatar for squigworm

Hello, As far as I know, the fastest way to initialize an array is to do so using a for loop... Does anyone know if there is an equally fast or faster method of initializing a c++ array ? Any insight on this topic is greatly appreciated. Thanks, Colin

Member Avatar for mrnutty
0
240
Member Avatar for noey699

I am learning how to program through the windows.h library and was following a tutorial. After I copied the code to just create a window I got a lot of errors here is the code [code=c] #include <windows.h> #define WNDCLASSNAME "wndclass" //the needed global variables using namespace std; HWND handleWin; …

Member Avatar for sfuo
0
249

The End.