Beginners - December 2008 (Page 9)

Question
 
(Sorry for this really stupid question, I just started learning C++ yesterday at school.) How do you run a C++ program? (We only learned how to write one yester...
[5 replies] Last: http://www.cplusplus.com/forum/beginner/1988/ (by helios)
how to create instance of object in C language just like in Java ???
 
#include<stdio.h> #include<string.h> #include<stdlib.h> struct person { char name ,id ; }; int main() { struct person individual,*ptr,*retrive; ...
[5 replies] Last: C++ is less object-oriented than Java. There's no Object class from wh... (by helios)
function pointers
 
I know function pointers but what is the importance of them?
[5 replies] Last: Actually, I'm pretty sure those are there by default...don't need to i... (by firedraco)
c++ game
 
i am working on a c++ game for school and im having some trouble. im getting this error: error C2065: 'PLAYAGAIN' : undeclared identifier heres my code: ...
[1 reply] : You didn't delcare PLAYAGAIN anywhere. On another note: WTF IS WITH... (by firedraco)
bubble sort Problem
 
#include<iostream> #include<fstream> using namespace std; struct students{ int ID; int q1; int q2; int e1; int e2; ...
[10 replies] Last: I wrote the entire program in under 300 lines of text (my tool says 23... (by jsmith)
string.replace()
 
Ok, I have been chasing my tail on this so maybe you guys can help. I think the only way for me to articulate what is happening is to post my entire code. Sor...
[4 replies] Last: I got it figured out. Thanks again! (by Fredbenz)
XY position determination
 
I have this simple text bases robot program that creates a robot and enables it to move, turn, etc. My problem is that I cant quite get the XY position of the r...
[8 replies] Last: I tried the function you gave me and it generated good results. Thanks... (by nethan2105)
by Eman96
Invalad conversion from '*int' to 'int'
 
I am trying to make a random number generator. and when i compile it, it says: Invalad conversion from 'int*' to 'int'. Do you know whats going on and if you ...
[3 replies] Last: No, I don't think so, aldo I'm not sure what you mean by undefined. Tr... (by Scipio)
can sombdoy explain this algorithm
 
Hi I am reading a algorithm book , and I found an algorithm that generate permutations using the lexicographic ordering method. I have read that comments a...
[no replies]
what is wrong with this array
 
i want to make a game. i tried to write something but it doesn't work please tell me what is wrong // this program is a game but i t doesnt work #include <i...
[5 replies] Last: If you want to see how your message looks like before posting it, you ... (by Scipio)
getting a warning
 
ok I can not figure this one out any help would be appreciated I am getting warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible los...
[2 replies] Last: thanks for the help I used the unsigned int and it went away imagine ... (by hoosierguy7669)
by gulu
What's wrong with this array?
 
I am trying samples of my code at a time can anyone plz tell what's wrong with the following code: #include <iostream> #include<string> #include <fstream> ...
[2 replies] Last: I need urgent help!! I am still working on the problem and have found ... (by gulu)
by joksy
supertype assignmet
 
Hi guys I have a question for you, let A and B two classes and B inherit from A, st B <: A and a is type A and b is type B why a = b is legal and b = a...
[2 replies] Last: You may want to look up "Liskov Substitution Principle" or "LSP", a fu... (by Corpus)
My Project: Dinjy (1,2)
 
need help with my confusing code...not sure what i'm doing
[34 replies] Last: Yeah, I'll run it through my debugger when I have the time. Send me a... (by firedraco)
Loops And Menus
 
I Have Been Stumped On How To Get My Code To Loop And Have A Menu at the End. Can Someone Please Help Me. Here is My Code: #include <iostream> #include <co...
[5 replies] Last: Well considering he wrote out the base of how to do it. Instead of cop... (by Mythios)
by Vahn
Array Data private member problem
 
I have an array within a class as a private member. I am trying to make a constructor to intilize this array, but I can only seem to make a new array within the...
[7 replies] Last: Hey, it's true! I was right, you can't allocate arrays like that! ... (by helios)
by stewy
Urlencode
 
How would I go about urlencoding a simple string. I am very new (12 hours) into my first c program and having problems with this. I have got a curl session post...
[1 reply] : There is no hardcoded function...however, you could probably create on... (by firedraco)
by Timbo1
Dev C++ output exe
 
Hi my dev C++ output executable is not showing up even when I set a path for it please help! EDIT:Just discovered it comes out as a 5 file ???????
[1 reply] : Maybe should should compile and not specify the output. The compiler ... (by modulo51)
Probably a no go but...
 
Is it possible to go backward in the console? Let me know if I am not being clear enough on what I mean... And Thank you!
[3 replies] Last: Windows offers the SetConsoleCursorPosition() function (by Bazzy)
C++ weather statistics tracking program <SOLVED>
 
I am a student in a beginner's C++ class and my final project is to create a weather statistics tacking program. Link to the assnmnt: http://brahms.eecs.uto...
[3 replies] Last: Alright, I have finished the project, I have changed a LOT since I fir... (by Vader07)
December 2008 Pages: 1... 7891011... 17
  Archived months: [nov2008] [jan2009]

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