48,985 Topics
|
|
Hello, As will become quickly & painfully evident, I am new to "C" programming and trying to teach myself. I am trying to use scanf function to get numeric input from the keyboard. My code looks like this (NOTE: Please forgive syntax errors as I am not copying and pasting … |
|
Hello 2 questions..... 1) I just tried to code a switch statement with a stribg but my compiler throws up error messages.... 2) Is they anyway I can convert a string to an int and then back to a string? cheers |
|
Ok, i know my program is probably all done incorrectly and thier are probably eaiser ways but, it works for me so.. I have an error and i cant find out what it is. Can anyone tell me? [CODE]//Game Project 1 #include <iostream.h> #include <conio.h> #include <iomanip.h> #include <stdlib.h> main() … |
|
I am using linux. I ve already tracked down the code, and I know which class instantiation is causing the problem. But I cannot go further than that, since the same code used to work before I did an upgrate of the opensource framework over which I am developing a … |
|
I just moved to windows XP and got myself Visual Studio .NET Professional. I just need Visual C++ .NET and nothing else. The installer gives these options and i dont know which components i need and which i dont. 1. Visual C++ Class & Template Libraries ATL MFC Shared Libraries … |
|
I have to write a function to find the circumference of a circle. I am having problems cause I dont have any idea how to do that. I know ya'll like to have some kind of showing of my own program the only thing is that I dont understand what … |
|
Hi - I'm not sure if this is the right forum to ask my question, so let me know if it is not. I'm trying to write a program than can take two audio files (e.g. WAV) as inputs, compare them, and spit out a number that tells you how … |
|
Hi i am trying to start doing C++ programming when i write a simple hello programm it is compiling correctly and the out put window is not staying on the screen , i am unable to see it it is suddenly disappearing can any one help me |
|
hello. Sorry for the long post. My ultimate goal is to make a program that can read text off a website, if told the url, when to start reading, and where to stop, and then write the text to a textfile. This is all easy once I am able to … |
|
Hi, just wanna ask if c++ opendir,readdir and closedir code can be implemented in visual c++, i have resently started using this complier and dunno what libraries have changed and if some of these sentences are still valid, and if u can recommend me some kind of "migrating c++ to … |
|
Hello, I've got a big query ... I wold like my code to do something but I don't think I'm doing it right. Basically it checks 1 string with another and prints true or false.... However I want to restrict what is inputted into the string. So you'd have string … |
|
Hello just finished re- reading chapter 3...about functions... I learnt more of this from reading it when i was at home than when im at uni! Amazing!! However I get a compile error saying 'not all control paths return a value' heres the code: [php] #include <iostream> using namespace std; … |
|
Hello, I am using dev-c++ on a windows computer. I download a gui package off of the bloodshed dev site. I installed and everything seem to work. I was making a simple gui off of this tutorial I found online that used the library. The library is wxWindows. Here is … |
|
How to show a list of options and allow the user to select the options by using arrow keys and enter. |
|
I have a question. Still trying to understand. I am using borland c++ vr 4.5. I am working on a project that usees the sleep function 4.5 does not support this function. Is there somewhere i can find a win16 version that would work in this program. tnx ron hathcock |
|
i got my program to do stuff, but i wondered if i can take it to the next level... when a user enters a number of 1458.125478 i got it to do abs.... google is soo good!! but now im wondering if you could display just + or - depending … |
|
i need some help, is there a program which will only have let say 40k of memory, for example a program that will use queues, when you enter a number it will say you have use 10 k memory , please someone help so me a example, please |
|
I simply have to overload square brackets in order for a program to work. I know the syntax for 1-dimensional array. It goes something like this: class MyArray { private: int *arr; int size; public: MyArray(int s) { size = s; arr = new int[size]; } int & MyArray operator[](int); … |
|
hello, ok here it goes... I've got a char array but it doesnt want to let me add data to it!! I cant figure out why [php] //skip the program heres the line... int chararry[12][10] = {Jan, Feb....} [/php] but I keep getting an error saying its not been initialized... … |
|
Basically this is the problem: I was using Microsoft Visual C++ on my old computer that had Windows 98 installed on it and I had no problems. Now I have a new computer with Windows XP and I am still using Microsoft Visual C++ Introductory edition. The problem is, once … |
|
|
Sorry to be such a gimmy gimmy... but I couldn't find any threads on some code that clears the screen, just like DOS's 'CLS' and Bash's 'Clear'...I need a function that does the same thing as both CLS and Clear. Thanks for reading and or helping out. |
Hello ladies and gents, I was making this small exercise in wich I have to enter a certain date meaning, day, month and year. If entered it should count the amount of days from the beginning of that year and print it. I found a solution for this, but was … |
|
Hi, Can someone show me how I would use the multi-threading instead of a case statement for parsing out a file? I have a file that is currently being parsed in C#. Creating Primary keys and foreign keys and putting the data in several dat files. Then I use dts … |
|
The Eternal Sun is an open-source MMORPG that is currently in need of developers and other people that are willing to work on the project. If you want to get into the dev team, register at sourceforge.com and mail me at [EMAIL=diod631@users.sourceforge.net]diod631@users.sourceforge.net[/EMAIL] [b][u]More details:[/u][/b] [b]URL:[/b] [url=http://eternalsun.info/]http://eternalsun.info/[/url] [b]License:[/b] GPL/GNU [b]Graphics:[/b] 3D … |
|
Hello ladies and gents, I'm trying to reverse a string when one is entered with cin.getline, so when typing for example: testing My output should become: gnitset Ive written this piece of code and it works but, because the string has a certain length and not the whole length of … |
|
Well hallo comrades, just been having problems with character strings. Wrote a program that requires typing in of information yet it wasn't possible to represent the character strings in a comfortable manner for whoever is to use the program. Also is there a possible way to make the inputing of … |
|
Hi I have been given a assignment of making a "inventory control program of a book store in c++" i have done all the parts except for two 1. I have to delete a record from the file (i am using fstream and saving the file i need the piece … |
|
Hi Anybody knows a site where i can get sample C++ problems to solve, particularly regarding structures, arrays and bisection searches? Thx |
|
Hi All! How can I link modem to the Sound card in my PC? (in C++) that meens I want to listen a telephone line user via my sound card output! I want to forward audio signal from modem (internal PCI- COM4) to PCI sound card! with Win98SE in my … |
|
hi all i am a beginner and i use the devc++ to compile my programs ,here is my question ,after i compile my program the window disappears without giving me a chance to view my excutable file. i did my homework and found this piece of code online ,(supposed to … |
The End.