Beginners - February 2010 (Page 8)

Graphics?
 
I wrote a little program and it works fine. But i want to ask you what app can i use to create graphics for my program? I mean to don't open in command prompt, ...
[5 replies] Last: When you say "graphics" we assume you mean something along the lines ... (by white ranger)
Passing structure elements to a function.
 
I am trying to work out the best way to use a function that performs linear regression calculations for a set of x and y data values. I have included my code...
[2 replies] Last: Thanks, you're right it does make more sense to use a couple of conve... (by Kaveish)
Confused about wording of exercise
 
I'm trying to complete an exercise that begins as follows: Define a float variable. Take its address, cast that address to an unsigned char, and assign it ...
[1 reply] : Essentially you are accessing the individual bytes of the float variab... (by jsmith)
how to read the top element in stack?
 
hi all. i want to ask something about stack. my assignment require me to do the bracket checking. for example if i find ( or { , i push it into a stack. the...
[2 replies] Last: a really dumb question, but do you have the above statement within the... (by Incubbus)
by twinky
what program do you need to make programs??
 
i am a complete begginner, and i am doing fine learning the actual code. but i do not understand the process of actualy making a program, for example, what wou...
[1 reply] : check out What do you need to program in C or C++? http://www.cprog... (by blackcoder41)
by drw4d
setw within a loop only works on the first iteration
 
I am trying to output data that I have read in from a pound sign delimited file. Here is the appropriate section of code as I have written: string tool; do...
[1 reply] : I don't know if this was the corret fix, but I've added the italics co... (by drw4d)
Why not use "using namespace std;"?
 
I see people using "std::cout" or "std::cin", and I'm curious if there's any reason to not use "using namespace std;" at the beginning of the program. Does appe...
[5 replies] Last: Ohh, that makes sense. I was just talking about seeing std::cout in th... (by closed account jwC5fSEw)
How to properly declare static data members?
 
I tried to declare a static data member in the header file of my class (Square). I got the following error: Square.cpp:13: error: expected unqualified-id b...
[1 reply] : In the cpp file int Square::squaresSolved /* = some number, if y... (by jsmith)
Pointers Homework (1,2,3,4)
 
Hello ! I started to learn to work with pointers today. I wanna make some exercices, but I don't know what should they sound. I write, I experiment things...
[79 replies] Last: HAHAHAHAHAHAHA XD (by m4ster r0shi)
by Zakuro
Approximate Pi
 
Thanks but I've figured out how to fix it on my own.
[10 replies] Last: also why do you have the variable trial3 yet never use it (by cmccmc)
by cmccmc
exponents? (1,2)
 
I'm making a program so that the user enters the base and then an exponent and then it displays the result. My code so far is float Base; float Exponent;...
[20 replies] Last: ok thanks for the help I was using vs2010 and it auto closed so yea. T... (by cmccmc)
Class instantiation
 
MyClass objClass; objClass.saveStuff(); /*==================================*/ MyClass* objClass = new MyClass(); objClass->saveStuff(); ...
[1 reply] : Besides the fact that the second one is a pointer and dynamically allo... (by tummychow)
by orr123
indices in vectors
 
Hi, I am using vectors for maintaining a sorted list, I am fine with using iterators and vectors but I want to 2 indices for each node of the vector. Can so...
[3 replies] Last: class containsVec { public: std::vector<string> thevectori... (by tummychow)
display_it... what does it do exactly?
 
I don't exactly understand this "display_it" command. I get that it's used as "display_it(double,int)" but I don't understand its purpose. I got it from part of...
[3 replies] Last: Thank you guys sooooo much, I totally get it now. :D (by Oni Kami)
Readin a Xml file
 
hi everyone i need to read a xml file that look like this <PERIODIC_TABLE> <ELEMENT number="1" name="Hydrogen" symbol="H" period="1" group="1" series="N...
[no replies]
by Kairi
displaying pyramid
 
Thanks. I got it, fixed.
[9 replies] Last: ok you want your code #include <iostream> using namespace std; ... (by blackcoder41)
Loops
 
I'm a total C++ beginner, and this may be an obvious question to most of you. How do I get one loop to start at a certain time during another loop? Say I ...
[1 reply] : Ah, polyphonics... I'm not sure that's the solution you'll find to be ... (by tummychow)
by vlad61
compilers
 
what is the difference between using a compiler of high quality like visual studio and something free and opensource like codeblocks? the code is still all t...
[4 replies] Last: There's nothing wrong about a free compiler or IDE. If it's any good i... (by tummychow)
Trying the Game of NIM.
 
I have an assignment for my Intro to C++ class that I am having trouble with. I've got the majority of the code done, it just needs a little fine tuning. The ...
[5 replies] Last: Alright, thank you so much! #include <iostream> #include <ct... (by cassadagax)
Branch prediction using GAG
 
I want a function that can implement GAG branch prediction in COmputer Arch. THe function for GAp is not working correctly even after tweeking the code
[2 replies] Last: Is this a joke posting? Are you implementing a processor or VM of s... (by Duthomhas)
February 2010 Pages: 1... 678910... 32
  Archived months: [jan2010] [mar2010]

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