48,985 Topics

Member Avatar for
Member Avatar for shrutinr

Hiii.. I m having doubt on how to use the ncWrite API of NI-MAX... I need to pass voltage ,and temperature values into CAN bus.. I m getting those values through my VC++project... I know onlyt this: NCTYPE_STATUS ncWrite( NCTYPE_OBJH ObjHandle, NCTYPE_UINT32 DataSize, NCTYPE_ANY_P DataPtr); Please help me ...

Member Avatar for jonsca
0
192
Member Avatar for bandit711

How can i change this code to get a output like this: This Program Average grades and output the average and letter grade Quiz1 Quiz2 Quiz3 Quiz4 Average Grade s1 70 80 90 95 83.75 B s2 95 85 90 80 87.5 B s3 75 85 70 80 77.5 C …

Member Avatar for chiwawa10
0
101
Member Avatar for inisca

Hello all I have a problem.I am trying to convert 'System:tring ^' to 'const char *' but i don`t know how. can some one please help me? I use VC++ 2005 I need to open files with extension .wav my code is: [CODE] public:System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { OpenFileDialog …

Member Avatar for jonsca
0
132
Member Avatar for bandit711

Having problem set code up for five rows and 4 column. Any ideas have too do it the code, i am currently using: [CODE] cout << setfill(' ') <<setiosflags(ios::left) << setw(11) << "Student" << setw(10) << "Quiz1" << setw(8) << "Quiz2" << setw(8) << "Quiz3" << setw(8) << "Quiz4" << …

Member Avatar for bandit711
0
169
Member Avatar for tr6699

I have dynamically created a 2d bool array and was wondering if i could create a pointer that points to the second column of the array.

Member Avatar for Ancient Dragon
0
96
Member Avatar for s0lidjacks0n

I have three files that I need to link using a makefile but I continuously get undefined function errors and I cannot figure out why Makefile[CODE]# sectool.make CC = g++ CFLAGS = -c all: sectool sectool: Transposition.o Substitution.o System.o ${CC} -o sectool Transposition.o Substitution.o System.o System.o: System.cpp Transposition.cpp Substitution.cpp Substitution.h …

Member Avatar for mcriscolo
0
82
Member Avatar for laudaisoi

Hello everybody ! I'm a novice , and already started learn C++ . I try sorting string alphabetically from a text file . This is my code [CODE]#include <iostream> #include <fstream> using namespace std; // Quick Sort function void quickSort(char A[][15], int lower, int upper){ if (lower>=upper) return ; // …

Member Avatar for laudaisoi
0
937
Member Avatar for mbrinkley

Hello. I am in a beginning C++ programming course in which we have just finished loops. I have been asked to plan, code, and execute a program to do the following things: Ask the user for the file name, then calculate an average of the numbers and display two lists …

Member Avatar for Ancient Dragon
0
117
Member Avatar for akashnemani

Hi, I am trying to create a service for my windows application. The service would just call an application if it detects a USB device inserted on the computer. I want to register for device change notification to receive all the usb device event messages. In order to register for …

0
90
Member Avatar for hlmjohnson1981

Create a scholarship program that will choose a recipient based on the highest GPA using the following features. Create a class of type student . - Members will include: name, GPA, Rank (year) - Make sure all data is private and a ll functions are public. - Write member functions …

Member Avatar for hlmjohnson1981
0
100
Member Avatar for K0ns3rv

Hey guys. So i've created a static library project and written the code ( one header file and one cpp file ). I have built it and it resulted in (.a) file. I told the compiler where to look for the header file and the library file but my example …

Member Avatar for kay25
0
162
Member Avatar for J.Killa

In my program, I have to input a word and then a character. The program will tell me how many times does the character appear in the word...my problem is that I have to find this character with the find(str,ind)...I know the ind is the index and can be manipulated …

Member Avatar for J.Killa
0
243
Member Avatar for bandit711

Every time i compile this code i come up with a additional set of numbers, but i don't know why. [CODE] #include <iostream> #include <stdlib.h> #include <iomanip> #include <string> #include <fstream> using namespace std; void calculateAverage(double quiz1, double quiz2, double quiz3, double test4, double& SAverage); int calculateGrade(double grade); int main() …

Member Avatar for bandit711
0
162
Member Avatar for MoZo1

Hi! I have a windows mobile 5 device, and I would like to make some programs for it. I need a free development environment (compiler and librarys) that runs on winxp. It would be a very big help if I could use my NetBeans which I have experience with. It …

Member Avatar for MoZo1
0
96
Member Avatar for vbx_wx

[CODE] void open_key(HKEY* Key , HKEY key , LPCTSTR subkey) { cout << Key[1] << endl; RegOpenKeyEx(Key[1] , subkey , 0 , KEY_ENUMERATE_SUB_KEYS | KEY_QUERY_VALUE , &key); } int main() { HKEY keys[] = {HKEY_CLASSES_ROOT , HKEY_CURRENT_USER , HKEY_LOCAL_MACHINE , HKEY_USERS , HKEY_CURRENT_CONFIG}; open_key(&keys[1] , hkey , "Software"); } [/CODE] …

Member Avatar for vbx_wx
0
68
Member Avatar for rkp728

If there is a pointer member in a class. Eg.: [CODE]Class XYZ { Int *x; Char *c; }[/CODE] Then in such a case what all precautations do we need to take while handling such a member and the class?

Member Avatar for jonsca
0
97
Member Avatar for RayvenHawk

Okay just so you all are aware before reading this, yes this is a homework assignment. No I have no code for it yet and no I don't want you all to solve it for me. Now the reason I'm asking for this kind of help is because I'm in …

Member Avatar for Ancient Dragon
0
94
Member Avatar for DanLB

Hi all - hope you can help me with this. I'm trying to search through a vector of struct's; I'm able to loop through the vector using a simple for() loop, but i'm unable to use the generic find(). Secondly i want to delete a element if there's a match. …

Member Avatar for kay25
0
2K
Member Avatar for Lukezzz

I wonder how it is possible to retreive a string from a function that is generating this string. How is it possible to get the string "SendThis" when presssing the button1 in this case and declare it to getgenerateString ? [code] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { String^ getgenerateString …

Member Avatar for Lukezzz
0
152
Member Avatar for nitgru1123

Hi buddy,, can u jst refer me some links or share sum of ur own experiences about creating a text editor.....dat wut exactly the text editor is all about. I dont bother bout the inferface of it......i jst need how the core looks like....i.e. data structure implementation and all that....hope …

Member Avatar for CppBuilder2006
-2
83
Member Avatar for thileep
Member Avatar for mrbright88

i need help starting this program..........Write a program that finds and outputs the minimum element in an array int A[10]

Member Avatar for CppBuilder2006
-2
83
Member Avatar for JHus00

Hey everyone. I want to call dateConversion and send along the date string which I do with this "dateConversion(dateString);" I want that to print the month day and year. I will have to do it at this line "cout << "on " << date << endl << endl;". When I …

Member Avatar for Nick Evan
0
130
Member Avatar for #define

hello everybody! i have a question that i want to reverse the queue in BigO(1) time and space without effecting its enqueue, dequeue ,print and other function. thnx in advance 4 answering

Member Avatar for Narue
0
80
Member Avatar for Trents

Okay, so I am EXTREMELY new to programming and my teacher is not exactly a great one, sadly. I am attempting to sort a string alphabetically. For example: Prompt to enter name: Alex Joe John Bill Cait Then sort and print: Alex Bill Cait Joe John Here's what I have …

Member Avatar for invisal
0
145
Member Avatar for empror9

hello guys, i want to programming a simple game. please see these picures first picture: [URL="http://img519.imageshack.us/img519/6323/boardf.jpg"]http://img519.imageshack.us/img519/6323/boardf.jpg[/URL] second picture: [URL="http://img151.imageshack.us/img151/9964/18245360.jpg"]http://img151.imageshack.us/img151/9964/18245360.jpg[/URL] last picture: [URL="http://img25.imageshack.us/img25/3871/21456530.jpg"]http://img25.imageshack.us/img25/3871/21456530.jpg[/URL] "Jump over a token and capture the token. Every move must be a jump! Only horizontal and vertical moves are allowed, no diagonal movement in the game. The …

Member Avatar for Salem
0
116
Member Avatar for vskumar19

I m designing scientific calculator in vc++ technology I used an edit box for the text to appear and some buttons for the operators and numbers I enter 1st operand by clicking the button and then the operator.Now I want to clear the edit box to enter the second operand …

Member Avatar for Salem
0
103
Member Avatar for einas

Write a class datetype it can perform the following operations on a date , in addition to the operation already defined : 1-set the month 2-set the day 3-set the year 4-return the month 5-return the day 6-return the year 7-test the year is a leap year 8-return the number …

Member Avatar for einas
0
160
Member Avatar for Lukezzz

I have a little spoky problem here. I really cant understand what it is. I am reading a file that is completely empty. But still the second MessageBox is showing this string: "22" I cant wrap my head around why if( line != "" ) is executing and no character …

Member Avatar for Lukezzz
0
106
Member Avatar for empror9

hello guys, i have a simple question which is how can i declare a variable to accept character and number at one time for example, i ask the user to input 'a1' to do something waiting for you

Member Avatar for empror9
0
196

The End.