49,761 Topics
| |
Hey guys, I have been looking into queue's and stacks this week guys and I decided that I would like to convert my current array into a stack. Does anyone know how to or can give me some assistance with the current code I have?? I really do not even … | |
Hey all, i would really appreciate some help with abit of code i'm stuck on. I am trying to read data from text files in this way: 1. Open text file 2. Read in the first line from the text file that doesnt start with "/" 3. change this char … | |
Hey all ok so the issue seems to be at line 45 it seems to be making a loop from the output betting im just doing something wrong with exceptions, sense im just learning them. thanks in advance [CODE] /* File Name: Demo.cpp Chapter No. 16 - Exercise No. 2 … | |
I am trying to move a player in direction angle by speed. I need to use trigonometric functions in order to calculate this. Can anyone help me discover how to do this? [code]if (playerB.up == true) { (playerB.speed)+=((Delta*ballspeed)/1000); } if (playerB.down == true) { (playerB.speed)-=((Delta*ballspeed)/1000); } if (playerB.left == true) … | |
I have done image processing for years. This is code development not deliverable. (I turn the code over to others and they make it run on a hardware processor.) Development has always been done by me reading thousands of images as separate files on the hard disk. In the last … | |
Hi, I want to ask you, how can I do that this program will be finished by pressing of enter? Please help me. I tried it and it is writted in this program, but no effect. THANKS [CODE] #include "SDL/GUI.h" #include <stdio.h> #include <windows.h> int main(int argc, char* args[]) { … | |
Hello everyone: I'm having a problem with vector indexing. The following code results in a segmentation fault: [CODE] for (int i = 0; i < (rows * rows); i++) { temperature[(i * rows) + (rows - 1)] = 0; }[/CODE] And: [CODE] for (int i = 0; i < (rows … | |
Hello everyone! I havnt posted in awhile, but I am working on a new project and have hit a speed bump. I was wondering if there is a way to transfer HTML form data to a C++ program. What I mean by that is, the user enters data into the … | |
Hi all This is the file i wanna write a program for [url]http://www.mediafire.com/?vzrz1ymnmlq[/url] . It contains a database with a game's "spells", the damage they do, they're icon and other useful info i wanna see. I wanna get this file in an sql executable format and into my sql database. … | |
I have a command-line exe that, when invoked from a console window works normally, i.e. when given an input file, produces a good output file. When I invoke the same tool using CreateProcess() from a VC++ 6.0 module, it does not generate the output file. The exe itself has no … | |
[Linker error] undefined reference to `__cpu_features_init' comes to [CODE]#include <stdio.h> int main(){ char c; printf("Hello World!"); scanf("%c", &c); } [/CODE] I don't think that it's code problem. What can I do? (Dev C++ newest version) (I tried reinstalling DEV C++) | |
This is VC++ 6.0 code running on a Windows Server 2003 SP2 machine. 1. I launch an external exe from my code using CreateProcess() 2. This process creates a file on disk 3. I do rc = WaitForSingleObject(procInfo.hProcess,INFINITE); 4. rc is returned as WAIT_OBJECT_0 5. int result = _stat( strDestFile, … | |
Hello to all of you I have been using Turbo C++ for last 6 mounths and do all my graphics very fine. But when i started using Vc++, graphics.h was not including there. Can any one of u tell me to how to start graphics programming in Vc++ using same … | |
My program keeps giving my undefined references to my vectors and items in namespace fun class driver and i cannot change it I really need help I'm a pretty big noob at programming [CODE] /* * Austin Gould * * main.cpp * main to drivers in fun in the sun … | |
I began teaching myself programming 3 weeks ago. Its hard (for me) i'm trying to include some date validating within a program i am writing. this is what i have so far, but invalid dates are validated unfortunately. eg. November 31 2010 or february 30 2012 have a look and … | |
Hello, i got a problem with identifieng my classes upon its static ID number. Upon creation of each class, it recieves its individual number, the numbers are ascending from 0 to "endless". So now, I want to do a loop like this [code=c++] for(int i = 0; i <= Class::GetMaxIDNumber(); … | |
Hello, I currently have working code to solve a single first order differential equation using a predictor-corrector. I need to modify this to solve a system of first order differential equations. Here is the system I need to solve: y'' = -y' + 6y; y(0)=1; y'(0)=-2, on [0,4] And here … | |
[CODE] OpenFileDialog dlg; richTextBox1->Text=dlg.FileNames; [/CODE] Can someone tell me what am I doing wrong? I get the following errors cannot convert parameter 1 from 'cli::array<Type,dimension> ^' to 'System::String ^' I want to multiselect files and then print their names intoo richTextBox1. I know that richTextBox1>Text is System::String^ and dlg.FileNames is … | |
Hey, I have a VC++ DLL, which returns the sum of two long double values, passed as one dimensional array? could anybody please tell the right syntax to pass array to this dll from vb.net currently, my code snippet is as follows: [B]DllClass.vb[/B] [code=vb] Imports System Imports System.Collections.Generic Imports System.Text … | |
Program Exercise 3. Your teacher at your school requires your help in grading a True/False test. The test answers is stored in a file called Answers.txt. The student responses are stored in a file called Reponses.txt and has the following layout: 999999999 FTFTFTFTFTFTFTFTFTFT The Answers.txt layout is: FFTFTFTFTFTFTFTFTFTFT Write a … | |
Hello all, i am in need of developing an application (writing a C/c++ code ) to Run an application(say for example a vlc player or any as such) from the Code and get its process ID and perform certain manipulation and then kill it ..... i want the application to … | |
Hi Basically i am trying to read a file and insert a specific string at a position. but it seems that the entire process freezes and the program runs out of control. [CODE] fstream shot; char mess[240]; shot.open("file.vix"); while(!shot.eof()) { shot.getline("mess",240); if(strcmp(mess,"<DEPT>)==0) { shot<<"< ANNOUNCED >\n"; //TROUBLE } } [/CODE] … | |
I have to create a class with a default and alt constructor to fill an inventory array of seven elements. Only one dimentional first error is a 1>e:\invclass\invclass.cpp\invclass.cpp\invclass.cpp(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int here is my class code why won't … | |
I am having trouble with an array. I have to enter some food items and their calorie values and then when finished I have to re enter the food item and then search the array to output their calorie values. My problem is how do I search an array. here … | |
I am trying to get my racing game to recognise when two images have hit eachother when this happens I then want the game to display "Player 1 or 2 wins" and then quit the game. My code is very long so i will not post unless i need to. … | |
basically a func named getString is supposed to ask user to enter a sentence, store sentence in the array, dynamically allocate a char array big enough to hold the sentence plus null terminator. then it should copy the sentence to the dynamically allocated array then return the pointer to the … | |
hey guys i need an help to do the following : I am trying to compare the words in the array to the words in the text file. And if the word in the text file matches the word in the array it should be given a higher value and … | |
Hi my professor for an entry level C++ class recently assigned us a homework problem, but hasn't quite taught us how to approach this problem. The problem asks us to create a working C++ program that has a class called [ICODE]Fractions[/ICODE] that has two int data members called numerator and … | |
Problem Statement: Consider a collection of songs in an MP-3 library where each song is characterized by artistName, songTitle, albumName, playTime (in seconds), musicCategory, and albumProducer – hence, you will need to use a struct data type to hold a song and an array of structs to hold the song … | |
hello n is 10 numbers 10 50 25 75 2000 30 500 800 10 25 485 p.s var[i] is the variable contains all above numbers for example if the user enters 25 how do i print out how many times number 25 was enterd not in which index it is … |
The End.