51,593 Topics

Member Avatar for
Member Avatar for timb00

Hallo everybody, I'am a newbe in the subject of dynamic-link library an c++. Currently I'am working on an interface of a fortran dll to c++ programm. I have available a example interface in Fortran, which works very well. My idea is to develop a one to one correspondent c++ source …

0
23
Member Avatar for blackmagic01021

I have a void type array. I want to create a function which will read 12 bits in each time and store it in a unsigned int type variable. Any ideas? Thank you.

Member Avatar for Banfa
0
3K
Member Avatar for goback

I have got a homework named greatest common divisor of two integers write in C++ in MS visual c++ 2008 in windows form. Using listbox, textbox... I don't know how write this programme. Please help me thank you. Sorry for my English.

Member Avatar for goback
0
310
Member Avatar for 3cats

We are just learning user defined functions. Instructor has us taking a prev assignment and pulling the calculations into functions. I thought I understood how to do the function, but guess not I''m getting the "error term does not evaluate to a function taking 0 arguments." I have been working …

Member Avatar for chiwawa10
0
160
Member Avatar for rowley4

I am trying to get my program to print the normalized matrix values and the maximums for each column. The output should be organized nicely in rows by columns manner followed by a row of values for each column maximum. For each column of the matrix find the member-cell with …

Member Avatar for jonsca
0
135
Member Avatar for CodeField

Hi everybody, I was given a free choice for a project to complete for my class. We have been working in HTML, 3D Max, Flash and C# / SQL Databases this year, so I chose C#, which is by far my favourite thing to work in. However, due to numerous …

Member Avatar for Gospp
0
139
Member Avatar for d3mos

[CODE]bool validateCourse ( int courseNum ) { switch ( courseNum ) { case 4587: case 4581: case 9696: case 4590: case 4580: case 4599: case 4583: case 8997: return true; case default: return fasle; } } [/CODE] I need it so if the user enters anything but these course numbers …

Member Avatar for chiwawa10
0
103
Member Avatar for viziroth

I'm writing a header file for a class project and one of the functions we have to add finds a patient's age from their birth date. I need to write the function without arguments or any user input and can't use a static date. I've figured out enough that I …

Member Avatar for viziroth
0
215
Member Avatar for hassan_physic

me too i need to load image by borland c++ but i dont know how please someone tell me

-3
23
Member Avatar for Schrödinger

Hello, I have entered 6 random names into a text file. From my program, I accessed that file, and stored the 6 names into a vector. Now my question is, how do I delete every n number of names? I am having trouble figuring out how to keep "wrapping around" …

Member Avatar for Schrödinger
0
91
Member Avatar for punchinello

Here is the code: [CODE] if(i&~077)[/CODE] , where i is an int value. The condition is supposed to be testing whether i is within a proper range. But how? Thank you very much!

Member Avatar for punchinello
0
80
Member Avatar for callagga

Hi, Does anyone know of a solid C# library / approach to manage a hierarchy/web type collection? This would be a library that would basic consist of the concept of nodes & relationships, for example to model web pages/files linked under a URL, or modeling IT infrastructure. It would have …

0
100
Member Avatar for sciwizeh

Hello all, is there simple way to check if a multimap contains a value, or am I going to have to loop through all pairs? thanks

Member Avatar for sciwizeh
0
113
Member Avatar for blind122

I dont understand why it doesnt work like the first vector i can input ok but the program just ends right after that, like it wont let me input values for the second vector. [CODE]#include<iostream> #include<vector> using namespace std; int main () { vector<int> a1; vector<int> b1; cout << "Enter …

Member Avatar for caut_baia
0
93
Member Avatar for DealthRune

Okay, I'm in need of MAJOR help. I'm trying to get my own private server up, but in order to do so, I need Visual Studio 2008 C++ Express Edition. I've went to the Windows homepage and found a download for Visual Studio 2008 C++ Express Edition. When I click …

0
100
Member Avatar for theblastedfool

Hello guys, I have been working on this code for a few hours and I almost have everything working right. This project that I am working on is basically a password creator where a person enters their password and the program checks it to make sure that it meets certain …

Member Avatar for theblastedfool
0
110
Member Avatar for smcp

Hey guys, I'm currently working on an assignment to create a C++ Employee class that can compute the net pay salary of hourly based employees and also find the average net pay for a small company. As far as I know, I've done everything that I am required, but when …

Member Avatar for smcp
0
147
Member Avatar for bgx90

I need another set of eyes to look over this code. I must be overlooking something. I cannot figure out what the compiler's complaint is. When I try to compile, GCC gives me this error: sim.cpp: In function âint main()â: sim.cpp:21: error: ârunSimulationâ was not declared in this scope Can …

Member Avatar for NathanOliver
0
62
Member Avatar for sidra 100

