49,761 Topics

Member Avatar for
Member Avatar for tarheelfan_08

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 …

Member Avatar for tarheelfan_08
0
150
Member Avatar for colmcy1

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 …

Member Avatar for UncleLeroy
0
102
Member Avatar for theABCasian

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 …

Member Avatar for theABCasian
0
68
Member Avatar for Hidden_mistakes

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) …

Member Avatar for Tigran
0
121
Member Avatar for walter clark

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 …

0
54
Member Avatar for 1manik

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[]) { …

0
40
Member Avatar for Annettest

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 …

Member Avatar for Annettest
0
263
Member Avatar for cppnewb

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 …

Member Avatar for cppnewb
0
78
Member Avatar for tehmarto

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. …

Member Avatar for tehmarto
0
787
Member Avatar for ilyaz

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 …

0
58
Member Avatar for bperiod

[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++)

Member Avatar for Fbody
0
821
Member Avatar for ilyaz

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, …

Member Avatar for ilyaz
0
110
Member Avatar for letmec

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 …

Member Avatar for Fbody
0
397
Member Avatar for goulda660

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 …

Member Avatar for goulda660
0
175
Member Avatar for Dinglish

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 …

Member Avatar for Dinglish
0
71
Member Avatar for replax

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(); …

Member Avatar for mattjbond
0
232
Member Avatar for byrnnryb

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 …

Member Avatar for byrnnryb
0
189
Member Avatar for inisca

[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 …

Member Avatar for kvprajapati
0
197
Member Avatar for MeetMak

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 …

Member Avatar for kvprajapati
0
147
Member Avatar for kayka

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 …

Member Avatar for rinku2142
0
97
Member Avatar for chinnaedu

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 …

Member Avatar for rinku2142
0
160
Member Avatar for blaisemcrowly

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] …

Member Avatar for blaisemcrowly
0
87
Member Avatar for pistol-pete

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 …

Member Avatar for pecet
0
140
Member Avatar for ravens1

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 …

Member Avatar for rinku2142
0
116
Member Avatar for Hidden_mistakes

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. …

Member Avatar for Hidden_mistakes
0
72
Member Avatar for janice777

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 …

Member Avatar for Salem
0
114
Member Avatar for coder19

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 …

Member Avatar for Ancient Dragon
0
43
Member Avatar for polawyz

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 …

Member Avatar for caut_baia
0
760
Member Avatar for pok.kys90

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 …

Member Avatar for pok.kys90
0
201
Member Avatar for ahmed.123

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 …

Member Avatar for ahmed.123
0
90

The End.