49,761 Topics

Member Avatar for
Member Avatar for zhackon

Look, Im planning to make a payroll program using Turbo C++, i'm a beginner. please help me or just give me steps on how to create my own program please?,,,,, :confused: :confused::confused:

Member Avatar for zhackon
0
311
Member Avatar for marvolo1300

Hi, I'm just trying out something with returning values to a variable and I've encountered a problem. Basically the program is supposed to return the value of [CODE]string x[/CODE] as either true or false from the [CODE]isEven[/CODE] function, then the [CODE]void output[/CODE] function should output the value of [CODE]string x[/CODE] …

Member Avatar for marvolo1300
0
92
Member Avatar for PratikM

Hi guys, I need to make a c++ project for my camp and i'm stumped and don't know what to do. I only know the very basics and i don't want to make any card games like black jack or RPG's cause people are already doing that in my camp, …

Member Avatar for pseudorandom21
0
108
Member Avatar for rayden150

Hello, I would like to know how do I compare two chars properly Im making a healthcare project, its pretty rudimentary, Im trying to make a comparison between a char that the user inputs and the char that is in a structure that is saved in a .txt file So …

Member Avatar for Ancient Dragon
0
295
Member Avatar for manugm_1987

Hi Is it possible to obtain complete path name using mouse click i.e when i click on a file say file.txt on c:\ i shld get the result as c:\file.txt. Or say if i have opened the file and the file is my active window how to get the path …

Member Avatar for Ancient Dragon
0
148
Member Avatar for caut_baia

Hi.I have a piece of code that compiles without even a warning on the borland 5.5 compiler yet complains bitterly when compiling with g++.I've heard that g++ emits more portable code but shouldn't they both be standard compliant?From what i've read in the '98 standard book this should be legal …

Member Avatar for mike_2000_17
0
630
Member Avatar for The Buzzer

hello guys, here is another problem on filing. it creates the intended files and it is saving as well. but the problem is the numbers become invisible this time in those files. it is showing . . . (dots) instead of even numbers or odd numbers. Anyone has got any …

Member Avatar for raptr_dflo
1
135
Member Avatar for sergent

Whats the difference between [CODE]using namespace NameSpaceName;[/CODE] and [CODE]namespace NameSpaceName;[/CODE] ?

Member Avatar for mike_2000_17
0
132
Member Avatar for hennelh

A recent assignment involved using very large integer values. A formula and very large x values were given and we had to compute the value of f(x). The tutor suggested using long long values as the 0 < x < 10^18. The function F(x) = F(x/2) - x if x …

Member Avatar for hennelh
0
4K
Member Avatar for teha_toshio

[CODE]1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 A * * * * * * * * * * * * * * * * * * * * B * * * * * * * * …

Member Avatar for teha_toshio
0
172
Member Avatar for IndianaRonaldo

Hi, I made a program that lists all possible anagrams of a word.Now I'd like to include anagrams of subsets of letters in the word.I have the code for making the subsets also now.But i do not want merge them as a single code.So I'd like to know if there …

Member Avatar for thines01
0
210
Member Avatar for pauj
Member Avatar for play_c
0
107
Member Avatar for becool007

Hey DaniWeb :) So Im working on this C++ Project and I'm getting this wierd LINKER issue. So basically this is the scenario 1. non-static member (int) frame in Main.cpp 2. static get/set functions for frame in Main.h 3. I try to access the frame integer variable via the get …

Member Avatar for Ketsuekiame
0
250
Member Avatar for tarakant_sethy

Hi, i am compiling the code in HP itenium server and i am getting an error. "Filename.cpp", line 129: error #2308: more than one instance of overloaded function "std::basic_string<_CharT, _Traits, _Allocator>::assign [with _CharT=char, _Traits=std::char_traits<char>, _Allocator=std::allocator<char>]" matches the argument list: function "std::basic_string<_CharT, _Traits, _Allocator>::assign(const std::basic_string<_CharT, _Traits, _Allocator> &) [with _CharT=char, _Traits=std::char_traits<char>, …

Member Avatar for tarakant_sethy
0
98
Member Avatar for manugm_1987

Hi everyone I have an application which hooks to notepad and records the keyboard strokes, this works fine only when i have an notepad open before executing my application. Once the appl is running and then i open notepad my appl doesnt work. My ques is suppose i have first …

Member Avatar for Ancient Dragon
0
351
Member Avatar for drakeanoid

It will not add Inventory to the program. It prints out zeroes for the list. Please someone help me make this work [CODE]#include<iostream> #include<string> #include<iomanip> #include<fstream> using namespace std; struct Inventory { long Inventory_N; float Price; char Inventory_Name[50]; }; void menu (ifstream&, ofstream& , Inventory L[], int); void loadInventory(ifstream&, Inventory …

