48,986 Topics
| |
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 … | |
Learn to Program with C++ [Paperback] By: John Smiley for non programmers' | |
Hello, i'm wondering if you can delcre a varible in int main and use it in a function? eg [PHP] int main() { x = 7 cout << x<<endl; return 0; } function -- { ....blah blah } [/PHP] does something to x delcared in local scope (int main) Or … | |
| I'd like to ask if anyone knows how to randomize character variables, and if it is possible to define the possible characters it can use in the randomizing process. Any info would be excellent ^^ T#4NK$. |
I have been working on this program awhile and I am almost done with it except for trying to get the output to look like what instructor wants. Here how the output should look: [PHP]BREAKING DOWN: list = DUMP: (size = 4, first = 4, last = 3) DUMP: head … | |
ok, i need to write a function called merge_lists that take two call-by- reference arguments that are pointer variables that point to the heads of linked lists of values of type int. the two linked lists are assumed to be sorted so that the # at the head is the … | |
Dus anyone kno a good 32 bit c++ compiler [B]for free on the internet[/B] | |
if (a==b && a > 1 || a < 31 && b > 1 || b < 31) cout << "true"; from what i can understand I've told the compiler that if a is equal to b and a is greater than 1 or less than 31 and B is … | |
I have a script to read a file that has text on lines. The script is supposed to take the text and make them into space delimited and save the new text to a new file. I am able to only accomplish this with 1 line from the text file. … | |
after using the search and everything, I tried to write my own little code that compares 2 strings. #include <iostream> using namespace std; int main() { char stringa[12]; char stringb[13]; cout << "enter the data for string a " ; cin >> stringa; cout << "enter the data for string … | |
[COLOR=Magenta] I'm using a code segment out of a book that I'm learning from. For some reason it isn't working and I haven't been able to figure out how it works. When I use the [I]srand[/I] function it says I can't convert my (short) [I]Number [/I] variable to a (void) … | |
Hello ladies and gents, Ive written a program wich I'm almost certain it'll work, Ive only got one problem, I need to write an if like this: int a = 0; if ( u!=x) a++; Now, u is a floating variable wich is divided before this selection by 2, 3, … | |
Well as probably half the population of noob programmers out there, I have done those 2 things, quit, and stopped because of school. Well i am trying to get back in, i want to make a game like 90% of the noob programmers out there and i have tuts on … | |
| I am currently reading the SAMS Teach Yourself C++ in 24 Hours 3rd Edition. It was a nice starter for me, but I need to travel deeper into the world of C. I am not sure what book is best to buy. I'm looking for anything that teaches stuff about … |
years ago programmers used to hand there jobs as a IBM 360 which was sent to a operators to run them. is there a program where there is only 32k in the main memory. can you give me a exaple with only 32 k of memory something lie this At … | |
Hi - new to all this. Trying to learn C++. How can I create an exe file in C++ that will open another file eg an excel file, when my created exe file is run?? Thanks for any help TP | |
I am doing a program for school that lets the user guess the number. I am to be tested for all situations which include the user pressing a "letter" on the keyboard. I believe that I have all of the other errors handled, except for if the user enters a … | |
I am writing a program using a linked list and I am almost to the point where I can compile and run it but I keep on getting this error message: error C2447: missing function header (old-style formal list?). What does it mean? I looked through the code but I … | |
The exercise is finding the largest and second largest numbers of ten entered. The numbers can only be entered once. No functions, arrays, of the STL can be used... Just while statements The problem I'm having is with a sequence 5, 4, 9... The 5 becomes the largest, 4 is … | |
Hello people I'm new to this forum and only been suing c++ / c for a little while now. I'm trying to seek out help with a program. I've written some of the code: .................................................................................................... #include <iostream> #include <iomanip> #include <ctime> #include <cstdlib> using std::cin; using std::cout; using std::endl; using … | |
I've been having some fun with early programming and have created several projects with various attempts at some failed programs. I wanted to redo, with new file names, some of these with new attempts. However when I try to delete the bad files in a project, the project stills lists … | |
Hi, New to programming & a bit lost. How can I create an exe file inC++ that will startup another program such as Excel?? Thanks in anticipation TP | |
I am writing a program that uses a singly linked list. The program is suposed to ask the user for the number of days they have temperatures for and for the corresponding temperature. I seem to be having a problem with the get_temp function. When I run the program it … | |
i am in the midst of studying for finals and i came across a program about the olympics. in this program we were given the id's of each judge and the scores to put in. once we have all the scores you are asked to average them. although my program … | |
Hello, I am kind a newcomer in work with c++. I need some help with creating class. I want to create a button (toolbar) class, but I have created toobar and button in simple way: [CODE] char buffer[25] = "x"; char buffer2[25] = "xx"; char buffer3[25] = "xxx HWND CreateToolbar(HWND … | |
I am used to using: [CODE]char *str;[/CODE] to make a string but recently have changed to using the ANSI string class as its a lot more powerful and easier to use... BUT i have a problem! when I have encountered a string which conatins a " character I have used … | |
I'm having trouble defining the functions get_last, delete_last, and add_item. I've been working on the program for days and can't get the function definitions to work at all, so i left them blank. COULD SOMEBODY PLEASE HELP!!! This program is suppose to define a List class that holds a list … | |
i am learning "c".i am in the beginning level. i want more explanations about arrays. in arrays what does the garbage means? how it affect the program. | |
Hi al...I am a total c++ beginner...I need ur help plz...I am making a program which asks the user to input a binary number and displayz the binary number converted to decimal number using a function. The code which i wrote is below: #include<iostream.h> #include<math.h> int bin2dec(int n) { int … | |
I'm not incredibly skilled with C/C++, but I'm writing a C++ Win32 Console Application that inputs an atomic formula, and outputs the molar mass. Everything should work fine, but in my if structures where the user input is the atomic symbol for Uuq, or any element that has 3 letters … |
The End.