19,876 Topics

Member Avatar for
Member Avatar for compshooter

OK, I've been banging my head against a wall for a few hours. And I need some sleep. Can someone please show my how to accept input and keep count of it so I can send WriteBytes2() the address of the buffer and the number of bytes entered? Here is …

Member Avatar for Narue
0
339
Member Avatar for Ghost

Hi Everyone, Is there a way to make your own remote connection program (just for my use - at least fo now)? Something like goToMyPC. Any suggestions would be appreciated. Also, is this easier to do in Java/PHP? Thanks in advanced. PS: If anybody knows of a tutorial, that would …

Member Avatar for Narue
0
50
Member Avatar for arunmisra

i want to start the image processing in c language.but i m unable to load the any image(bmp,jpg,tif etc) in c file. any one can help me? thanking you

Member Avatar for Narue
0
83
Member Avatar for Yandriel

Hello everyone out there, see the thing is that I just built my Tic Tac Toe and I want to add some color to my table, its not an assigment or anything I just want to make my different from the other kids in my class, thanks everyone :) :) …

Member Avatar for Narue
0
146
Member Avatar for alone2005

When I look at some of my old code I got confused. The code is a bit long so I have to paste part of it only. [code] CArray<CVertex*, CVertex* &> setOfVertex; //CVertex is an object contains x,y,z coordinates CVertex *NewVertex=new CVertex(); NewVertex->Set(1,2,3); //add one object into array setOfVertex.Add(NewVertex); //release …

0
104
Member Avatar for SpS

This question was asked to me..plz see [code] #include<stdio.h> void change() { /*Write something in this function so that the output of printf in main function should give 5 . Do not change the main function */ } void main() { int i=5; change(); i=10; printf("%d",i); }[/code] and i answered …

Member Avatar for SpS
0
148
Member Avatar for SpS

[code] char *name; cout<<name; [/code] and [code] char*name; name=new char[20]; cout<<name;[/code] both of these work....then why do i need memory allocation....where does the first code fails

Member Avatar for SpS
0
163
Member Avatar for djbsabkcb

What am I doing wrong I am not getting these values from the input file to even display correctly or sort in order. Give me some direction? [code] #include <iostream> #include <string> #include <cmath> #include <iomanip> #include <fstream> #include <cmath> #include <vector> using namespace std; class CommandLineException { public: CommandLineException(int …

Member Avatar for djbsabkcb
0
149
Member Avatar for vitabrits

Hi guys.. Well ive looked at my lecture notes and well they have examples and they are veryyyyyyyyy basic basically i get the concept but the examples are too simple to understand Something difficult... So i got this question for Tutorial and I basically dont understand of it... I was …

Member Avatar for Drowzee
0
148
Member Avatar for nir_kar

Hello Iam a newbie. I went through some of the binary search implementation codes and was able to understand them. But when i wanted to represent them as tree i was not able to do so, i mean i do not kn ow ho wto proceed. By tree i mean …

Member Avatar for Narue
0
138
Member Avatar for balachandu

hai, i want the basic differences in operation of MICROSOFT WORD document and NOTEPAD. can any one please clarify this>? 2) in one program to select a random number between 0 to 5 i write a function as random(0,5) ? but it is erroaneous as the system always selects 0 …

Member Avatar for SpS
0
118
Member Avatar for h3rtz

hi there! I need help about this machine problem... I need to make a program that deals with PERT\CPM (simulation) . any suggestions what kinda program that is related to this??? I was thinking if a permutation program can be used.... :rolleyes: pleaz help! [RIGHT]-Hr†Z[/RIGHT]

0
79
Member Avatar for plym4444

Hi all I'm new to this site and hoping someone can assist with this problem. I've done all the code for the Tic Tac Toe game but having problems placing the 'o's & 'x's. This is the part of code I'm stuck on. Any help is greatly appreciated. [code]char PLAYER_TURN() …

Member Avatar for Stoned_coder
0
201
Member Avatar for Mahen
Member Avatar for Judas

Hello everyone Is it possible to use a variable for a vector name eg [code] MyVar.push_back(line); [/code]

Member Avatar for Dave Sinkula
0
97
Member Avatar for wdowell84

Hello, noob here. I just started taking a C++ class this semester and I've been understanding everything so far, but I'm sorta confused on the nested if statements. My homework is to have the user enter a number and it'll show the roman numeral. However whenever someone enters an invalid …

Member Avatar for Judas
0
182
Member Avatar for l3.azarmehr

