51,593 Topics
![]() | |
Good evening; I am having a final exam next week and I'm having an issue with this program. the program should user receive from the user 6 marks for each one of four students and then compute the average and finally show the index of the student who has the … | |
Hi there, I'm new to c++ and im trying to do a project, wich is a letter soup game (its like a word search in a square with loads of other letters). So far now I have a letter (A-Z) randomizer, wich will put them in an array[l][w] (choosen by … | |
Hi, i would like to make program, that saves sent emails to hd. Actually i cant find anything usefull how to do this. At first i am not interested in email clients ,but web based mail. When i send email, befor it is encrypted with ssl, i need to catch … | |
Hi, i've have just created my first program in visual c++ 2008 express edition and i'd like to know, if I can create an exe file to make this program run independently from visual studio. thanks | |
Hi guys hope ur are all well! I have a program im trying to finish and its not going well. I am quite new to C++ and am not the greatest. I have code that ill post, but the problem is when i run the program with the readfile(); function … | |
Hi,I am new with this forum even if I have been programming in c,c++ for a while. I have never realized any DLL file and I'd like to start now. I think I have basically understood the concepts that stay behind a DLL realization but I still can't make one … | |
In my code i have written: [CODE] std::ifstream stm; stm.str("str100"); double d; stm >> d; [/CODE] and an error comes up saying that: [CODE] 'str' : is not a member of 'std::basic_ifstream<_Elem,_Traits>' with [ _Elem=char, _Traits=std::char_traits<char> ] [/CODE] What should i do? | |
In my code i have written: [CODE] std::ifstream stm; stm.str("str100"); double d; stm >> d; [/CODE] and an error comes up saying that: [CODE] 'str' : is not a member of 'std::basic_ifstream<_Elem,_Traits>' with [ _Elem=char, _Traits=std::char_traits<char> ] [/CODE] What should i do? | |
hi all, the following code is for a SLR parser... after compiling i got some strange errors - could someone pls take a look, or try compiling it... tnx alot [CODE]#include<iostream> #include<conio.h> #include<string.h> #include<process.h> #include<stdio.h> char in[30]; char T[]={"i+*()$E"}; char prod[4][5]={"EE+E","EE*E","E(E)","Ei"}; char M[10][8]={"sbbsbbg","bssbbab","sbbsbbg", //matrix to store shift, "brrbrrb","sbbsbbg","sbbsbbg", //reduce,error and … | |
Please, help me! I am a student in Technical University in Plovdiv, Bulgaria. I must finish my graduation work very soon. For the purpose I must create trigger(actually a few triggers) at run time. For my graduation work I use Borland C++ Builder 6. I use BDE palette. I try … | |
I've got two member functions: [code=c] //Particle.h class Particle { public: bool isDead()const; static bool isDead(const Particle & par); }; //Particle.cpp bool Particle::isDead()const { return(xPos<=0 || xPos>=SCREEN_WIDTH || yPos<=0 || yPos>=GRASS_HEIGHT); } bool Particle::isDead(const Particle & par) { return(par.xPos<=0 || par.xPos>=SCREEN_WIDTH || par.yPos<=0 || par.yPos>=GRASS_HEIGHT); } [/code] But when a … | |
hi every one, I am making KBC game in C++. To store questions and its options in a file, I am unable to write successfully the character string of question in the file due to spaces between question. So,can anyone tell me how to write a character string having spaces … | |
I program with Visual C++ 2002 (MFC Application ) I put a Edit Control on dialog and write some code in EN_UPDATE Event to run only i edit this control and press ENTER key but when i press any key in this EDIT Control, event occurred and my code is … | |
Hello, I have a question on how to use a class similar to the Grid Class included in the Lawerence Press textbook on C++. The question is, do I have to have the InitGrid function in every paint or no? | |
Having trouble with my massively massive program. It compiles but fails to execute. [QUOTE]The instruction at "0x00471a6a" referenced memory at "0x00000114". The memory could not be "read".[/QUOTE] Here's my program. (IF YOU HAVE ANY SOLUTION FOR THE VARIABLES IT WOULD BE APPRETIATED!!!) the cpp is attached | |
Hi all I had been working on a project and there is a need for me to accept user inputed parameters from the OS shell like the kind we give: ls -a or dir /a where -a and /a are parameter, I want to basically accept a string from the … | |
write a program that displays mid exam, final exam,average,min,max and name of 100 students.(using arrays) | |
I got the whole static binding and dynamic binding on runtime if a function is declared virtual in the base class, but if you do something like this... [code] class base { public: void print() { cout << "base" << endl; } }; class derived : public base { public: … | |
How can I declare a separate function which will be called in case of Run-Time Error to prevent program crash ? | |
Hey there, So I've looked everywhere for help with my assignment until finally I found this useful service. I'm a C++ beginner and so far the problem solving and coding have fulfilled all expectations. If there is anyone to offer suggestions for my assignment, that'd be amazing! What it is … | |
Hey, I'm new to C++, and looking for a way to split a string like you do in C#. [CODE] using System; class Program { static void Main() { string s = "@This@Is@My@String@"; string[] words = s.Split("@"); foreach (string word in words) { Console.WriteLine(word); } } } [/CODE] A GetBetween … ![]() | |
Hi Everyone, I'm doing this assignment and i'm stuck. I'm getting junk for my area calculations. any help would be appreciated. heres my code. CPP file [code] // Ass2.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <cmath> #include "BasicShape.h" #include "Circle.h" #include … | |
ok if i wanted to create something how would i say if (button"f") { } do yatta yatta if i wanted to do that how would i... probaly a really STUPID;) quesion but here it is | |
[code=c] #include<iostream> #include<conio.h> #include<time.h> #include<windows.h> #include<math.h> #include <string.h> #include <sstream> using namespace std; int main() { int result = 1; float checker; //Holds the full array char char_holder; int loop = 0; float checker2 = 0; //gets the letter float checker3 = 0; //Holds the previous array int counter; int … | |
![]() | Hey guys I've got a similar post on here but the previous one i didn't actually get any help this has to be handed in today and I'm stuck. The situation is this: - Read a text file into an array (most likely a struct array // which i can … ![]() |
hi everyone. i have a problem with my c++ program that i am making for my assignment. This is an ISBN asignment and basically The ISBNPrefix module simply reads the ISBN prefix table. This module contains all of the functions that are needed to access the table. Store the function … | |
I am reading in from a text file and storing the data into different string variables which are in my struct. Currently I use an asterisk to separate the info in the text file, and have a garbage string variable that I pass the asterisk into in my struct. I … | |
Hello this is my first post here, i made this search function and i would like some feedback and or tips. (: [CODE] // Implement your own [search]strstr[/search] function. (Intermediate) #include "stdafx.h" #include <iostream> #include <string> using namespace std; class Search { private: int m_nTextL; int m_nSearchL; int m_nResult; bool … | |
Note that I posted this thread earlier, I'm reposting because the issue has evolved some and I have a clearer idea of what the problem is. I'm trying to resolve a segmentation fault that occurs in the traversal of a string array. My code is doing the following: - open … | |
can anyone tell me how can i represent a global function & a ( struct ) in a UML diagram???? | |
HI everyone,,,i am a beginner in c++ & i have an a assignment that i cant even start & i need in advice that i can get so plzzzzzzz help,,, the assignment is about a game [B][U]The Predator‐Prey game [/U][/B]is a simple board game where a set of predators and … | |
I have a string that includes numbers and letters and I want to be able to seperate the string into parts. An example of the string looks like this FAP834E. I want to seperate it so that the first letter is seperate (F), the second and third are together (AP), … | |
I am having an issue with my multimap insert. I have looked high and low for a possible solution to this problem. What I am trying to do is make an dynamic hierarchy data structure that has a root element then child elements under it holding values. I thought using … | |
After searching for how to use inline assembly with Dev-C++ i fig'd i would share my code This takes 2 const chars and swaps them thru inline AT&T assembly The variable booga starts as booga booga and ends up as JMC31337 [CODE] #include <iostream> #include <stdio.h> #include <stdlib.h> using namespace … | |
I am trying to fiqure out this problem for a long time. I am teaching myself C++ from C++ for Dummies and I cant figure this out. Fill in a 2 dimension 3x3 array with odd numbers. The display shows the array as it is being filled. Use random integers … | |
Im trying to create a program that will seperate out a product number like FAP831A-B. each letter and number means something different so I need a code that will divide the product number up. | |
Please recompile the program to run under Solaris. I would like to compare the results with the QNX. [code=c] #include <stdio.h> #include <pthread.h> #include <stdlib.h> #include <stdint.h> #include <sys/neutrino.h> #include <sys/syspage.h> /* for cycles_per_second */ #define COUNT 100000 #define THREADS 128 #define PRIO 255 uint64_t measure[THREADS][COUNT]; int tid[THREADS]; void* src … | |
Hi guys... guess i won't be posting after this for a long time.... could you all please help me out with syntax highlighting in c++ once again. I have made a full featured text editor(please check the snippet C.L.O.S.E) but could you please suggest about syntax highlighting or atleast indentation.. … | |
Hi, I was working on Josephus problem, where I have to make a circular linked list and having errors in it. Will really appreciate if anyone can help me. The following method is in Node Class: void link(int num_people, Node* temp) { int n = num_people; [B]head->next = new Node;[/B] … | |
Hello all! I Have browsed this forum a lot for solutions and have found it very helpful! I am wondering if someone could help me with the OleDB Connection. I am using it to first create a table called imgDBF. I have been succesful in getting my code to create … | |
Hi guys, I am struggling with a problem with MFC.. i think its a small one.. but from my point of view since its bugging me for 2-3 days its starting to get big. So.. the problem is.. I have in MFC 2 dialog boxes. Each dialog box has one … | |
Hello everyone, I am writing a program in Visual C++, using VS 2008. This is what I want: I press a button, which begins an infinite loop, that does something (approximately) once per second until the user tells it to stop. The problem I am having is finding a way … | |
hi every one i'm pretty new to programing so i want ur help. i want to create a program that counts the number of the downloaded bytes form all ur activity over the internet. that is when ever the internet connection is established the program starts to count the bytes … | |
Hi everyone. I am a beginner at C++ and am having some problems with the language. I would appreciate any advice that could be given on this issue. I cannot figure out how to modify variables! Take this for example. Say you have four variables, 1A, 1B, 1C, and 1D. … | |
Hi all. This has been bugging me for hours. I do a simple text book passing of a filehandle to a function and get a bundle of errors. my func : int appendVVmatrix(VVdouble &mat,ofstream& outF){ if (outF.is_open()){ for (int i=0; i<mat[0].size();i++) { for (int j=0; j<mat[0].size();j++) { char num[40]; sprintf(num,"%f",mat[i][j]); … | |
Hi, Ive been trying to calculate standard deviation from the data in my datagridview.I have manage to work out how to get to the last value but would like to display in a chart so i need to have some kind of running total like you have in Excel. For … | |
Please Help me to Solve This Problem.. | |
dear all, Im new in C++ programming. Recently, im doing a login page using Microsoft Visual C++ 2010 Express and Microsoft Access as database. Im trying to connect ODBC to my system but there was a lot of error occur. Can somebody explain me what my problems... [B] This is … | |
Hello again, I will go straight to the point. I have two files one that is called student.dat and the other is called grades.dat . Student.dat has the following items in it : 20092112 Anthony Haykal 20084564 John Doe 20075640 James Bond 20045678 Cynthia Smith 20092134 Jennifer Hajj grades.dat has … | |
Hi everybody, is there a simple way to print a floating point number in its internal representation (i.e. binary or hex) in C(C++)? Yet another question -- is there a linux utility to do the opposite thing with a binary file (i.e. choose a range of bits and convert it … |
The End.