49,761 Topics

Member Avatar for
Member Avatar for Zssffssz

Well I want to make a DLL but all of the tutorials online seem to focus tword GUI programing or go a little too fast. Can anyone explain it? As far as I have seen it's syntax resembles resource files. And what makes it a '[I]Dynamic[/I] Link Libray' as in …

Member Avatar for mike_2000_17
0
321
Member Avatar for Zssffssz

I already know how to call a program an make it run inside of my program (with no communication between the two). But I need a way too call a separate program from mine and have it run separately. I looked into the CreateProsses thing but it seems to be …

Member Avatar for Ancient Dragon
0
186
Member Avatar for yurigagarin

I tried to scan a text file ( contains decimal numbers) and save all the numbers into 1 array input1[50]. When I ran the code, the printout is always 1.0000 eventhough my text file have a bunch of numbers. Could somebody point out where I did wrong? Thank you. [CODE]VOID …

Member Avatar for yurigagarin
0
257
Member Avatar for RisTar

I don't tend to use Arrays when programming in C++ because I think that vectors are a lot easier to use. The problem is that now I have to use arrays. I'm creating a game using SDL. I'm trying to create the artwork in code using pixels on the screen. …

Member Avatar for RisTar
0
165
Member Avatar for xxunknown321

How do i get my program to read the last ten lines of the ".txt" file? Can you please dumb it down as much as possible. Here is what i have so far: // reading a text file #include <iostream> #include <fstream> #include <string> using namespace std; int main () …

Member Avatar for usustarr
0
8K
Member Avatar for usustarr

Hi, I need to search for a key word in last n/100 lines of a text file. Here is the code i have so far. This search whole file & that is an issue. This is not a home work question, please help. [ICODE] ifstream readFile(fileName);//read the file while( readFile …

Member Avatar for usustarr
0
192
Member Avatar for skylinedrifter

Hey1 fox so last weekend my friend asked if i could help her on her Comp Sci project, Little did she know im not a programming genius. So i've come to the one and only Daniweb for help... here's what she's supposed to do.. Write a C++ program by completing …

Member Avatar for frogboy77
0
109
Member Avatar for fsefsef23

I'm working on a program that performs insert sorts and selection sorts on an array of 5 unsorted numbers and a sorted array of 5 numbers and counts the comparisons made on each. I'm still learning about Big O notation, so I'm having a hard time figuring out where a …

Member Avatar for fsefsef23
0
3K
Member Avatar for Panathinaikos22

Holla, i use Visual Studio 2010 and as all we know, visual studio dont give any help with C/C++ win32 appis syntax like C#/VB were you type 3-4 words and then a list pop up. Today i downloaded Code::Block, i suprized because it had this feauture with auto-show list with …

Member Avatar for gusano79
0
283
Member Avatar for kreyd

Description of the Problem: In my program, i need to write a program that will determine how many coins of each denomination (1¢, 5¢, 10¢, 25¢, and 50¢) are required to make up a given amount of change. For example, to make 57¢ we could use 1 half dollar, 1 …

Member Avatar for 3bodd
0
280
Member Avatar for Hayzam Sherif

Hey Everone , I Wrote a Program To Enter The info and the given info would be saved to a text file . Here is The Program Itself : [CODE]/* Created By Hayzam Sherif Date : 11/7/11' */ #include <fstream> #include <iostream> #include <cstdlib> using namespace std; int main() { …

Member Avatar for Hayzam Sherif
0
201
Member Avatar for mrnutty

[B]Problem question:[/B] Given the sequence A and B, where A is the inorder traversal value and B is the pre-order traversal value, reconstruct the binary tree that produces such results when performing inorder and pre-order traversal on that binary tree. To reconstruct the binary tree you can simply print the …

Member Avatar for vidit_X
0
349
Member Avatar for babyhuyx

I'm trying to compare a string value, defined by user input, to values in a struct, so it will print out the names associated with that value. [CODE] #include <iostream> #include <string> #include <sstream> using namespace std; #define n_fencers 5 struct Fencer { string name; string weapon; int score; int …

Member Avatar for babyhuyx
0
2K
Member Avatar for janejackson87
Member Avatar for mike_2000_17
0
196
Member Avatar for Arjunah