hi guys i want write one program to hide process in windows. but i dont know how... ;) can you help me. i want any sample and source code. thanks

Member Avatar for Drowzee
1
157
Member Avatar for Acidburn

Hello, I've created a file and put datat into it, only problem is that throughout the operation of the program the file is "amended" and bits are added to the file. However I'm wonder if theres a way to delete the file contents so next time someone starts the appilcation …

Member Avatar for Drowzee
0
118
Member Avatar for ramcfloyn

Hello has anyone any experience of using log4cpp on borland builder 6, the open source code has a bcb5 project but there are build errors when this is transported to builder 6.. it's frustrating. Any1 know of any online documentation etc?

0
87
Member Avatar for rks01

what is the code for making an array of objects? i would greatly appreiciate any replies thank you.

Member Avatar for Drowzee
0
109
Member Avatar for mysterio

[B]1. User will enter the ISBN, The system will trace the title and price of the book automatically. The system should check whether the book is in the stock or not. If it is not, please let the user to enter again. 2. Allow a customer to buy more than …

Member Avatar for Stoned_coder
0
157
Member Avatar for renar

Help me with this Simple Problem using structure in turbo C. Basic Program The Problem:Using structure 1) Consider the given data in the student Class Record a.) Enter for the name of the student and student number (10students). b.) Enter the class standing and prelim exam. c.) To Compute for …

Member Avatar for chrisbliss18
0
118
Member Avatar for skeet123

I am having a problem with a recursion problem. I have been reading alot of threads on this subject here and other places. I think I understand what recursion is. I am just having a problem trying to figure out this problem. I am suppose to write a helper function …

Member Avatar for skeet123
0
136
Member Avatar for vjw757

im about to sign up for some college classes.. one is either going to be java or c++ for beginner. I dont know anything about these languages. Can you guys help me choose?

Member Avatar for chrisbliss18
0
439
Member Avatar for thare

can everyone show me the differences between procedure and funtion / procedure and objec-oriented ? thanks !

Member Avatar for thare
0
122
Member Avatar for m7r23

I think I pretty much set up my enum right to the below. I just dont know what to do with it. PRoblem Description A type named Color declared by "enum" to contain only black, blue, purple, red, white, and yellow. For each set of inputs, output their sum, average, …

Member Avatar for Rashakil Fol
0
81
Member Avatar for nir_kar

hello people i was wondering if anyone could come up with a program that could excatly compute the amount of time that it takes for a simple arthimetic operation. I mean lets assume that there is a simple addition program, is it possible to find the exact amount of time …

Member Avatar for chrisbliss18
0
172
Member Avatar for SpS

I came across this line when i was as reading a tutorial i.e. compiler increases the compilation speed by performing in-memory compilation....what does this statemant mean??.....and what is the normal way of compilation

Member Avatar for CrazyDieter
0
114
Member Avatar for Jack321

Has anyone heaard of linux redirection? If so, how do I implement it into my code? Please help... Thanks.

Member Avatar for SpS
0
112
Member Avatar for nir_kar

can some one tell me a way to find the maximum memory limit that can be allocated to an integer array using static, stack dynamic or heap dynamic allocation. thankz

Member Avatar for Ancient Dragon
0
54
Member Avatar for julie derifield

Error Loading C:\PROGRA~1\NEWDOT~1\NEWDOT~2.Dll Specified module could not be found? What can i do to find it? Thank -You Julie :confused:

Member Avatar for Ancient Dragon
0
50
Member Avatar for Drowzee

I've been working on a char to hex converter all day, and it's working. Except for one part. I've got an unsigned short I want seperated into the two hex values. I've been beating on this stupid bit of code all day, and it's just not working. The hex representation …

Member Avatar for Drowzee
0
164
Member Avatar for rakoon13

Hello. With some friends I've opened a forum about cells ( [url]www.cellforum.net[/url] ) . Anyway, that is not the point. The point is that we need a stand alone API to be connected with the forum to perform some tasks. I am not sure if this is the right place …

0
90
Member Avatar for Acidburn

hello, another stupid question but what is wrong with this? [code] infile.open("new.txt",ios::app); if (infile.fail()) { cerr << "Error"; exit(1); } [/code] ever since I've added the ios::app it keeps printing error and then haulting but from my resoruces if you want to append a txt file thats whats the syntax …

0
62
Member Avatar for djbsabkcb

What is a two way templatized linked list in C++? Does it mean using syntax below for classes and member functions definitons? [code] template<typename type_variable> [/code]

