51,593 Topics

Member Avatar for
Member Avatar for danysabin

Is there any commands or registry keys that can be edited to standby/hibernate a computer and wake it up again autonomously. I know there are programs to do this so it is possible but anyone really know the exact way it's done? It going to be used for some testing …

Member Avatar for vijayan121
0
120
Member Avatar for em_i

Hello, I've just wrote a small program to calculate the factorial of a given number. When i give a small number everything is ok but when i want t calculate the factorial of a biger number, like 53!, I get a wrong answer. I thing that the problec is the …

Member Avatar for iamthwee
0
169
Member Avatar for Mitchelle

I have this question. List Lg is a global variable and L1 is a local variable.I have not yet described my list/array. Am made to understand that Lg should have my initial length so that I can later compare with L1. My Q is how do I declare Lg and …

Member Avatar for Bench
0
71
Member Avatar for tonyaim83

Hii.. I m using string vector my element set is L1 L2 L3 L4 L5 what i want now is to remove the whitespaces. so that my elements become L1L2L3L4L5. I tried using remove but it doesn't check as it can't find a whitespace separately means when it iterate over …

Member Avatar for Bench
0
2K
Member Avatar for ishwarbg

Hi, I have a txt file with some details as given in the below format: filename index file position file length ex: 0001.ogg 123 000001 2345 0002.ogg 124 000099 3457 ...... ..... I need to read the third parameter (i.e file position) with corresponds to its file name (first parameter). …

Member Avatar for vijayan121
0
98
Member Avatar for ishwarbg

I need to archive 50 text files into a single target file in C++. To achieve this first I need to read all those file contents from a directory and finally write them sequnetially into a new file. Please help me with a sample code or steps. Your help will …

Member Avatar for vijayan121
0
204
Member Avatar for anvir

Alright, here's the beef. I'm basically writing a program for a PIC18 microcontroller. There's just one problem, my main asm file, it compiles C into assembly and then turns it into bytecode, is too big to be loaded into memory. So I'm getting compiler errors telling me the section is …

Member Avatar for Salem
0
145
Member Avatar for karimnouh

Hey im new to this C++ business but i just wanted to know cause i find lots or errors coming up to me :'( .. whats the difference between int main and void main.

Member Avatar for Infarction
0
305
Member Avatar for qaiser
Member Avatar for katman1

I use the playsound function to play files in wave format. Wave filenames are read from a text file. I can play several wave files in series. Then I have a pause between series. But if a subsequent series is shorter that any previous series, the old trailing sounds are …

0
47
Member Avatar for complete

Is there an ActiveX control for a display from a cam? There must be one that I can drop into an MFC application. In the resource editor there is a button for a "Custom Control" in the 2005 IDE but I also remember there used to be a special way …

0
52
Member Avatar for sandile77

i'm writing a program to capture marks and names of 15 students and then i'll be using a function to display whether those students have failed,supplement or passed. but the problem is i'm using strings to capture those names and i'm using arrays to capture those names and the marks.i'm …

Member Avatar for Lerner
0
101
Member Avatar for orkut123

Hi Guys 1)I am planning to write a simple implementation of T9 , as seen in nokia phones. Could someone suggest an efficient way to go about this ?? 2)I am also planning to write the code for a english dictionary. What is the most efficient way to store and …

Member Avatar for iamthwee
0
260
Member Avatar for gaggu82

can anybody tell me the coding for a program to search an element in a string exactly the same word ,like if we are having two words is and this in string then we have to search for is then it only shows is not this........

Member Avatar for Hamrick
0
165
Member Avatar for meiyantao

Hello! I want to implement a avltree using C++,and I have do most of it,except the remove() algorithm. My question is when should I rotate the tree in remove(). I hope that any body can represent the situation for me using the Pelple's language,because the implemented code depend on the …

Member Avatar for meiyantao
0
152
Member Avatar for Mitchelle

If you have any idea on where I can learn how to implement OOP in C++ specifically when it comes to list please send me your feedback

Member Avatar for Ancient Dragon
0
70
Member Avatar for McQueen

[code=c++]void wait ( int seconds ) { clock_t endwait; endwait = clock () + seconds * CLOCKS_PER_SEC ; while (clock() < endwait) {} }[/code]

Member Avatar for McQueen
0
111
Member Avatar for elle_yuyu

i dont know how to write this code..anyone can help me ?? here are the question : Write a complete program that calculates the wages of an employee for the month(hint : input from user includes year,month,time in/time out for each day in that month.). monday-friday :first 8hrs,Rm50......add.hour RM10/hr. saturday …

Member Avatar for Salem
0
110
Member Avatar for a.baki

