48,986 Topics

Member Avatar for
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
Member Avatar for Sphyenx
Member Avatar for ahmed_design
0
121
Member Avatar for Acidburn

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 …

Member Avatar for Acidburn
0
88
Member Avatar for Geek-Master

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

Member Avatar for Geek-Master
0
179
Member Avatar for skeet123

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 …

Member Avatar for 1o0oBhP
0
91
Member Avatar for dan34633

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 …

Member Avatar for 1o0oBhP
0
407
Member Avatar for chound
Member Avatar for 1o0oBhP
1
226
Member Avatar for Acidburn

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 …

Member Avatar for frrossk
0
101
Member Avatar for cujo401

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

Member Avatar for cujo401
0
241
Member Avatar for Acidburn

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 …

Member Avatar for 1o0oBhP
0
112
Member Avatar for Mr.PinkBunny

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

Member Avatar for frrossk
0
136
Member Avatar for JoBe

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

Member Avatar for 1o0oBhP
0
129
Member Avatar for Lothia

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 …

Member Avatar for Lothia
0
102
Member Avatar for Geek-Master

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 …

Member Avatar for Geek-Master
0
116
Member Avatar for yb1pls

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 …

Member Avatar for yb1pls
1
112
Member Avatar for Tom Pilk

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

Member Avatar for boldspin
0
127
Member Avatar for xelitex

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 …

Member Avatar for xelitex
0
133
Member Avatar for the b

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 …

Member Avatar for 1o0oBhP
0
646
Member Avatar for LubLub

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 …

Member Avatar for LubLub
0
251
Member Avatar for Acidburn

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 …

Member Avatar for Acidburn
0
165
Member Avatar for hruzam

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 …

Member Avatar for hruzam
0
336
Member Avatar for Tom Pilk

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

Member Avatar for Acidburn
0
137
Member Avatar for the b

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 …

Member Avatar for the b
1
121
Member Avatar for Singap0r2

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 …

Member Avatar for Singap0r2
0
157
Member Avatar for Incubus

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 …

0
63
Member Avatar for 1o0oBhP

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 …

Member Avatar for 1o0oBhP
0
193
Member Avatar for pacbeach

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 …

Member Avatar for 1o0oBhP
0
191
Member Avatar for gowswan

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.

Member Avatar for 1o0oBhP
1
221
Member Avatar for Extreme

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 …

Member Avatar for vegaseat
0
121
Member Avatar for MasashiMikamida

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 …

Member Avatar for 1o0oBhP
0
285

The End.