plz chk my code to do currency conversion # include <iostream.h> # include <conio.h> main () { cout<<"Wellcome To VU Money changer"; cout<<"\n"; // data type initillizing char con,coninto,op; float amount; do { //discription print message on consol what program contains cout<<"Please select currencies that you want to Exchange :"<<endl; …

Member Avatar for mrnutty
0
92
Member Avatar for achieve_goals

Hi! I am having trouble many a queue of Nodes. I have a class of Queue (user defined - as I am not allowed to STL), with methonds as enqueue(), dequeue() and getFront(). And also I have a class of Node with data and frequency in it. Now I have …

Member Avatar for mrnutty
0
91
Member Avatar for Harrybarry

Hey all, I’ve got a question about Facebook. I’ve read in an article that Facebook could also be written with C++ and would work more efficient than what’s currently happening. I’ve heard of numbers with 75% reduction in for example servers. I would like to ask the experts here for …

0
26
Member Avatar for ranvi

Hi, I need some help in converting the struct pointer to void pointer, since I do not want to expose the whole structure coming from one interface to the other. I need some help in coding [B]callSetInt()[/B] and [B]callSetString()[/B] methods in the below code. The set() method hides the structures …

Member Avatar for Salem
0
455
Member Avatar for pinsickle

[CODE]void Graph::writeShortestPaths (int first, ostream& outfile) { for (int i = 0; i < n; i++)// each vertex { currentDistances[i] = 999999; predecessors[i] = -1; toBeChecked[i] = true; } currentDistances[first] = 0; writeShortestPathsHeader (outfile, first); int pass = 0; while (moreShortestPathsToFind()) // see below { int minVertex = first; // …

Member Avatar for pinsickle
0
143
Member Avatar for dylank

Hey DaniWeb, I'm having a tough time with this piece of code: [CODE]string encrypt(string e) { for( int i=0; e[i] != '\0'; ++i ){ ++e[i]; if(e[i] == "{") { e[i] = "0"; } if(e[i] == ":") { e[i] = "a" } return e; }[/CODE] It should "encrypt" the string, using …

Member Avatar for dylank
0
229
Member Avatar for kneel

[code] #include <iostream> #include <list> #include <numeric> #include <algorithm> using namespace std; int main() { // create linked list of integers list<int> the_list; // input as requested cout << " Enter length of the list " << endl; size_t len; cin >> len; for(size_t i=0; i<len; ++i) { cout << …

Member Avatar for kneel
0
171
Member Avatar for pichi89

hey, I need to make a program that • Define a default array size. the size HAS to be 15. • Define a function “ResizeArray” which virtually increase the size of an array, by creating a new array with the size of the old array plus the default array size …

Member Avatar for pichi89
0
131
Member Avatar for chathuD

[CODE]class building { public: int length, width, height; string purpose; string name; private: float volume; int num_windows; }; building office; void main () { // The following statements are legal: office.name = "Bleedem, Woffle & Scarper (Lawyers)"; office.height = 34; cout <<"height is"<< office.height <<endl; cout << " name is …

Member Avatar for chathuD
0
85
Member Avatar for Nagalakshmi J M
Member Avatar for Lukezzz

I have compiled a project with "Build Solution" in VC++ 2008 Express Edition wich have worked fine all the time. Suddenly without doing any changes nowhere after the last F7 (1 minute ago), I do get this Error message: [B]1>Linking... 1>LINK : fatal error LNK1104: cannot open file 'E:\Documents and …

Member Avatar for green_frog
0
5K
Member Avatar for Pawello

Hello, I have a problem. In my program i use structure: [CODE]struct pole { pole *pole1; pole *pole2; pole *pole3; pole *pole4; pole *pole5; pole *pole6; pole *pole7; pole *pole8; };[/CODE] I want to make a function which would use correct pole(pole1, pole2...pole8) depending on parametres

Member Avatar for mrnutty
0
115
Member Avatar for 1manik

Hi, I have two problems. I have this program: But I dont know how can I do: 1 that I finish this program and save text to .txt by press of ENTER 2 that window, in which will be field to write text, will be illustrated in main window, but …

0
51
Member Avatar for amns

please solve the problem Problem Statement: Exchange of currency rates write a program for Currency Exchange rates. The basic idea is that user/reader will be able to interchange different currencies using our program. User will have three options i.e. Pakistani Rupees, US 1 Euro = 112 Rupees. 1 Dollar = …

Member Avatar for Salem
-5
107
Member Avatar for inisca

can someone show me an example of how can I use SFC_CALC_SIGNAL_MAX in C++

Member Avatar for Salem
0
205
Member Avatar for rugae

Learning about all functions in <iomanip> and was testing out setprecision() and found that something weird is going on...? I did try to do a search on setprecision() limitatations or similar keywords but can't seem to find the right site... can someone please tell me what's going on? [code] double …

Member Avatar for barevhayerable
0
521
Member Avatar for chathuD

guys... i am new to c++ and i have write litle consol aplication and the problum is after compiling hte code the cmd is clossing verry fast. so what i need to do is i need to stop closing the CMD verry quickly. in c# i use "console.readline();" so plzz …

Member Avatar for chathuD
0
87
Member Avatar for iammfa

Hi, The excercise I'm trying solving it today is printing the numbers from (32 to 256) and the ASCII values in table, I completed the code but the console appear one value only.. :( The excercise: [CODE]ASCII table Make a program that writes a table of all characters with values …

Member Avatar for jonsca
0
129
Member Avatar for nickguletskii

I am trying to use Lua in one of my C++ projects, but I get errors: [QUOTE] **** Build of configuration Debug for project MacroLua **** **** Internal Builder is used for build **** g++ -LD:\Program Files\Lua\5.1\lib -oMacroLua.exe MainLuaTest.o MainLuaTest.o: In function `main': C:/Users/s/MacroLua/MacroLua/Debug/../MainLuaTest.cpp:11: undefined reference to `luaL_newstate' C:/Users/s/MacroLua/MacroLua/Debug/../MainLuaTest.cpp:14: undefined …

Member Avatar for nickguletskii
0
423
Member Avatar for iammfa

Hi, The following is an exercise in c++, I solved it but I doubt my solve is not right ..can someone tell me is my solve right or wrong especially the compiler didn't give me any errors [I][B]The exercise:[/B][/I] first look the attached image, The acceleration of a sleigh sliding …

Member Avatar for jonsca
0
1K
Member Avatar for skorm909

ok so i want to make my code in a window instead of c++ how would i do this? can someone give me a example?

Member Avatar for tonymuilenburg
0
76
Member Avatar for doolsta111

Hi guys, I am having great difficulty in reading a text file char by char and storing them in a linked list. I started off with simply attempting to read from file char by char, and that worked fine. But when attempting to store the file into a linked list, …

Member Avatar for mitrmkar
0
245
Member Avatar for s_ellis88

I need 5 T or F questions with the option to input the answer and then add the correction to answer if right or wrong. i just need random questions! I am thinking of going to school for computer programming and my FIL is a programmer. [code] #include <iostream> #include …

Member Avatar for tonymuilenburg
0
110
Member Avatar for prade

hi.... i have a c++ project on dev c(with winbgim)...i would like to link it to visual basic 6......i want some clear steps to be followed for linking dev to vb

Member Avatar for kvprajapati
0
283
Member Avatar for moundeman

Hi, I have been trying for hours to solve this problem. I have attached below a very simplified version of my actual code. The constraints are: 1) the function "lib" cannot have its signature changed, as it is part of a library. 2) the pointer attribute "funcPtr" cannot be static …