[COLOR="Green"] I have some lines on a plane. I want to find points those lines intersect each other. than I try to find whether this lines make a closed surface or not. Any one have idea? [/COLOR]

Member Avatar for quintoncoert
0
246
Member Avatar for rati

Hi all, I am trying to understand the concept of private constructors and singleton. As far as i have studied, we can have private constructors , destructors and that they are used to avoid making instances of the class other than its member function. now that i am trying to …

Member Avatar for vijayan121
0
95
Member Avatar for shannonpaul

I am not sure why I am getting syntax errors in lines 29 and 31. When I run the console my return values are correct, but have syntax errors. [code] include <iostream> #include <iomanip> using std::cout; using std::cin; using std::endl; using std::setprecision; using std::ios; using std::setiosflags; int main() { //declare …

Member Avatar for vijayan121
0
128
Member Avatar for Marine

Hello, I just installed GMP for CodeWarrior C++ using cygwin, and it compiles file "gmp.h" without problems. But it does not compile file "gmpxx.h" and says there are illegal function overloading and some unidentified characters. I'm really confused as I spent half last night following all instructions, and I have …

0
45
Member Avatar for em_i

[code] #include <iostream.h> void prime_num(int num,int cut); void center_list(int primes[],int len, int c,int n); void main() { int N,C; cin>>N>>C; while(N>0) { prime_num(N,C); cin>>N>>C; } } void prime_num( int num,int cut) { int prime_list[169],k=0,i; bool isPrime=true; for(i=1;i<169;i++) { prime_list[i]=0; } for ( i = 1; i <= num; i++) { …

Member Avatar for em_i
1
131
Member Avatar for atrusmre

Anyone know where I can find a good MySql and C++ Tutorial? I want to us MySql w/ MFC C++ Thanx, Atrus

Member Avatar for SpS
0
77
Member Avatar for hoceandress

hey guyz!!! i'm just trying to check my code u all if it's correct. thankz! the problem is " ask a number (N). calculate and display the value of x, where x = (1*N)+(2*N)+(3*N)...(N*N); ex. if i input a number 5 the formula of x where: x = (1*N)+(2*N)+(3*N)+(4*N)+(5*N); this …

Member Avatar for vijayan121
0
134
Member Avatar for psyman_86

Hi, i'm trying to implement a node class to be used with a linked list. When try to complile i get the following errors in the .cpp file: Node.cpp:26: error: syntax error before `::' token Node.cpp:31: error: syntax error before `*' token Node.cpp:36: error: syntax error before `*' token Everything …

Member Avatar for psyman_86
0
447
Member Avatar for Marine

Hello, I need to convert manually string "6.812345678912345678912345678" to double (well, high-precision double i guess...). Below is my code, which only converts the first 9 digits. After that it's all messed up. I really need to convert this long string to the same long number. How do I do this? …

Member Avatar for SpS
0
219
Member Avatar for gaurav252

Hi . i m new in c++ programming..plz help me in sorting out this problem..... HOW THE VALUE OF "j" VARIES IN FOLLOWING PROBLEMS ? Plz Explain... 1. int i=10,j; j= (i++) + (i++); cout<<j; 2. int i=10,j; j= (i++) + (++i); cout<<j; 3. int i=10,j; j= (++i) + (i++); …

Member Avatar for Ancient Dragon
0
210
Member Avatar for n.aggel

hi, i recently heard about splay trees and i am searching for a splaying algorithm...,i ve found one but it isn't very easy to understand....so if anyone has to share an implementation followed by a short explanation it would be great! PS: i 've undestand the basic concepts like zig, …

0
78
Member Avatar for almy

i know how to sort a few number but i dont know to sort alphabet. anybody can help me??? plez;-)

Member Avatar for rati
0
148
Member Avatar for hoceandress

will calculate and display the sum of all even even numbers from 2 to n, where n is a positive number inputted by the user..what will i do and what is the expression of that???

Member Avatar for darkagn
0
117
Member Avatar for a.baki

I want to compute closed surfaces with using the dxf file. I don't have much information about this file format. User will draw lines or arcs, than, first I will tell them that they draw a closed surface, second I try to compute area of closed surface. any idea or …

0
70
Member Avatar for stanwaka

Hi folks. I need a way to display a counter in seconds until it reaches a user defined limit. I have tried but unfortunately not having much luck. [code] #include <cstdlib> #include <iostream> #include <ctime> // time header using namespace std; int main() { cout << "Please enter seconds: ";//prompt …

Member Avatar for McQueen
0
3K
Member Avatar for Trevora

