49,761 Topics
| |
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: | |
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] … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
Whats the difference between [CODE]using namespace NameSpaceName;[/CODE] and [CODE]namespace NameSpaceName;[/CODE] ? | |
| 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 … |
[CODE]1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 A * * * * * * * * * * * * * * * * * * * * B * * * * * * * * … | |
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 … | |
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 … | |
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>, … | |
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 … | |
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 … | |
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, … | |
: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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 | |
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, … | |
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 … | |
now i know how to run the program of while loop.But i have a problem in getting while loop using three counter | |
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 … | |
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 … | |
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 … |
The End.