51,593 Topics

Member Avatar for
Member Avatar for Martin_3

Hi guys, I have some C# code in my Powershell script and in that code I have a global variable. How can I access my variable from the powershell code ? $source = @' using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; …

Member Avatar for BogdanCov
0
273
Member Avatar for SpS

Can anyone explain me in simple language and better if with an example [B]why constructor don't have return types :!: [/B]

Member Avatar for ishan_1
0
739
Member Avatar for henrimontreal

I have a Texas Instrument board and I need to make a GUI on PC and link it to my board via a serial port in order to have communication.(energy-meter calibration monitoring window) Therefore, I decided to use Visual Studio 2010. When I started to use it I found out …

Member Avatar for tinstaafl
0
237
Member Avatar for diehsi
Member Avatar for Ancient Dragon
0
95
Member Avatar for macki123

**i need someOne to solve for me all this Question as soon as possible he can** 1. Write a c program TO take a charcter from keyboard and find ASCII value of that character . Dialog box Enter a character k The ASCII value of k = 107 2. Write …

Member Avatar for macki123
-2
348
Member Avatar for DeeperShade

Essentially, I'm trying to go oldschool and make a lil 2D engine, but instead of just importing bmp's or other image files, i'm looking to print each pixel to the screen myself. Firstly, Ive got it so I can display a single image I made, however, for colors such as …

Member Avatar for DeeperShade
0
195
Member Avatar for TheFearful

I keep getting a corruption for my array and I do not know why. Can anyone help me figure out what is causing my run-time error to happen? my heapInsert function is at the very bottom #include <iostream> #include <algorithm> using namespace std; //function prototypes int getParent(int index); int getLeftChild(int …

Member Avatar for TheFearful
0
284
Member Avatar for Ezekiel_1

