Beginners - March 2011 (Page 33)

TempVert Function
 
Just having a little trouble. I get an error when it compiles. Here's my code: // Begin program #include <iostream> using namespace std; double tempve...
[1 reply] : In the future... tell us what the actual problem is. "I'm having a ... (by Disch)
Object-oriented parsing help.
 
I am working on a project I have for a programs and algorithms class. I have posted the Project first and my coding below that. My first coding started as a sin...
[5 replies] Last: And you have to write using namespace std; too. tl;dr means "too long... (by hanst99)
Linked list help
 
so i have been working with linked list lately in my computer science class and i have a program i have been working on for a little while and most of the stuff...
[12 replies] Last: Funny thing! The insert() IS of type void in my own class. I modified ... (by closed account D80DSL3A)
system("SHUTDOWN")
 
i just basicly want to know how to use the "shutdown" function. when i try it doesnt give an error but it displays like a help screen in the console window a...
[4 replies] Last: thanx yall (by cainen172)
changing static variable in a class
 
Hi All, I have a class : template<class C> class BSTree { private: BSTNode<C>* rootPtr; static int treeSize; protected: ... ...
[14 replies] Last: No problem, everyone has this kind of "What was I thinking" moments on... (by hanst99)
namespaces and spacing the friend funcs
 
Hi All, I have a few friend function to a class which i want to place in the same header files. Regarding the implementation and interface details, i don'...
[12 replies] Last: Hi, so the problem i am facing is , making these functions static pre... (by navderm)
How to change "input field" code in dialogue.
 
hello all, I am new to c++, so I got question here: currently I have below code through which the user gives input to proceed. CONTROL "", 1005, EDIT, ...
[12 replies] Last: Yes and I already did so. I've told you exactly what you do wrong, and... (by hanst99)
Namespace
 
Is it possible to save a namespace as a library, and use it without having to rewrite the code? Like namespace std? I made a namespace called, "Namespace black...
[5 replies] Last: It seems you don't even need an namepace try a object: http://www.cplu... (by bboy212)
To Find the Average of submitted numbers
 
Hi Guys I have a homework assignment and I cannot find the average number of random numbers for example: User inputs 1 2 -4 -3 8 and it goes until user inputs z...
[17 replies] Last: Thank you guys, I have solved this problem. Thanks for your ideas and ... (by Uzumaki)
postfix calculator
 
hey guys i'm trying to make a postfix calculator..when you read each char, it check whether it is a digit - if it is, convert it to an int...but i can't get my ...
[2 replies] Last: I got it! Thanks a lot for your advice i really appreciate! (by closed account o1w5fSEw)
by jenia
String objects allocations
 
Let's run this code. #include <iostream> #include <vector> #include <string> int main() { std::string* p_array = new std::string ;//Creates 10 ...
[15 replies] Last: No, you're fine. The mostly applies to shared memory. (by kbw)
there's bug when two digits is used
 
1. Write a program that asks the user to type 10 integers of an array and an integer value V. The program must search if the value V exists in the array and mus...
[3 replies] Last: On line 32, you set move , which is the number of the array you want ... (by Moschops)
how could i fix my codeblocks(it doesnt build)
 
when i push the build button.. nothing happens, no "building log" then when i try to "run the program its says "build it first" but then again,, the build bu...
[9 replies] Last: Could be a sign that your statically linked libs aren't correctly adde... (by ultifinitus)
What is SPSS ?
 
What is SPSS ?
[2 replies] Last: http://www.spss.com/ (by coder777)
by caneta
Heterogeneous container with boost
 
Hi. I'm trying to create an heterogeneous container with boost libraries, but I get a compilation error. Here it's my minimal example: #include <iostream> ...
[8 replies] Last: Solved. Thak you guys. Here the working version: #include <iostream>... (by caneta)
Trouble Custom Font Open GL
 
I'm having trouble trying to adapt (the red book font tutorial) and create my own font. So far the issue I'm having is that my makeFont Function doesn't appear ...
[no replies]
C Parser for parsing and reading Config file with defined format?
 
Hi, I need to parse a configuration file , I need to compare the string variable and get the values. The variable and values are seperated by white spaces, ...
[1 reply] : If all the values are separated by whitespaces, you can use operator>>... (by Bazzy)
Multiple Bools
 
I can't figure out why my bool values aren't getting passed on correctly. I have two bools, one for "sunRoof" and another for "autoTrans". Client.cpp #...
[1 reply] : Car::Car(string mfg, double cost, string model, int sun) :Vehicle(... (by closed account z05DSL3A)
deallocating 2-dimensional dynamic array
 
here's what i've allocated world = new char* ; //new array of char POINTERS for (int i = 0; i < numRows; i++) { world = new char ; } to del...
[3 replies] Last: If the variable is local to a function or block, deleting variable doe... (by techie07)
">>" whats the meaning of this?
 
Whats the meaning of this "<<"? I've tried googling but the search won't retrieve the result
[4 replies] Last: In C++, you can overload an operator. For example: you can not do A +... (by techie07)
March 2011 Pages: 1... 3132333435... 52
  Archived months: [feb2011] [apr2011]

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