Member Avatar for Ancient Dragon
0
588
Member Avatar for PratikM

Hi Guys, I'm kinda new at this..but I need help cause I keep on getting this error and I don't know what's wrong with it. So Please Help Me. Thanks. Here's My Code: [CODE]#include <iostream> using namespace std; int addition (int,int,int,int,int, int); int addition (int a, int b, int j, …

Member Avatar for PratikM
0
428
Member Avatar for Muhasaresa

:D Hello everyone, I am making a program where the user types in a string and then the string is saved to the clipboard, but I am not quite sure how. I have had a look at [url]http://www.cplusplus.com/forum/beginner/33250/[/url] but I am not quite sure how to implement this. I would …

Member Avatar for nmaillet
0
385
Member Avatar for ashu12v

Hi, Borland C++ 5.5 isn't working.:@ Test file [B]Hello.c [/B][CODE]#include <stdio.h> int main(void) { printf("Hello world!\n"); return 0; }[/CODE] [B]Output :[/B] C:\Users\Administrator\Documents>bcc32 Hello.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland Hello.c: Error E2209 Hello.c 1: Unable to open include file 'stdio.h' Warning W8065 Hello.c 5: Call to …

Member Avatar for N1GHTS
0
472
Member Avatar for keerti_somu

Hi, I am trying to call a simple fortran subroutine from a C++ interface and in turn call this C++ function from a C# application. Here is the fortran subroutine : [CODE]program hello_world2 implicit none c call hello call hello end subroutine hello !DEC$ ATTRIBUTES DLLEXPORT :: hello implicit none …

Member Avatar for thines01
0
341
Member Avatar for banoth suman

hi, my file say ll.out having data like 12.0 , -25.30, 0,0,....etc i want to store data in a variable one by one say var=12.0 now i want to compare this value with zero.if var !=0 then want to store those values into a array. here i want to assign …

Member Avatar for Ancient Dragon
0
248
Member Avatar for bunteezone

Please help me!! I am new to C++ Here is a program helped me little bit. -------------------------------------------------------------------------- [code=cplusplus] #include <iostream> #include <fstream> using namespace std; main () { int filename; cout << "Enter file name"; cin >> filename; ofstream myfile; myfile.open ("filename.txt"); myfile << "Writing this to a file.\n"; myfile …

Member Avatar for santanu@code
0
30K
Member Avatar for Kadence

Is it possible to use #ifdef with Boolean AND and OR? For instance something like [CODE]#ifdef WIN32 || WIN64 cout << "This is Windows." << endl; #endif[/CODE] The above doesn't give a compiler error for me, although it doesn't evaluate the or condition.

Member Avatar for Susel1
0
2K
Member Avatar for ztdep

Dear friends: I want to draw the sparse matrix sturucture to a file. The attachment shows an example. Could you please suggest me some methods to achieve this goal. Regards. Your Sincerely

Member Avatar for bkenwright
0
313
Member Avatar for llemes4011

Hi all, I'm working on a C++ app that needs to communicate with a server. I was wondering if it would be possible to use Java for the Server, and C++ for the Client. I'm assuming it should work (without the use of JNI) because TCP packets are TCP packets, …

Member Avatar for llemes4011
0
257
Member Avatar for triumphost

I've been programming in C++ for quite some time now and I know all functions must return a value.. but can someone tell me WHY we return 0? I mean it compiles even when I don't put return 0.. and the program executes fine.. I can see in some functions …

Member Avatar for SnowFall
0
258
Member Avatar for miyumi

now i know how to run the program of while loop.But i have a problem in getting while loop using three counter

Member Avatar for Anuradha Mandal
0
128
Member Avatar for seamus400

I put a few solid days into finding a working method of capturing the screen and they either didn't compile or weren't quite what I was looking for. I am wondering if anybody has any example code to capture the screen every 10 seconds and save it to bmp. I …

Member Avatar for seamus400
0
583
Member Avatar for jjyuyujj

Hi Does anyone know how to playing a set of short WAV files without delay? I was using the following, but there is a delay in-between. PlaySound("a.wav",NULL,NULL);//PLAY WAV SOUND ONCE PlaySound("b.wav",NULL,NULL);//PLAY WAV SOUND ONCE or I need to concatnate a few sets of short WAV files into one descriptor so …

Member Avatar for pseudorandom21
0
280
Member Avatar for Satyrn

Hello Daniweb Community, I am migrating a VS2005 solution to VS2008 which often includes its own ras.h file. Unfortunately there are several projects including <windows.h> which includes "ras.h" from the Microsoft SDK. What I would like to do is get a refactoring tool to rename this header file and update …

Member Avatar for Ancient Dragon
0
114

The End.