Beginners - January 2011 (Page 18)

illegal if problem
 
could anyone please explain what i did wrong in this code ? #include <iostream> using namespace std; int main () { cout << "Please enter the first numbe...
[9 replies] Last: ah I get it thanks for your input (by narshen)
Press 1 to continue and 2 to quit
 
I'm learning C++ at school. But i'm trying to make some own fun stuff, and i want to include Press1 to continue Press 2 to quit But i don't really hav...
[10 replies] Last: I'm sorry, it aint working with me. If you want i can PM you my c... (by rometotalw)
available physical memory
 
hi can i know how to store the available physical memory in the computer using c / c++ #include<stdlib.h> system("systeminfo |find Available Physical...
[1 reply] : Determining the amount of physical memory in a computer or the amount ... (by jsmith)
Reading from a file and opening a file
 
Very simple question, but neither my book nor this site is very clear on how to do something that simple. I have a .txt, let's call it "textfile.txt". Let's ...
[8 replies] Last: I understand, thank you :) Although that might be beyond me and is at ... (by Metallon)
error C2664:
 
Can someone please tell me what im doing wrong? char *GenerateNumber(int Len) { using namespace std; char *nick; int i; nick = (char *) malloc (Len...
[6 replies] Last: @Juliet: You shouldn't take over a thread owned by someone else. Pleas... (by wolfgang)
How to Use non standard Libraries? (1,2)
 
I will once again be using Dev C++. And once again, we are all very well aware that its terribly outdated, useless, defunct and has all hallmarks of a shit IDE....
[21 replies] Last: Dealing with 3rd party libraries in C++ First, man gcc and read u... (by moorecm)
.gz File Extensions
 
I'm not entirely sure I should put this in this part of the forum but maybe. I'm getting to the point where I want to do more graphical things with C++ (game...
[2 replies] Last: Modern tar can handle gz tar xzvf abc.tar.gz If you are on Win... (by Duthomhas)
by helpme
Friendship in C++ class not working.....
 
I declared a class called FOX and set a friend to it but it won't let me access the private member of the class. Here's the code: #include <iostream> ...
[7 replies] Last: [quote=helpme]But this site says you can access the values of private/... (by closed account z05DSL3A)
by Havoc
Organizing a group to program with>
 
Hello World! Any way I am a noob at programming and I was wondering if there were any other people out there who just started that would want to write code and ...
[3 replies] Last: I've been looking for a group to join too! My e-mail: eperezla@gmail.c... (by pEz)
passing a 2 dimensional array to and from a function
 
I am trying to pass a 2 dimensional array of Stacks to a function. I created the class Stack and the code is as follows: class Stack { public: int holder ...
[1 reply] : #include <iostream> using namespace std; void foo(int p ) { ... (by blackcoder41)
const reference to stream object
 
Hi,everyone. I am trying to use stream object reference as function arguments,like this: void fun(const ostream& os, const istream& is); but it keeps to ...
[3 replies] Last: yes, that's right. I just checked old codes, I don't use const when ov... (by vencent)
Writing a Code on Bus Ticket system...
 
Hey, am working on Bus reservation system and having some problem... I am trying to fix something thats wrong with the code..but doesnt seems to get it..Please...
[18 replies] Last: Edited post above with comments. Any specific questions? (by wolfgang)
No Likey const char* =-/
 
I'm working on updating some legacy code and have run into an error I can't seem to remedy. Compiling Error: client.C:550: error: expected unqualified-id...
[3 replies] Last: Actually, CAL was a macro but I'm trying to localize it Did you r... (by Disch)
About classes
 
struct josiah{ float hez; int asa; char flah ; }; int main (void){ struct josiah josh = {2.141, 22, "king"}; Q1: what is the effect of the cod...
[3 replies] Last: ++joash.asa.+joash.hez <-- ".asa." Is the period after asa suppose ... (by wolfgang)
linked lists
 
so im attempting to assign a second(possibly third value/property) to my linked list of cars. I have a random number of cars added to the list and I need to ass...
[2 replies] Last: I started with a random destination A, B, or C in the for loop, how wo... (by cplusplusn00b)
char argv & char** argv
 
Can I use only char argv instead of char** argv? If yes, then why so? What's the reason? & What's the difference it's going to make? Is it something relat...
[6 replies] Last: Thank You to all!!! Appreciated !!! (by prattsishunk)
by GulHK
compare vectors for equality (1,2)
 
Hello all Could anyone please help? I have got two structs. [code removed] Data in both structs has been stored in vectors. Both structs also contain vector...
[20 replies] Last: You must remove the keyword "friend" from the declaration on line 13. ... (by jsmith)
Algorithm Pleaseee
 
I am doing my assignment about Bus ticketing.. I finally got this code...trying to do algorithm and flowchart..but no avail ..anyone can help?? #include <...
[no replies]
Kernighans getch() a standard?
 
In the classic textbook The C Programming Language, they define a function getch(), for: It is often the case that a program cannot determine that it has read...
[3 replies] Last: Most extensions are compiler-specific but some may be found implemente... (by Bazzy)
by indr
copy constructor
 
i gave the copy constructor in the below code just to know when will it be called.. #include<iostream> using namespace std; class counter { int val; ...
[3 replies] Last: Also, your operator++ doesn't actually return anything -- you are miss... (by jsmith)
January 2011 Pages: 1... 1617181920... 42
  Archived months: [dec2010] [feb2011]

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