This is a part of my quiz program in which i ask the user to input question and 4 options and the correct option after which in new funtion i ask the quiz. but although it is asking me "option-1", its skipping the "Ques-" [CODE]int quizquestion() { cout<<"\nQues- "; cin.getline(stmt,100); …

Member Avatar for Narue
0
246
Member Avatar for sasho648

Is there an existing function to add bytes in a file at the current position (not at the end of the file)? Because it's very slow to cut the file on parts and then concrete them (for example if the file is 1GB).

Member Avatar for Narue
0
73
Member Avatar for nndung179

INPUT.txt [CODE] 6 p q r s k m 6 ~p|q ~q|r ~p|~r|s ~r|k ~k|m r m [/CODE] right OUTPUT.txt [CODE] ~p|q,~q|r,~p|~r|s,~r|k,~k|m,r,~m p: Resolve unsuccessfully q: ~p|~r|s,~r|k,~k|m,r,~m,~p|r r: ~k|m,~m,~p|s,k,~p|k s: Resolve unsuccessfully k: ~m,~p|s,m,~p|m m: ~p|s,0,~p TRUE [/CODE] My Program [CODE] #include "stdafx.h" #include <string> #include <fstream> #include <vector> #include …

Member Avatar for MonsieurPointer
0
132
Member Avatar for myk45

Hello all, I am a little confused about .lib and .dll files. I always thought that .lib files refer to a static library and that a .dll is the dynamic library. Recently, i read that .lib files also act as a stub for a .dll and that the .lib files …

Member Avatar for myk45
0
875
Member Avatar for chuyauchi

This program is to enter the scores, get the grades, and display the result. However, I get a [U][B]fatal error LNK1120: 1 unresolved externals[/B][/U] Does anyone know how to solve this problem? [CODE] #include <iostream> #include <iomanip> using namespace std; // Function prototype void letter(double score, double resultNum, char grade); …

Member Avatar for chuyauchi
0
975
Member Avatar for im4tion

Hi. I was wondering if anybody could help me with a small problem. I would like to read a specific line from a txtfile and either output/delete it. Basically, I'm doing a program where a user inputs/view records and i'm stuck at searching it. My txtfile input from user has …

Member Avatar for santakdalai90
1
336
Member Avatar for chuyauchi

I have difficulty to change the following program by using the array. The display need to be like the following: [INDENT]Result 1: 50.00 Grade U Result 2: 95.60 Grade A Result 3: 72.00 Grade B[/INDENT] Can anyone tell me how to do it? Thanks. [CODE] #include <iostream> #include <iomanip> using …

Member Avatar for chuyauchi
0
122
Member Avatar for midgarsorm

Hello I'm using visual studio I need help making a program where a txt file will be read. my program should read all the test scores in the line and will stop when -1 is entered example input file joshua 90 89 -1 michael 76 80 89 -1 Shawn 78 …

Member Avatar for midgarsorm
0
110
Member Avatar for normanallen

I have been using Visual Studio C++ 2010 Express to do some work, which has now succeeded after a lot of trouble. I wanted to go one step further but it seemed that I would need the full 2010 .NET software to achieve this. I downloaded Microsoft Visual Studio 2010, …

Member Avatar for normanallen
0
183
Member Avatar for xfbs

Hello everyone, I have just written some code that measures a system's [URL="http://en.wikipedia.org/wiki/FLOPS"]FLOPS[/URL], but before I wrap it in a class and make a GUI for it, I would like to know what you guys think of it, if you can see any bugs and/or if you got any suggestions …

Member Avatar for vijayan121
0
2K
Member Avatar for grh1107

Hey, Im having trouble writing a function that will take a limited running average from a file. the running average works just fine, its just when i try to limit the input, i just come out to inf. could it possibly be that im using a static double for the …

Member Avatar for vijayan121
0
220
Member Avatar for JNicoleKMC5

Ok, I am def a beginner in writing code (use to be ok, but haven't done it in soooo long, so I am very rusty). Let me give a little background about the program I am trying to write before I get to my question so that it makes a …

Member Avatar for vijayan121
0
169
Member Avatar for Zssffssz

Well simple really: Is there any header, libray, dll, etc. that defines Infenity in any way?

Member Avatar for vijayan121
0
111
Member Avatar for Unethikal

I need help on sorting strings, particularly complicated ones.I had to read in data from a text file Textfile.txt Xiao Wang 135798642 Lucie Chan 122344566 Rich Morlan 123456789 Amir Khan 975312468 Pierre Guertin 533665789 Marie Tye 987654321 I managed to put them into an array using this user-defined function (not …

Member Avatar for raptr_dflo
0
215
Member Avatar for fanfunstar

Anyone can help me with this algorithm? 1 set up stack in and print it 2 while stack in is not empty repeat 2.1 max = in.pop 2.2 while there are still element in stack in repeat 2.2.1 value = in.pop 2.2.2 if value > max 2.2.2.1 temp.push(max) 2.2.2.2 max …

Member Avatar for raptr_dflo
0
2K
Member Avatar for dolfan55aj

I'm trying to do an analysis of buildHeap vs. inserting an array of n values one at a time into a heap. I have a random case, best, and worst case. I was wondering if anyone knows what would actually be in an array to make the best and worst …

Member Avatar for raptr_dflo
0
376

The End.