48,985 Topics

Member Avatar for
Member Avatar for goforit

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 …

Member Avatar for Narue
0
160
Member Avatar for Acidburn

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

Member Avatar for 1o0oBhP
0
237
Member Avatar for Programmer88

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() …

Member Avatar for Programmer88
0
172
Member Avatar for luizebs

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 …

Member Avatar for Chainsaw
0
146
Member Avatar for Asif_NSU

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 …

Member Avatar for Asif_NSU
0
148
Member Avatar for kellyandtopher

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 …

Member Avatar for frrossk
0
119
Member Avatar for driverside

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 …

Member Avatar for Chainsaw
0
109
Member Avatar for gtsreddy

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

Member Avatar for vegaseat
0
145
Member Avatar for brouhaha

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 …

Member Avatar for brouhaha
0
203
Member Avatar for diegomoreno

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 …

Member Avatar for vegaseat
0
226
Member Avatar for Acidburn

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 …

Member Avatar for Narue
0
215
Member Avatar for happyHour

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; …

Member Avatar for 1o0oBhP
0
157
Member Avatar for Dark_Omen

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 …

Member Avatar for Dark_Omen
0
209
Member Avatar for chound

How to show a list of options and allow the user to select the options by using arrow keys and enter.

Member Avatar for vegaseat
0
184
Member Avatar for blackhawk

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

Member Avatar for vegaseat
0
293
Member Avatar for Acidburn

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 …

Member Avatar for 1o0oBhP
0
407
Member Avatar for helloworld

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

Member Avatar for 1o0oBhP
0
160
Member Avatar for broken_recode

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); …

Member Avatar for Narue
0
2K
Member Avatar for Acidburn

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... …

Member Avatar for 1o0oBhP
0
284
Member Avatar for dja

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 …

Member Avatar for Narue
0
100
Member Avatar for Geek-Master

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.

Member Avatar for Narue
0
628
Member Avatar for JoBe

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 …

Member Avatar for Narue
0
207
Member Avatar for halbichmi

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 …

Member Avatar for halbichmi
0
136
Member Avatar for Diod

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 …

Member Avatar for alc6379
0
182
Member Avatar for JoBe

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 …

Member Avatar for JoBe
0
168
Member Avatar for Caesar Were

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 …

Member Avatar for 1o0oBhP
0
126
Member Avatar for sa-rulz

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 …

Member Avatar for 1o0oBhP
0
98
Member Avatar for Nabs

Hi Anybody knows a site where i can get sample C++ problems to solve, particularly regarding structures, arrays and bisection searches? Thx

Member Avatar for harshchandra
0
145
Member Avatar for Vova

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 …

Member Avatar for chound
0
118
Member Avatar for nico

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 …

Member Avatar for Acidburn
0
139

The End.