Beginners - September 2010 (Page 7)

by Flyer
try to compile
 
well i've tried 2 write my program, but it's ain't working. could u please tell me why it isn't compilating. please halp me!!!! #include <iostream> #includ...
[4 replies] Last: multiple programs Thank you very much ;) I am the very beginner ;) t... (by Flyer)
by Maerle
what's wrong in this struct?
 
#include <cstdlib> #include <iostream> #include <conio.h> using namespace std; #define QTD 12 struct mesdoano { char *nome ; char *abrev...
[7 replies] Last: What you use in lines 18 and 21 is arrays of pointers to char. The fir... (by m4ster r0shi)
Class initialization problem??
 
I tried writing a simple program where you have to guess a number between 1 and 20 using Classes. The code is as follows. #include <iostream> #include <...
[6 replies] Last: Thanks guys, it works perfect now. I changed the srand( time(NULL) ... (by waqqassheikh)
LOOOOOOOOOOOOONG switch statement
 
So, I have a program I decided to make purely for practice purposes, since I'm learning C++, but I came across a problem: my switch statements are becoming HUGE...
[14 replies] Last: oh ok, i see. Thanks, this got the results I wanted; thanks for the he... (by liyarax)
by zanyt
Encapsulation question re. vector objects access
 
Hi, there: I'm looking for a little help in creating a framework for a program I'm puttering with. I don't do a lot of object-oriented programming in C++ (or...
[2 replies] Last: Hi, kfmfe04: Thanks, kindly, for the reply. The missing pointer on... (by zanyt)
by wasabi
va_arg and dynamic memory allocation
 
I'm trying to use va_arg in a function that gets dynamically allocated (with new ) float arrays. However, should I attempt to access these arrays, such as with...
[16 replies] Last: True, but you'd have to template it to make sure that it works with ev... (by Kyon)
by dlugo
Reading in words from a file and placing into an assorted file.
 
Where can I find info/techniques on bringing in words from a file so that I may place them into an assorted list. Well, placing them in an assorted list another...
[7 replies] Last: Ahh, I see. Thanks. :) (by LB)
A question about Pointers
 
Hi. We all know that a pointer is 4 bytes. first two bytes are for segment address and two second bytes are for local address.(if __FLAT__ is defined) I want...
[2 replies] Last: Well, the more general question is, how does a compiler know that a se... (by kfmfe04)
forms application
 
hey..i'm new in programming..i've learned the basic c++ programming and now we need to make an mdas calculator using forms applications..and i don't know how..c...
[no replies]
ofstream ineterfering with the rest of code
 
Hi, ive started learning c++ about 3 week ago so be lenient with the code style. Im writing a solver for sokoban. I've written a method to write a txt file ...
[5 replies] Last: UPDATE: It does happens without any O option turned on the change in ... (by hypnotoad)
graphics.h library
 
i have a dev c compiler but graphics.h not working..any solution?
[2 replies] Last: http://codecutter.org/tools/winbgim/ (by Duthomhas)
Do I really need unordered_map?
 
I need to store about 0.1million int into the unordered_map and need the key(int, int) to search them The size of the data are fixed, and I don't need to cha...
[2 replies] Last: Thank you Galik, now I think I know what data structure should I use... (by stereoMatching)
linking error
 
I have this vtk (www.vtk.org) example i got from wiki. It compiles and executes perfectly. Its a very small piece of code. I have a different c++ project wh...
[6 replies] Last: yes, that is precisely what it was. Should have figured it out on my o... (by cpluplusrat)
2D Array problem
 
Hi, I'm working on my first program in C++ (switching from Java) and I'm having a problem with a 2D array and pointers. I have 4 arrays of data structures (s...
[7 replies] Last: My posts were sincere. I have never thought to declare an array with ... (by closed account D80DSL3A)
coding
 
I have a question about the following virtual.cpp code: #include <iostream> using namespace std; class Base { public: Base() {} ...
[10 replies] Last: They couldn't come. They are in a very important meeting. (by m4ster r0shi)
by tupaiz
helo everyone...can you really write prog
 
i'm kind of new in C++. now is that,i'm in real need of any help to solve this question: Write a program that uses loop to perform the following steps : a....
[16 replies] Last: #include <iostream> #include <iomanip> using namespace std; int... (by tupaiz)
do I need to use "hash_value" function in the unordered_map of boost?
 
i am curious about the unordered map of boost this is the first code I wrote /********start of my first code************/ typedef pair<int, int> axis; t...
[no replies]
pointers
 
So far i have constructed the following to produce the output 3 (the address) but i cant seem to make it produce the value in that address (10) :( Can anyone h...
[10 replies] Last: OK i see how it works :D just wanted to make sure i got pointers compl... (by swalton)
int to double
 
Im almost done with this program but encountered a problem :( #include <iostream> using namespace std; int main() { double *dp ; for ( int i = 0;...
[2 replies] Last: Awesome thank you :) (by swalton)
by Eyecon
beginner c++ program "cannot be used as a function" problem
 
Can you explain me please what the problem here is and give me an example if its possible!! #include <iostream> #include <cmath> using namespace st...
[7 replies] Last: First of all, you can just do and not [(i)] . The error is bec... (by LB)
September 2010 Pages: 1... 56789... 32
  Archived months: [aug2010] [oct2010]

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