48,986 Topics

Member Avatar for
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
294
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
627
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
133
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
208
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
238
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
427
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
383
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
247
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
310
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
253
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
254
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
578
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
278
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
Member Avatar for donaldw

I would like to be able to dynamically load and display images in a Windows application written in an old version of MS Visual C++. I'm currently using functions as given [URL="http://forums.devx.com/showthread.php?t=89505"]here[/URL] by Karl Lilje. The pictures display fine when they are supposed to but they are not "persistent" (by …

Member Avatar for Ancient Dragon
0
130
Member Avatar for detailer

Hello, Beginner in C++ how to make this program if i pressed ctrl-c the program will quit. and there's a tiny problem. whenever i run my program it says that return 0 is unreachable code. thanks guys :) [CODE]#include <iostream.h> #include <stdio.h> #include <stdlib.h> int main() { while (1) { …

Member Avatar for Ancient Dragon
0
247
Member Avatar for shbk

does anybody know library for c/c++ to catch presses of keys like ctrl+shift+foo or fn+f7 etc. ?

Member Avatar for donaldw
0
74
Member Avatar for Stefano Mtangoo

Hi, I'm making an MVC pattern based app and I though I would learn the principles first. I have reached a stage I need to connect the three elements. When Controller receives user action It calls right model. Now I need to register callback function so that when Model is …

Member Avatar for Stefano Mtangoo
0
1K

The End.