49,761 Topics
| |
I have to write a c++ coding for my assigment... the question is write a program to validate a time.. user neeed to enter hour, minute, and second and the time must be checked either valid or not.. if not valid, the program must show in the correct format.. example... … | |
Hello there everyone before I post my ( probably not elegant) code I Would like to first give the community an idea of what I am doing. I am writing a grade organizer program to where I can store a test, lab, or homework grade respectively. I have finished the … | |
Hello everyone. This is my first post on here so please forgive if there are mistakes. I have been searching the forum and other sites to get some answer, but not luck yet. Below is a program that basically asks for names, ids, alias, etc of agents and then writes … | |
Hey all, I have an array in which the user inputs a series of numbers and when "-1" is entered the program is stopped and the average, max, and min of the numbers entered is displayed. I am able to get the average and max but for some reason the … | |
Hi, Are 2D arrays positioned in memory the same way as normal arrays? ex.: char names[2][5] = {"Dean", "Viky"}; If 'names' is memory location 3000, are the letters necessarily stored like this? 3000 = 'D' 3001 = 'e' 3002 = 'a' 3003 = 'n' 3004 = '\0' 3005 = 'V' … | |
Hi, i've been working on this simple homework assignment and the only thing stopping me from finishing it is passing a c++ variable to a mysql query using mysql_query. I've searched around for about an hour and every potential solution I have found hasn't worked, so I figured maybe if … | |
Hi, I have different variables and I want to have a final variable that represents the concatenation of those variables by taking a specific number of bits from each variable. For example, if I have 3 variables var1, var2 and var3 and I want to take 3, 2 and 1 … | |
Use the program, Passing-by-value, on the bottom of pp. 248–249 and the program, Passing-by-reference, on pp. 255–256 as a starting point for this assignment. Write a similar program, but change the code to pass two variables to the function call rather than one. that's my assignment and i have tried … | |
First time using void functions. Apologies again for the noobish thread. I have a few questions on this problem. 1) Since the variables miles, gallons and milesPerGallon are used in both main and void, do I need to initialize them in each place? Or if they're initialized in main do … | |
Can you tell me how can i increase the font of my output for particular portions of myy program on the output screen in visual studio.net 2003... for example if i want to give a heading or a title in bigger font.. how can i do so??? | |
Hello, I've written a program that mimics a 32-bit MIPS processor. It does a couple of instructions. It works by reading in a Hexadecimal instruction of length 8 and then carrying out the instruction and writing the information to a file. It was working fine earlier but now I get … | |
Hi, I' am required to convert a MATLAB function into C++, and this requires me to find determinate of a matrix. I was told that use of BOOST library would make my job easier. I went through the documentation of BOOST Library, but couldn't find much info about the same. … | |
Hello all, First of all i am a beginner in vc++, so excuse my question if its simple. I was wondering if I could use the data from button1 in button 2 my code is: [CODE] public:System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { OpenFileDialog open; open.Title = "Select Wave File"; open.Multiselect … | |
I have a code that is opening a browserwindow like this: [code] Process::Start("iexplore.exe", "http://www.google.com"); //Open google in a defaultBrowser [/code] I wonder something about this "iexplore.exe". I am not sure what that meens. Does it meen that it Only will open Internet Explorer if that exists on the users computer. … | |
Hi, I want to convert unit32 variable to uint16 variable because I can't read uint16 directly from a file using sscanf. Is that possible? Thank you! | |
I have tried to implement a stack class but i got stupid errors. There is a stupid error i know but i couldnt find it. [CODE]#ifndef STACK_H #define STACK_H /*Manual implementation of Stack class. By this way it will be possible to learn the advantages of Stack data structure over … | |
I have to call some c++ functions in php files. how can i create an extention dll which will work with php. | |
hello to everyone i am new to this stuff so i was wondering if anyone could help me fix this error that i get on a code that is for a payroll assignment. when i build it i get this [B]C4551: function call missing argument list[/B]. would really like the … | |
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 ... | |
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 … | |
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 … | |
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" << … | |
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. | |
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 … | |
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 ; // … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.