General C++ Programming - October 2008 (Page 10)

by codes
dynamic array of strings problem
 
Can anyone figure out why each of these are writing to the same address space. I can't use anything else but a dynamic array of strings. When I write B's to g...
[1 reply] : You are not using strings correctly. generationA = new string ; ... (by jsmith)
by kwncy
how to make CALENDAR in C++
 
can anyone finish this program for me? ive tried my best, but i thats all i can do! the program is that your input in the month and year, and its output is...
[5 replies] Last: Ok, forget C++ for the moment. Can you explain the math to me first? ... (by jsmith)
new to c++
 
i m a begineer in the field of programming.... so can u tell me to choose an efficient way to become a sucessful programmer???? which book should i prefer??...
[4 replies] Last: How about here? I learned from here ^^. (by chu121su12)
Inheritance and the keyword SUPER
 
Hi, I have a class cat that extend class animal. I want cat to be able to call a method in animal that is also defined in cat. The method is feed(). If I ...
[3 replies] Last: Thanks Faldrax, That was exactly what I was looking for! Jake (by sixtyfootersdude)
by lipune
static
 
What isthe use if we declar a static array.
[2 replies] Last: Thanx for your help. (by lipune)
Usb Interaction
 
I have been searching for a while now for a way to interact directly with hardware with c++, particularly the usb. I will be running (and coding) it under windo...
[no replies]
user defined function
 
can i use this as a user defined function? or is there something wrong with it my debugged errors on it for some reason (all int variables and defined in code)...
[2 replies] Last: FYI: doing that will NOT actually edit the values that you have passed... (by firedraco)
by kwncy
Calendar from 1901 to 2008 in C++ (i have started, anyone can do it for me)
 
please help me to finish my calendar! it is a C++ program that you will input the month and year. then the output will be the calender of the asked month an...
[2 replies] Last: okay lets just talk on the first thread that i made! (by kwncy)
How to transform this code into [Functions]?
 
I need to change my previous program (below) to use functions such as: int getIntSum(string s, int exitVal) quizSum = getIntSum("Enter a quiz score", 0); ...
[1 reply] : why do you need all the loops in there? is that required or are you ju... (by ddog6785)
File IO...
 
Hello, Let me preface this question with I have been up and down google to no avail looking for the problem. I'm having a problem using iterators and STL w...
[5 replies] Last: That does work. Thank you for the help, I appreciate it. Anthony (by agabriel)
Literal Space in system()
 
I need the program to create a folder inside of C:\Program Files. I tried typing system("MKDIR C:\\Program Files\\FILENAME") but it ends up creating a folder...
[2 replies] Last: Yep, that worked. thanks! (by aeronet)
Problem in using System namespace
 
Hi All, I am using DirectoryInfo class to find a specific file from all the locations in system. For that i have written the following code, My Code: ...
[2 replies] Last: Hi Actually I don' know C#, But i need to find the specific file fr... (by sivasakthi)
Drawing with C++.
 
I have to draw the image that is in this link below: http://people.msoe.edu/~woelfl/a2_150.htm I have a lot of code but this is what actually does the fig...
[1 reply] : THIS IS ALL THE CODE IF IT HELPS /* CS 150 Assignmen... (by foozin34)
by gAaRa
Inserting a Bitmap Image
 
Hello People I need some code using which i can insert a bitmap image (.bmp file) onto the screen. I prefer using Borland C++ but if needed the code can b...
[1 reply] : You'll need to use the Win32 API. (Stick with the modern compiler.) ... (by Duthomhas)
Listening to a folder and File Manipulations
 
Hey all! I'm writing a proggie that will "listen" to a folder, when this folder is filled with some files (doesn't matter how many, even one) it will take th...
[4 replies] Last: It could be a char* too... depending on how you are compiling. Unle... (by Duthomhas)
How to: Make multiple seed generations
 
I have a question. Right now I'm working on rather simple game. But it has many randomizations. About 10 of them on each run and it's running it over and over. ...
[2 replies] Last: Don't do that. You are abusing the random number generator. Use sr... (by Duthomhas)
why do push_back() and direct access work fine in these codes?
 
Hello, could someone explain me why this two codes work? I got surprised when I found out that I can use either push_back() method or direct access mtr when m...
[13 replies] Last: It doesn't need to know. A vector has three data members: start, end,... (by jsmith)
by Gonen
Question about QT
 
Hello, Yesterday I downloaded QT (For windows). I installed it and compiled it and everything was OK. now, when I am trying to include classes of QT, my ...
[8 replies] Last: Okay , i will try it. thanks a lot again. edit: it worked. Tha... (by Gonen)
Array Question
 
I want to write a program to print all those elements of a matrix that are not diagonal elements. Please tell me how to write it.
[1 reply] : See http://www.cplusplus.com/forum/beginner/1/ (by Faldrax)
regarding string
 
Hi guys, I'm wondering why my string.length() doesn't work. #include <iostream> #include <map> #include <string> using namespace std; int main() { ...
[1 reply] : What does it output? (by jsmith)
October 2008 Pages: 1... 891011
  Archived months: [sep2008] [nov2008]

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