Beginners - June 2008 (Page 10)

Borland C++, getting started
 
Hey, can anyone explain how to get started with Borland C++? I can't quite understand how to start out the C++ files and everything. Thanks.
[6 replies] Last: please forgive me, I made a minor mistake. (by whjwhj)
loop structure
 
i try to make a structure so that you insert n numbers from the keyboard but i want to show a error message if the number is <0, >m or is equal to a previous nu...
[4 replies] Last: yes that helps a lot thank you so much...i got the idea now :D (by ioanmih)
Question about inline function modifier
 
Hello, My question is this: if an inline function is expanded at the time of it's call, is a regular function allocated in memory allthe time? I don't...
[4 replies] Last: Another way of thinking of it. A function that is not 'inline' only e... (by bnbertha)
DevC++
 
hello, i got DevC++ and have a problem. When i try to run the simplest code, like the hello world program it gives me an error. make.exe C:\Dev-Cpp\make.ex...
[16 replies] Last: Haha well im a student at DeVry University in Orlando studying Game an... (by hartmannr76)
Modifying txt file using classes
 
A text file contains data on some individuals, formatted as follows: lastName,firstName,gender,studentNumber,birthDate,OHIP,email It does not have spaces,...
[3 replies] Last: Well, it can't, but you can always turn a string into an iostream, or ... (by Duthomhas)
Proble with virtual function!
 
Hello, mates! I desperately need help. I have a base class named Cell, and three derived classes - CellChar, CellNumber and CellEmpty.(first contains a string,...
[2 replies] Last: It has only been six hours since you first posted, and it is the weeke... (by Duthomhas)
Pointer
 
#include <stdio.h> #include <stdlib.h> int main () { int a; printf("%p\n",a); printf("%p",&a); system("pause"); return 0; ...
[1 reply] : In the first one you are passing the actual integer value (%p only app... (by bnbertha)
Unusual error
 
I noticed this unusual error.. I had written a program schedule.cpp. I wrote a modified version of the same program and saved it as schedulespt.cpp in the same...
[4 replies] Last: Hmm, Koenig's first rule of debugging, eh? http://wordaligned.org/art... (by Duthomhas)
thank you duoas
 
thank you duoas for your reply, but it does not work. i am using winXP and C++ 3 please help me as i am very beginner in this language.
[2 replies] Last: You need to provide a whole lot more information than that. Tell m... (by Duthomhas)
cin.get infinite loop
 
#include <iostream> #include <string> using namespace std; int main () { char a ; for (;;) { cout << "ENTE...
[1 reply] : It works fine for me. By best guess is that somehow the input strea... (by Duthomhas)
new to this, need explanation on how to work on this
 
# include <iostream> using namespace std; int main() { int tot,hc=50,cp=500,ho=150,hs=250,x=0,y; if (hc=y);{ cout<<"Did the customer avail the following ...
[4 replies] Last: thanks to all,esp @psault&&firedraco ...I somehow manage it,tnx for t... (by dummyatplusplus)
selecting a random number from a set of numbers
 
How can i generate a random number from a set of numbers? i m a beginner and i have been trying this, but cant find a solution. this is the part of the code...
[2 replies] Last: Thanks... (by kakarthik)
Memory error
 
Hey guys, I am trying to code this program. It compiles correctly, but unfortunately somewhere along the way there is a memory issue. When I debug it, it tells ...
[1 reply] : Check on line 12 of market.cpp, you have an array of pointers to type ... (by psault)
how to use parametrized constructor with new
 
Hello. I am trying to figure out how to pass parameters to a constructor using new. Right now I am allocating for an object and then assigning values to the s...
[3 replies] Last: Heh, you can read them from file the same way: // Here's a little ... (by Duthomhas)
by RapidX
Arrays
 
Hello everyone, I've been reading up on the tutorial and I'm at the Arrays part of it. On the page there is the example: // arrays example #include <i...
[3 replies] Last: += means to increment by a += c; means to add c to a and assign that ... (by hajusrex)
by kaeota
Undefined reference to:
 
Hi guys! I'm trying to get a vector of pointers, that point to an index vector to sort a vector of doubles (it sounds round about, but I will actually end up ap...
[2 replies] Last: So i have, fixed now =) any ideas? UPDATE: fixed. Installed cygwin ... (by kaeota)
Clearing a structure
 
Hey guys, My problem is that in my program, my structure takes in information from a file, and when I try to exit the program, it is realizing that the structu...
[1 reply] : Can you post a small example that demonstrates the problem? (by Duthomhas)
unable to open include file 'iostream.h'
 
whenever i compile some prog. there is an error message showing: unable to open include file 'iostream.h' what to do?
[1 reply] : Try to #include <iostream> and make sure you are compiling wit... (by Duthomhas)
is scanf_s portable?
 
I have a question about the use of scanf_s vs. scanf. I'm writing C code using microsoft visual C++ and when I try to use scanf (or fscanf etc...) I get a warn...
[2 replies] Last: Duoas, Thanks for the reply, just the info I was looking for. ... (by spaceferret)
by Boman
Passing array to function
 
Hi all, I'm having issues with a program for an assignment. The program should have 3 functions to determing the number of days fron January 1st, whether or not...
[5 replies] Last: It is not validating April 31 as a valid date: The problem is line 6 ... (by guestgulkan)
June 2008 Pages: 1... 8910111213
  Archived months: [may2008] [jul2008]

This is an archived page. To post a new message, go to the current page.