Hello I have a need to output a large array for a CNC machine I have built. The attached code includes comments which explains my problem. Thank you for your consideration.

Member Avatar for Trevora
0
221
Member Avatar for venomlash

For those of you who also code in JAVA*: Does anyone know of anything in C++ that is at all like paintComponent or the Graphics class? HALP! *ROFLwaffles to those who do

Member Avatar for venomlash
0
193
Member Avatar for ShawnCplus

For those of you who haven't heard of or used AutoHotKey check it out here [URL="http://www.autohotkey.com/"]http://www.autohotkey.com[/URL] for the rest of you I made a really simple script for Dev-C++ to add some speed to it. (I had more in the script but they were things only I would remember and …

Member Avatar for ShawnCplus
2
167
Member Avatar for Slavrix

hey guys, i got an assingment due and i was wondering if you could please help me to debug this program. 5 files, ass1.h ass1.cpp main.cpp Makefile.txt (needs to be renamed to makefile for it to be used properly) ass1.txt(needs to be renamed ass1.dat to be used[its the database for …

Member Avatar for Slavrix
0
265
Member Avatar for interspire

I'm new to C++ builder learning C++ builder,i don't know how to install components.I'm trying to use the text highlight & line count feature for the text editor i've created by following instructions in help file of borland.I downlaoded the component from [url]http://delphisci.sourceforge.net/[/url] but there was no installation instruction.i tried …

Member Avatar for interspire
0
194
Member Avatar for prs55

I am having difficulty in using array to read large unsigned integer and write them and calculate their sum.Also i am going to implement the following code to check digit and character. [code] for (;;) { ch = cin.get(); if (!isdigit(ch)) break; cout << ch; } and for (;;) { …

Member Avatar for Salem
0
143
Member Avatar for toko

Hello, i have been reading the chapter in the book about classes and i have learned everything about them the only question i have now is that wut do you use classes for?

Member Avatar for Bench
0
117
Member Avatar for php111

hi, I am a beginner and haven't decided to learn how to program in C or Python. Is there any free tutorials in C that is very good? I can run searches in google but i am not sure what tutorials are good or not good. Another question, later in …

Member Avatar for Ancient Dragon
0
125
Member Avatar for Fromethius

Hello everyone I'm trying to write a program in native c++ code that will do this: When drawing in MS Paint and I press the P key on the keyboard, the Pencil tool will become the current tool. I really want to stay away from installing drivers, injecting dlls, reverse …

Member Avatar for Fromethius
0
156
Member Avatar for taku

Hi, as newbie in c, i have some problems with my code. I don't know how to read data from into array, and second, how i can compare data in array? [code= c ] #include <stdio.h> #include <conio.h> #include <string.h> int main (void){ int i; char line [240], *pos; char …

Member Avatar for iamthwee
0
106
Member Avatar for toko

This is kind of a noobish question but is there a way to turn an .exe file into a source code that you can edit and if there is how.

Member Avatar for SpS
0
94
Member Avatar for avgprogramerjoe

Hey guys, I "understand" pointers. But I do not understand how I could actually put them to use. If you could give me a few example programs of how they would be used, then I could try to make the programs. I don't want the code, just the logic behind …

Member Avatar for SpS
0
304
Member Avatar for laseredd

Hello, I recently finished a tutorial on C++ and I have written a small program. Could you please take a look at my code and give me feedback on it? It's a program that will ask you for two values and then add them together. Please be nice, since it's …

Member Avatar for SpS
1
128
Member Avatar for dannyadp

hey all, I'm new to this forum, and really start to like it :). Here we go. I have some trouble helping a "tute" of mine (I normally give physics tuitions) with one of his assginments on C++. As I did C++ years ago, I was feeling confident with it. …

Member Avatar for iamthwee
0
75
Member Avatar for revenge2

Ok so after quite awhile i finally picked up from where i stopped last. Which was the "2nd" page of the book "sams teach your self c++" lol! (im not much of a reader) But today i intend to start work properly and continue learning c++, so i would just …

Member Avatar for toko
0
93
Member Avatar for baappi

Hi all, I am using Borland C++ to develope one application. I need to call a stored procedure (that will take 2 parameters and will return a string) from my C++ application I am using mssql2005 express as database . How can use TStoredProc/TADOStoredProc/TSqlStoredProc ??? which one is useful here …

0
63
Member Avatar for revenge2

Hello i just started c++, and i have a small problem with compiling. The book im reading just told me to compile the following but line 4 has an error/warning.(im using devc++) [code]#include <iostream> int Add (int x, int y) { cout<< "In Add(), received " << x<< "an d" …

Member Avatar for darkagn
0
145

The End.