Beginners - October 2009 (Page 18)

by motd
Data structure manipulating ???????
 
Salutations : help me in .... data structures please ......... i know this : data structures are : 1-Non-user defined (supported directly by C) ...
[2 replies] Last: Thankssssssss (by motd)
Bad array output
 
Hello. I'm new here and I need your help. I'm writing a program for my college task. The program is not finished yet. I stucked with a dynamic array. Everyth...
[3 replies] Last: I solved this by myself In the 35 line: sk >> A does nothing. you ... (by Tomasm21)
Tell me about deleting a file from your textfile
 
Good day sir Can someone teach me how to delete a file or line in a textfile. By the way, what i am trying to figure out this time sir is to dele...
[8 replies] Last: I am sorry sir. So i should place the whole file in an array of string... (by nemesiscplusplus)
turtle graphics
 
I am creating a turtle graphics program. I am in the beginning stages of the program and just want to continue down the right path. I am also going to create a ...
[8 replies] Last: I just wanted to get some help with an issue I am having with the abov... (by Afupi81)
strcopy, strncopy
 
I'm trying to create my own versions of a bunch of C string functions. I have strcmp(), strncmp(), strcat() and strlen() working but I can't get strcopy() or...
[3 replies] Last: @kbw :S thanks, I'll try that. @Hannes this doens't make sence: ... (by chrisname)
by hannes
static
 
why doesn't this code work? #include <iostream> using namespace std; class temp { private: static int var; public: temp(); static int lol(); }...
[10 replies] Last: @hannes You can think of it this way if you like: A class declara... (by guestgulkan)
by wachtn
trouble with Code::Block projects
 
When working on a project with Code::blocks IDE, how do you compile a program that is not part of the project? Clarified: Program 1 = project program << kee...
[2 replies] Last: Thanks Bazzy (by wachtn)
by triz
Random number guessing game
 
I'm supposed to come up with a code to have the person give a max value and then guess the number within that max value, with the result being too high or too l...
[1 reply] : Here you run into this problem becouse you declare int guess twice (... (by hamsterman)
Converting 800fastcash to 1-800-327-8227
 
Hello, I'm pretty new to c++ so please help... also I have tried searching the archives and elsewhere on the internet already (perhaps I missed or did not ...
[2 replies] Last: That's stupid. OP's method is closer to optimality. First, store th... (by helios)
Take the input & output file name from the command line...
 
Beginner here. Working on a program that can be run by the command: "Aprog inputfilename outputfilename" Make the program run, then take the 'inputfilenam...
[1 reply] : There's only one way: int main(int argc,char **argv){ //argv ... (by helios)
Translation & Rotation of a circle
 
OK! So I got this program I need to get working, and it doesn't want to work for me, which makes me sad. Basically, you have a circle, which will be translated,...
[1 reply] : Nevermind, figured it out! (by Faeedor)
by JRevor
Descomposing your program in .hpp and in .cpp
 
Im having problems with this program. I get this only error [Linker error] undefined reference to `Monomio::Monomio(int const&, unsigned int const&)' (tha...
[7 replies] Last: Whoops..i delete the answer. Anyways here is the link i posted previo... (by JRevor)
random using srand() and rand()
 
Hi I'm trying to create a program for a school assignment, that requires that it generates 3 random numbers between 3-10.. but the problem I am facing is that i...
[2 replies] Last: BEAUTIFUL! Thanks so much Bazzy! (by keewong)
How to make it understand this?
 
It said to height times eight divided by 288 and add 1/8 of an in for each 10 years over 30. so like on 40, 50, 60...etc
[6 replies] Last: so im pretty slow at this but how would it understand that they numbe... (by chrisname)
Passing a dynamic array of structures to a function
 
Hello, I have to create a program that lets the user enter how many speakers he/she needs to enter information for,then let them input this information. I...
[2 replies] Last: ......Thank you very, very much, Im gonna go beat my head in with a... (by nickg140143)
by Krypt
Finding a the position value of a number
 
So basically I'm writing a small program that asks the suer how many numbers they wish to enter. Then if any of those numbers is equal to a 9, the program shoul...
[10 replies] Last: //-----------------------------------------------------------------... (by eryar)
by meesa
Why do I not get the expected output?
 
Here is my code #include <iostream> using namespace std; int main(){ float a; a=(2+(6/10)); cout<<a; return 0; } For some reaso...
[2 replies] Last: Excellent, that worked! And I only had to add it to the 10. Note that... (by meesa)
easy way to remove trailing '/n' from a c string
 
I am using ctime() and when it prints the string the last character is a '/n', which i do not want. Is there a standard function for removing this trailing new ...
[2 replies] Last: Is there anyway I could declare the time in my header so I could store... (by closed account iw0XoG1T)
Explain Structure
 
Hello! I am a C++ beginner.I have recently taken a lecture on structures in C++ but couldn't understand it. Can any body explain it in detail & in simple lang...
[2 replies] Last: Try these tutorials, they are quite easy to understand: http://www.cp... (by Bazzy)
Special case of dynamically allocating a class of objects.
 
I have a class template here that has a default constructor and another constructor that can take in one parameter to initialize the object. I want to dynami...
[2 replies] Last: Ah, thank you so much! This is exactly what I need to solve this probl... (by MysticHLE)
October 2009 Pages: 1... 1617181920... 25
  Archived months: [sep2009] [nov2009]

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