51,593 Topics
![]() | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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). … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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........ | |
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 … | |
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 | |
[code=c++]void wait ( int seconds ) { clock_t endwait; endwait = clock () + seconds * CLOCKS_PER_SEC ; while (clock() < endwait) {} }[/code] | |
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 … | |
[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] | |
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 … | |
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 … | |
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 … | |
[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++) { … | |
Anyone know where I can find a good MySql and C++ Tutorial? I want to us MySql w/ MFC C++ Thanx, Atrus | |
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 … | |
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 … | |
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? … | |
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++); … | |
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, … | |
i know how to sort a few number but i dont know to sort alphabet. anybody can help me??? plez;-) | |
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??? | |
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 … | |
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 … | |
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. | |
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 | |
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 … | |
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 … | |
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 … | |
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 (;;) { … | |
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? | |
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 … | |
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 … | |
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 … ![]() | |
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. | |
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 … | |
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 … | |
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. … ![]() | |
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 … | |
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 … | |
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" … |
The End.