My problem with this program is within my do while loop. From line 33 to line 47. Please find attached the original intention in the pdf document ` //Program to show loan and interest calculation #include <iostream> // for cin, cout #include <string> using namespace std; const double ANN_INTEREST=0.05; //simple …

Member Avatar for Ezekiel_1
0
458
Member Avatar for Mehul Jain
Member Avatar for hassan.kiani.10

Write a program which asks the user to either convert the number of days into hours or minutes. Based on the option entered by user your program should calculate the result accordingly.

Member Avatar for talha ijaz
0
213
Member Avatar for Mart_webber

A hardware merchant sells steel bars at a flat rate of Kes 1000.00 per meter, and has announced the following discounts: Quantity of steel bar bought (per meter) Discount (%) <20 0 21-40 5 41-60 10 61-80 15 81-100 20 100 25 Implement the following programs: a) Using if..else statement, …

Member Avatar for Mart_webber
0
166
Member Avatar for Elixir42

Hi, The problem I am having is that the returned object, from a dll factory, is not lasting for more than the function scope that recieves it. Despite reading [How to prevent the static initialisation order fiasco](http://www.parashift.com/c++-faq/static-init-order-on-first-use.html) I fail to see how it even applies to my code. `g_spEngineLog` is …

Member Avatar for Banfa
0
285
Member Avatar for Vinodhinij

Hi! I am new to dev c++.The program works good for the first time.Whenever I try to modify the code and compile it again it displays compiler error =**Permission denied ld returned status 1**.No idea what to do.I googled but still cant find a good solution.I've also attached the screen …

Member Avatar for Schol-R-LEA
0
222
Member Avatar for It tech

I am having problem with programming, i have been given a program to perfom and so far i have benn unable to start..can anyone help me? This is my question..1. Create a class called MyString. Within this class, you are to implement, from scratch, two versions of each of the …

Member Avatar for David W
0
339
Member Avatar for g12mcgov

Hello, I'm a first timer here but I've kind of exhausted all my options for help on this program so this is my last resort... Anyhow, I'm constructing a hash table given a hash table class header file from my textbook. I'm working on the Driver.cpp file and here's what's …

0
187
Member Avatar for c.bordelon

Hello all, My assignment is as follows: Write a program that prompts the user for the number of tellers at Nation’s Bank in Hyatesville that worked each of the last three years. For each worker the program should ask for the number of days out sick for each of the …

Member Avatar for vmanes
0
615
Member Avatar for malik.rauf.94402
Member Avatar for hl1202

Hi everyone, I have to write a function that will dig into a folder and store all the filenames into an array. I will have to use that Array later to access to each of the file. My function worked, and when i tried to output onto the screen, the …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for dododero

hey all well i have been facing this problem for days ...i have written a program where i am suppose to read a specific number of lines within different intervals and count the number of occurance of r and s and then divide r by s. The program is running …

Member Avatar for David W
0
170
Member Avatar for frkamal

Hi,I'm trying to find a C++ lib which permit an implementation of the standard RBAC in my application. Any help. Thanks.

Member Avatar for Ancient Dragon
0
426
Member Avatar for ravi_14

According to Herbert schildt C++ complete reference "A non-static member variable cannot have an initializer." however when i run following code,it runs.. class ABC { public: int a=3; ABC(); }; ABC::ABC() {cout<<a; } int main() { ABC obj; } regards,

Member Avatar for deceptikon
0
191
Member Avatar for samson.dadson.3

#include<iostream> using namespace std; int main(){ int fish =6; int * fishp = &fish; cout<<fishp<<endl; return 0;} this runs ok, but i get the same memory address when i cout either fishp or &fishp. how is it possible for a pointer to have the same address as the address it's …

Member Avatar for samson.dadson.3
0
299
Member Avatar for frkamal

Hi, Anyone have a detailed install procedure of QT with ODB on Windows ? Thanks

0
53
Member Avatar for mido29

How to write a program that contain a universal set and it union and intersect can be deduce from the universal set

Member Avatar for rubberman
0
42
Member Avatar for chachajay.lol

Hey there! I am in need of help, to create rather learn how to use a C programming Language to create a Currency Trading Simulation where I can buy/sell at the time of a decrease/increase in Forex Trading Platform or any other trading platform. However I find it really hard …

Member Avatar for rubberman
0
253
Member Avatar for glamiex

It is supposed to generate two numbers based on the user's preference of the highest number to use. What I want it to do is to divide integers that result in integers or perfectly whole numbers. I do not want to have numbers that don't divide out with remainders. So …

Member Avatar for vmanes
0
233
Member Avatar for ravi_14

cout is defined in std namespace and we also include iostream to use cout...i am confused ,please clarify this.where 1)cout is defined 2)where it is declared. and if we are including iostream ,then what is the need of STD::COUT regards,

Member Avatar for vmanes
0
533
Member Avatar for admiri92

Are exceptions standardized in C++? I mean if the rules of exception handling might be changed in the future. i.e: int Funct1(int) throw(); // does it throw an exception?

Member Avatar for mike_2000_17
0
292
Member Avatar for nikkoderic.aranas

Hi Daniweb community! I just want to ask how, in general, video capturing works in Windows. Also what libraries that I can use? I would want to use Qt as GUI library. I'm sorry if the question is not clear. I still don't know how to ask this question. Thank …

Member Avatar for Ancient Dragon
0
133
Member Avatar for Suzie999

I'm creating some automation utils. Part of it is automating mouse input. I think I have my math wrong because the X coordidnate is incorrect at certain points for example is I give it x = 114 which should translate to 114 pixels from left of screen (0) it will …

Member Avatar for Suzie999
0
764
Member Avatar for Vasthor

main.cpp // Give your class a < operator and define a vector of HasPtrs. Give that vector // some element and then sort the vector. std::vector<HasPtr> vecHP; std::string val; while (std::cin >> val) { HasPtr temp(val); vecHP.push_back(temp); } std::sort(vecHP.begin(), vecHP.end()); HasPtr.h bool operator<(const HasPtr& rhs) { return (*this->ps < *rhs.ps); …

Member Avatar for David W
0
267
Member Avatar for saja.omarii.7

heyy all ,, i'm trying to get the middle word of sentence contains 3 words using find and substr.. this is the code : #include <iostream> #include <string> using namespace std; void main() { string sentence; cout << "enter a three-words sentence :"; getline(cin, sentence); string middle = sentence.substr(sentence.find(" ") …

Member Avatar for saja.omarii.7
0
4K
Member Avatar for abey ella

I have spent 3 days trying to get two new functions - GetText() and PutText() to function correctly with no success. Would someone be kind enough to look over my code and see why they do not work. I must have missed something?

Member Avatar for David W
0
122
Member Avatar for Elixir42

Hi, When I initialise then access the `g_spMyLog` shared pointer, from within the `CSingleton::CreateLog` member function, it works ok. Accessing the SP from the static member function of `CSingleton::Create()` causes an `access violation` in the original project and an abort in this sample project displayed below. In the original project …

Member Avatar for Elixir42
0
531
Member Avatar for butterfingerss

I am using Qt5.2.1 and I made a program that stores some data into a file and then reads the data. it stores some variables values. After I restart my program... I want to read those values and re-store the values of those variables... How can I do this? I …

Member Avatar for Moschops
0
2K
Member Avatar for daniel1977

I have a question. I am trying to sere into my brain how pointers work and just when I think I got it a new problem arises. So I think I understand pointers pretty good when working with primitives and such. Now I am trying to understand working with objects …

Member Avatar for sepp2k
0
134
Member Avatar for amt_muk

Hi friends, In Windows if we create an exe with MSVC6.0 a corresponding ".lib" file is generated. This file can be used for accessing (linking) the classes defined within that exe from some outside libraries (dll). Now in unix platform (ie, Red Hat Linux), how can we use that technique. …

Member Avatar for Ancient Dragon
0
119
Member Avatar for 21334929

is it possible to create an online database using c# with a specific plug-in?

Member Avatar for narek.arzumanyan.129
0
118
Member Avatar for oppu.qhar

write a c++ program that print (x,z,T,N) on the form of (*) by usin for loop

Member Avatar for David W
0
158
Member Avatar for johnykf

hello guyz im afraid if i understood this assignment unproperly: could you give me the output of it plz? (how should the output of this assign be) The monthly results for the best 3 employees of the month in a company are sent to the IT department for analysis and …

Member Avatar for David W
0
195
Member Avatar for claush@dut

in the programming world which of the two languages is prefferable in software development ?

Member Avatar for cxzei
0
159
Member Avatar for G.TEJAREDDY

I am new to this and i need an example programs for copy constructor and nesting classes

Member Avatar for panqnik
0
119
Member Avatar for mystycs

How can i make it so that my input only allows either the char a or b. Basically this is what i have now. cout << "Enter either a or b: "; char ab; cin >> ab; cout << ab; But in the event someone enters something other than a …

Member Avatar for mystycs
0
101
Member Avatar for johnas.delacruz

Is there a data type that can allow a user to input a 25 digit number... because the largest data type for numbers that i know is long long int and uintmax_t which can only store 18 numbers (i'm not sure about this)... because my problem should allow a user …

Member Avatar for David W
0
471
Member Avatar for rain27

Need Help.. how to write a program that puts the integer from 1 to N into each circle separately, in such a way that the sum of the numbers in any two adjacent circle is a prime number?? input: the input to the program is a positive, non-zero even integer …

Member Avatar for David W
0
88
Member Avatar for sandeepxd

i want c++ code for a simple window with a tray icon. If i right click the tray icon it should show a context menu containing Exit item and if i click it then application should close. thanx in advance

Member Avatar for panqnik
0
98
Member Avatar for butterfingerss

I am using Qt 5.2.1 and I made a program that takes some values and saves them on a text file. What I want is that everybody can see this file and read the content but nobody can edit it. To edit it, you would have to run the program …

Member Avatar for panqnik
0
305
Member Avatar for ashley.vanhoesen.7

Write the definition of a function named copy that reads all the strings remaining to be read in standard input and displays them, one on a line with no other spacing, onto standard output . void copy() { string x; if(cin >> x) { if(cin != '\n') { copy() } …

Member Avatar for NathanOliver
0
1K
Member Avatar for MiniApocalypse

HI guys! Im making a sudoku game. Ive got all the numbers in a 9 by 9 vector. But im unsure how to proceed. How do i work out which blank space (selected by the mouse) corrisponds with which blank space in the vector? I need it to work out …

Member Avatar for WolfPack
0
148
Member Avatar for amitesh11

I got error like syntaxt error in update statment strcmd="update emp set Name='"+txtname.Text+"',where id="+tsxid.Text cmd=new OledbCommand(strcmd,con); cmd.ExecuteNonquery();

Member Avatar for Jan-Willem
0
79

The End.