Beginners - April 2011 (Page 46)

Multi dynamic array with diferent dimenzions help
 
Hello, I'm having problems reading members of my array... error while reading some memory locations.... this code should create 3D array where each second and ...
[8 replies] Last: @Computergeek01 I'll try use DLL option once I get to that chaper :) ... (by sasanet)
Vector question
 
Hello, there. I've lately started to read the 'Accelerated C++' book that my grandson recommended me, I'm a little new to some of these lower level concepts, as...
[1 reply] : vector<T>::size_type is a typedef for size_t, which is an integer. num... (by jsmith)
two probably not beginner questions
 
question #1: what are the main uses for the libraries <new>, <complex>, and <map>. question #2: i am told to make a program that makes a random 50 char passc...
[2 replies] Last: ok thanx. its over my head though. ill just learn some of that stuff l... (by cainen172)
How to make variable accessible to all application?
 
Hi, I've got many classes and all of them needs one variable, how can I declare that variable so it can be accessible to all my classes?
[3 replies] Last: I hope you aren't planning to create a global variable called i of all... (by Athar)
C: @ Operator?
 
What does @ operator do? Or does such an operator even exist in standard C/C++? While programming Microchip Controllers in C, a popular compiler uses @ ...
[4 replies] Last: BTW, C++ has "placement new" which does the same thing. volatile uns... (by jsmith)
by Mobber
Using accumulator for strings
 
For starter this is my first language and I am taking a class in C++. We have a homework assignment that asks use to input strings and draw a box and places the...
[9 replies] Last: Thanks, everyone for their input (by Mobber)
URGENTT HELPPP
 
Whats the simplest way to convert from int to string? THANKS
[3 replies] Last: There's a simpler way: string str=boost::lexical_cast<string>(12345... (by Athar)
loop to read values from a file
 
can someone please show me what a loop to read each value from a .txt file into the elements of an array would look like?
[8 replies] Last: horance89: you must know what type of data are written in that fil... (by Computergeek01)
decisions, loops sequential files, functions, and arrays, oh my!
 
The program will open a file, read the numbers from the file into the array, sort the numbers into ascending order, and use a binary search to see if a value is...
[2 replies] Last: ...that inspired my idea (by bigfisherman)
looping! :S
 
How to apply while loops when I want to repeat something? problem : Write a C++ calculator that takes two numbers and a letter indicating an operation...
[3 replies] Last: I solved it but I don't know how to apply loops! :/ help me Take a ... (by Moooce)
The void-constructor of mother classes
 
Dear all, I am a very beginner with C++ and object-oriented programing. I am reading some books, but several points are still obscure. It would be nice if I ...
[4 replies] Last: Thank you Athar, kbw, imi for your comments. It works now with the wa... (by chucthanh)
minor issue: rand() = 41 each time?
 
Hello everybody I'm trying to pick up c++ with some selfhelp books and youtube tutorials, and ran into a problem where double num1 - num1 = rand() - cout num1 k...
[3 replies] Last: Yeah, pseudo-random number generators are always deterministic (hence ... (by Athar)
by madman
How do I pass a delegate to a constructor
 
I searched for answers to this but can not find enough detail. Be patient, I'm a beginner using Visual C++. I have created a desktop gui program using Visual C+...
[5 replies] Last: Ah, I see, thanks. (by filipe)
if statement ,error!
 
how to solve this warning!? 2008\projects\lap7.ex3\lap7.ex3\ex3.cpp(34) : warning C4700: uninitialized local variable 'd' used 2008\projects\lap7.ex3\lap...
[12 replies] Last: Have a look at "The do-while loop," which repeats actions until you do... (by chucthanh)
can someone please help
 
hey, can someone please help me to solve all this stuff, i have no idea what to do so PLEASE !!! http://writer.zoho.com/public/gkapoor/c-- THANKS
[7 replies] Last: Purchase a C++ book if your teaching doesn't explain anything( unlikel... (by closed account zb0S216C)
by neron
Selecting words from files?
 
I want to know a way to select specific words not characters in a text file. Example file "the cat ran away" how would I be able to select the 3rd word ...
[3 replies] Last: The proper solution would be to use boost::string::split or an equival... (by Athar)
Finding primes not using % sign.
 
Here are the instructions, I just wanted to know if what I have down is correct. I read the code over and over and it seems correct. I just wanted some input. ...
[5 replies] Last: Due to the condition 2 <= sqrt(n) , the first loop is either never ex... (by Athar)
by bimm
Dev c++
 
Hi.I'm trying to compile a program using dev c++ here is the program: #include <iostream> #include "stack.h" using namespace std; int main() { Stac...
[5 replies] Last: The STL header for stack is <stack>. Is that maybe what you wanted? (by hanst99)
How close am I??
 
Hey guys, heres my assignment: Write a Program that reads the integers between 1 and 100 and counts the occurrence of each number. Assume the input ends with...
[13 replies] Last: when the user input the data just map the number of the data to the a... (by closed account zb0S216C)
Help starting a Battleships game in C++?
 
Hi to anybody reading. I am literally on the verge of giving up on life. I have to create a 1 player battleships game in C++ for my course assignment. I don't ...
[3 replies] Last: @ignotus1: If you are feeling lost, it might be because you need to f... (by jsmith)
April 2011 Pages: 1... 4445464748... 55
  Archived months: [mar2011] [may2011]

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