Member Avatar for Salem
0
1K
Member Avatar for achieve_goals

I have to make an array of Nodes. I have #include "Node.h" as my header file and then in main I am writing the following code Node[] Node_array = new Node[]; but then I am getting errors referring to the above line: error C2143: syntax error : missing ';' before …

Member Avatar for achieve_goals
0
145
Member Avatar for thehivetyrant

HI there, I've been trying to implement a class of a ball i was given by an tutor but am having troubles. She gave me: [B]TBall.h[/B] [CODE] class TBall { public: double _radius; // defines the radius of the ball TVector _position; // defines the position of the ball TVector …

Member Avatar for Salem
0
169
Member Avatar for #define

helloo; i challenge all of the world programmers ;my question is; "Write a program that print all of the real number between 0 and 1"; :) :D :P chaleenge

Member Avatar for jwenting
0
159
Member Avatar for ans025

[B]Here is the actual homework problem. I am stuck on parts 1 and 2 and I really don't know how to make this right. Any help is greatly appreciated.[/B] 1. Write a C++ program that reads following data from an input file called “in.txt”, And stores them to an array …

Member Avatar for ans025
0
203
Member Avatar for brettbed

This is an example from an assignment I'm working on in which we need to validate that the user enters at least 1 Like for the temp.like[3] array and 1 Dislike for the temp.dislike[3] array. I tried using a while statement that said " while (temp.like == "") " or …

Member Avatar for brettbed
0
581
Member Avatar for theABCasian

hey all im back as usual kicking my head ageist the door line 41 is giving me a compile error of "cannot declare variable sortItem to be of abstract type" just learning C++ inheritance its a bit different than java. thanks for all the help. Demo.cpp [CODE] /* File Name: …

Member Avatar for theABCasian
0
5K
Member Avatar for slejeivw

I am trying to store a single random number from 0 to 99 to a variable. This is what I used in my code to do that: [code]time_t t; time(&t); srand((unsigned int)t); int rTSB(rand() % 100);[/code] I am trying to make a single random picture show up when you start …

Member Avatar for WolfPack
0
266

The End.