Member Avatar for djbsabkcb
0
133
Member Avatar for SpS

I don't know if this is possible....... i have made a program containing 3 files 1.main.cpp----it includes both complex.h and def.h....main.cpp is simple menu 2.complex.h---class declerations 3.def.h-----definations of the member functions now i want to give my code to someone....is it possible in some way that.....i give only main.cpp and …

Member Avatar for Dave Sinkula
0
93
Member Avatar for stranger

Well wrote the code but still I have some problems, so could someone help me plz. void ageCalculator() { char birth[BIRTH],output[OUT]; static int finished,d[2],m[2],y[4],days,flag; int i; /*initialization of arrays*/ for(i=0;i<11;i++) { birth='\0'; if(i<6) output='\0'; } printf("\n Age Calculator\n"); printf("-------------------\n"); /* code to get and validate the input*/ do { flag=FALSE; …

Member Avatar for Dave Sinkula
0
146
Member Avatar for dodsdad

help please since reformating the c-media ac97 will not start have done the usual things uninstalled/reinstalled downloaded updated drivers but only get device failed code10.

Member Avatar for dodsdad
0
86
Member Avatar for SpS

Hi, Please see the code below. [code]void Allocate( char* s ) { s = (char*)malloc( 100 ); } int main( ) { char* s = NULL; Allocate( s ); strcpy( s,"Test");/*I know that this will fail. b'coz I still have a NULL pointer in s. Initially s was pointing to …

Member Avatar for winbatch
0
103
Member Avatar for djbsabkcb

I am trying to write a program that reads in a file of numbers, writes to a file and displays the numbers in correct order. I don't fully understand how to read the file and pass that information into my class declarations in order to output before and after the …

Member Avatar for Stoned_coder
0
127
Member Avatar for SpS

Is there any sequence of left shift and right shift operators that can divide or multiply a number by a number that is not a multiple of 2 i.e. can we multiply a number by 11 using a sequence of left shift and right shift operators .

Member Avatar for SpS
0
108
Member Avatar for Quan Chi2

How would I use getprivateprofilestring to get random lines from an ini file that looks like this? [quotes] 1=blah 2=blah 3=blah etc.. Thanks in advanced!

0
62
Member Avatar for vikster

i am new to this concept of make files.. i would liek to know as to how to use it..... i was given an assignment to make a calculator using C and to also provide a make file... i have looked up on the net and have understood as to …

Member Avatar for bops
0
65
Member Avatar for higherGround574

if anyone knows of some good tutorials or links covering the how/to's of programming C completly off of linux command line... inputs would be greatly appreciated ... --thanx

Member Avatar for l3.azarmehr
0
93
Member Avatar for indianscorpion2

hi my name is srikanth.i need to compile and execute c programs on red hat linux.please tell me how to do so.

Member Avatar for SpS
0
85
Member Avatar for Drowzee

Hello, all. I'm looking through the code I'm altering for MFC, and I found these variable printf lines. [code] printf("%s%s","|Val=",outString); [/code] and [code] printf("|type = 0x%x\n", type); [/code] Of course I understand how the latter one works, but the former is confusing. It seems to output just like the second …

Member Avatar for Ancient Dragon
0
82
Member Avatar for yaniv

Here it is... Design, write, and compile a program to determine if the digits in a three-digit number are all odd, even, or mixed odd and even. Your program should prompt the user to input a three-digit number and echo-print the number. If the digits in the number are all …

Member Avatar for yaniv
0
2K
Member Avatar for DotNetUser

I need to change the cursor in a static member function but I receive a compiler error error C2671 : static member functions do not have 'this' pointers this->Cursor = System::Windows::Forms::Cursors::Default; How do I modify the code so it will work in a static member function? Thanks.

Member Avatar for DotNetUser
0
89
Member Avatar for Micko

Hello, copying from one file to another is a simple matter. In C it's something like this: [code] int main(void) { FILE * fp1, * fp2 ; int buff; fp1 = fopen ("name", "rb"); fp2 = fopen ("name", "wb"); while ( (buff = fgetc(fp1)) != EOF) { fputc(buff, fp2); } …

Member Avatar for Narue
0
582
Member Avatar for winbatch

I frequently use maps to store pairs of data. A large percent of the time I use it to store a mapping between a value and how many times it occurred. What I would like to do in one particular scenario is to provide the output sorted by the value …

Member Avatar for winbatch
0
327

The End.