48,986 Topics

Member Avatar for
Member Avatar for freesoft_2000

Hi everyone, i need some guidance or help if possible help with running a program in c++. I am currently using this statement to run any external program in c++. WinExec("C:\gui.exe", SW_SHOW); The above command compiles ok but the external program is not executed. There seems nothing wrong with my …

Member Avatar for Chainsaw
0
159
Member Avatar for a_68000

I need to finish my assignment but i seem to have several problem and i stuck. Below is the assignment question and also the source code that i wrote Question Write an interactive C++ program that will encode or decode a line of text. To encode a line of text, …

Member Avatar for Chainsaw
0
148
Member Avatar for SorCerer

I am looking for an arp sender written in c++ with no deps (no libpcap or libnet). I am working now at some raw sockets code, but i get all sort of errors in the sendto(), even with the IP_HDRINCL option set. The code is ok, it sends TCP and …

Member Avatar for SorCerer
1
1K
Member Avatar for tahataha

i just ve started with c++ but i ve an idea about c and oop i wanna learn more about graphic library in c++ i ask for any advice or help thanks

1
80
Member Avatar for Naveen

i have created 3 matrices: 1) Connection Mtrx 2) Metric Mtrx 3) Ans Mtrx. here from connection mtrx, seeing starting node,i update the ans mtrx which will hold the sequence of node traversal. how do i code to achieve this? the code problem is coming in function bf(). #include<iostream.h> #include<conio.h> …

Member Avatar for freesoft_2000
0
147
Member Avatar for andremc

i'm trying to create a chained hash table using a linked list header file, but there's a problem with my insert function. here's the relevant portion. the error comes in the part that is in red. compiler says "parse error before '.' " i've used the linked list header before, …

Member Avatar for Chainsaw
0
140
Member Avatar for biel_andrada

Hi! I need help with the find function! I do not know how to use it in finding numbers. For instance: 1 1 1 1 2 3 4 4 5 5 6 6 6 7 7 7 7 Using the find function, it will count the number of times a …

Member Avatar for meabed
0
137
Member Avatar for Naveen

Hi guys. Check out this tut on the web. [url]http://guideme.itgo.com/atozofc/[/url] good help with programming in c and dos. its a free ebook with individual files for each chapter. around 70 files. too good to miss. hope u like it.

Member Avatar for FireNet
1
269
Member Avatar for heidi

this is some of my code, could you work out how i am suppose to do this? /*from main.cpp*/ student.read(cin); student.print(cout) << endl; ----------------------------- /*from student.cpp*/ const char * Student::getStudents() const{ string tmp; tmp = getStudentName(); tmp += ": "; tmp += getStudentID(); return (const char *) tmp.c_str(); } ostream& …

Member Avatar for basementcoder
0
114
Member Avatar for Maineboy

I am new to coding and I am trying to display a league table of football teams in a memo box using C++Builder. The code below prints a list of the team names from an array of 12 teams, but I cannot get the rest of the details i.e. games …

Member Avatar for Maineboy
0
191
Member Avatar for Msh84281

// This program will write the name, address, telephone number // and college major of the programmer. // Michael Hawkinberry #include <iostream> using namespace std; int main() { cout << " Michael Hawkinberry\n6393 Harlem-Grovetown Road, Harlem, Georgia, 30814\n(706) 556-3731\nComputer Science " << endl; return 0; } Is this program error …

Member Avatar for Dave Sinkula
0
268
Member Avatar for ellisrn

Hi, I'm trying to run this short code and when it prints out i get about 20 of these "pow: DOMAIN error" messages, and then my results. Can anyone shed any light on this. I'm not acutally a programer, but got thrust into this in a project for another class, …

Member Avatar for Dave Sinkula
0
2K
Member Avatar for bruseyboy

Hi Is it possible to write a c++ program that sets up a pointer at the start of an array on the heap, and the pointer holds the address of the start of the code. ie something like--- int *pointstart[5]; pointstart = new (codestart, 0,0,0.0); 1nt main() { codestart:; // …

0
104
Member Avatar for diablo

Can anyone tell me how to catch an exception thrown by dynamic_cast , typeid and new in C++ ?:sad:

Member Avatar for meabed
0
68
Member Avatar for crazybitez

Hi, I want to implement as search program which will be able to search through a given set of documents for a given string...I've heard that indexed searches are the best bet in these cases...(if anyone knows of something better i would appreciate it..)..now if i have a set of …

Member Avatar for meabed
0
158
Member Avatar for scarface_qwerty

i want to make a bouncing ball program with 10 ball. the problem is that every ball has his own delay. i'm stuck in here. :confused: if u know the solution please help me

Member Avatar for crazybitez
0
92
Member Avatar for lordofthisworld

i'm new to programming in c++ and have been confuzzled by this for two days: the following code was meant to create a new class ("character") and enter into it information entered by the user such as name etc. the problem is that whenever i enter something (at one of …

Member Avatar for diablo
0
146
Member Avatar for .·)Tusky(·.

I'm using the Window Console to create a excerice out of a book for beginers. First it's coded to ask for a number, then after you press the enter key it tells you the results, in about 2 seconds it just closes the Window Console. How can I prevent the …

Member Avatar for diablo
0
167
Member Avatar for PViper

Hi, I'm trying to write a program(beginner level) to read a text file line by line and compare each character with one in my code. So far I have read the lines from the file: #include <string> #include <iostream> #include <fstream> #include <vector> using namespace std; int main() { vector<string> …

Member Avatar for PViper
0
148
Member Avatar for Sukhbir

Look the following code: struct emp { CASE :1 struct emp p; //ERROR CASE :2 struct emp *k; //IT WILL WORK }; WHY IT IS WORKING IN CASE :2 and not in CASE :2. TELL me with explanation

Member Avatar for Chainsaw
0
177
Member Avatar for rahulr

:cheesy: hi i've just joined.i began c++ a month ago.i'm havin problems regarding a problem involving 2-d arrays.here it is print x x x x x x x x x

0
64
Member Avatar for sirflex

Hello Everyone, I am very new to C++ and have a program due this Wednesday. I would appreciate any help on this. I have written the pseudocode for the program but do not know if it is correct or how to write the actual code for it. ------------------------- The program …

0
68
Member Avatar for nesbel

Hello all: How can I capture events generated in an instance of TCppWebBrowser created at runtime? Another question: how can I know which TCppWebBrowser is the sender if I have more than one in my application. Thanks

0
72
Member Avatar for nirvedacharya

Hello there, I want to create my own Devanagari (the lingual script of India) keyboard program, to do this I want SOURCE CODE SAMPLE(S). can you help me for this work? (Please be sure I do not want any ready-made program available in market, because I want to create new …

Member Avatar for FireNet
0
58
Member Avatar for .·)Tusky(·.

I'm new to C++ and I'm studying out of a book (Game Programming - All In One, 2002) From what I've seen from other programs it's sort of out of date. Can someone tel me what's wrong with this? -Error C2734: 'Value' : const object must be initialized if not …

Member Avatar for FireNet
0
482
Member Avatar for Marilyn_Manson

Can someone explane to me how prefixs and postfixs are used and how they work. :o

Member Avatar for Dani
0
167
Member Avatar for .·)Tusky(·.

Hello Random People, I'm new to C++, and I have some questions for all you'all. The first subject I'd like to talk about is Unary Operators. They give me a sample problem in the book. (The book is was published about 2 years ago) Sample Problem: int Result, A, B; …

Member Avatar for .·)Tusky(·.
0
153
Member Avatar for coolice

Hi ! I would like to ask your help. Since days, I am reading fstream tutorial in tutorials section as I am trying to put together 3routines: 1., Can write a structure to a file. (ButtonClick1) 2., Can tell how many records in the file (ButtonClick2) 3, Can read back …

Member Avatar for Dave Sinkula
0
595
Member Avatar for philip

Hello, First I will tell theth I new in c++! I' have a problem with converting the file Input Stream. I read a single character from the stream of the curent position of the file.In one case I set the hex flag; in another case I read from the stream …

0
79
Member Avatar for psk

Hi all, can anyone tell me whether ifs function is a member function of ifstream. in the statements below the ifs has been used like ........ ifstream ifs( g_pSystemEnvironment->GetTotAlmCountFileName() ); ifs >> m_nNoOfTotalAlarm; i am not able to understand the code. could anyone help me out of it. Thanx in …

Member Avatar for Dave Sinkula
0
196

The End.