Beginners - August 2008 (Page 12)

Runge-Kutta second-order method
 
#include <cstdlib> #include <iostream> using namespace std; int main() { double t,x,h=0.1; //output loop-- for(int i=0;i<=10;i++){ ...
[5 replies] Last: May I ask why you want us to implement it for you? There are libraries... (by exception)
by Reiyn
2nd switch gets error..
 
I am writing a program that will instantiae with 2 colors for a flag, and accept two colors from the user to change them. On my second switch I get a "error C26...
[7 replies] Last: Thank you I will give it a go. (by Reiyn)
Very Basic Char String Doubt.
 
I would like to have some confirmation to the following. I'm compiling and running the following code without any apparent problems, but I reckon is not righ...
[3 replies] Last: "Hello" <-- includes already the zero character. That means you don't ... (by jmc)
by lain
Problems getting game of 21 to work
 
Create a program in which a user plays a simple version of the card game 21 against the computer. Each player is initially dealt two cards from an unlimited dec...
[12 replies] Last: Finished Game of 21 #include <iostream> #include <ctime> #incl... (by lain)
Printing out Character Arrays
 
Hi, I have question regarding a program I'm doing. We are non-sensense sentences in the form of The <noun> <verb>, the <noun>. The program uses a Word Class an...
[4 replies] Last: Thanks for all your help, I think I got it. int main () { ... (by danielmarc)
having trouble with eclipse
 
I made a simple hello world app in eclipse but when i try to build or debug it says. "launch failed. binary not found." The code #include <iostream> ...
[7 replies] Last: thank you for leading the blind to water (8 (by SomeGuyNamedMatthew)
buttons in win32 console project
 
So i am fairly new to coding and c++ but i was wonder if i can assign buttons in console app's. i want it to do the same type of thing as a "cin >> " but i don'...
[3 replies] Last: It's alright. It is hard to look for something when you don't know wha... (by Duthomhas)
how to read the following code
 
Can anyone help me decipher/read the following code so that I can explain it to myself in simple English? :) Thanks! if (Sp->m_RecPairGroupList.CurHead())...
[5 replies] Last: Just to expand the the comment by Zaita with an example class ... (by bnbertha)
how to get user input for a betting price (ie; 13/8)
 
I would like to get user input on a betting price for example 13/8 I could use two inputs with two variables but is there any other way to do it. I then wou...
[1 reply] : http://www.cplusplus.com/doc/tutorial/basic_io.html (by Zaita)
extern static
 
Hi all, Is it possible to use extern static. I have wrote a program where i used extern static. This was firing a compiler error. But the same i com...
[1 reply] : storage type 'extern' means the variable declared in another file. st... (by anilpanicker)
Pure virtual functions
 
Hi all, To make a pure virtual function we assign a zero to the member function of the base class. Why we use zero. What does this zero means. Can anyo...
[3 replies] Last: A pure virtual function does not work at all - it is by definition def... (by Faldrax)
Hello, I'm totally new to this and require assistance. (1,2)
 
Hello. I hope to one day refer to you all as fellow programmers. I'm new to this Programming thing but I am dedicated and would like to learn anything you can t...
[21 replies] Last: One thing you will also find very quickly (if not already) is that in ... (by Faldrax)
How do I clear screen?
 
I understand that in CMD console, The Cls command would basically clear the screen. And since all the program I am currently writting is run with the window CMD...
[7 replies] Last: He's talking about what to #include so that he can use the system () ... (by Duthomhas)
Self-Referential Classes (Linked List)
 
Does anyone know how does a Self-Referential Class Linked List code looks like? I tried reading Deital but the codes were confusing and there was no example ...
[11 replies] Last: a->b->c->d->e if you want to delete c then make a->b->d->e and del... (by anilpanicker)
by smh
error, probably simple? assistance please
 
alrite i just started learning c++ 3 days ago and i decided to see what i cud put together with the knowledge ive gained so far. so i made a game, nothing compl...
[2 replies] Last: i removed that semicolon and tryed to compile, it fixed that error but... (by smh)
give idea to make a simlpe coding
 
i got a project from my lecture.its about my course study. im an engineering student... so someone plez help me!!!!
[1 reply] : Kiraamisa, you will need to give us more info for us to help you:-) ... (by Faldrax)
Problem about sin function
 
I don't gets actual value of sin function. Such as c++ compiler gives sin(0.18)is equal to 0.17903 but my calculater gives sin(0.18) is to 0.003141587485879563 ...
[3 replies] Last: You are up early, I'm just up late =) Bedtime. (by mikeb570)
Insertion sort
 
int array = {84, 69, 94, 91}; int size=4; int i, j, key; { for (j=1; j<size; j++) { key= array ; for (i=j-1; (i>=0) && (array <key); i++) { array[i+1]...
[5 replies] Last: Thanks guys. I kinda get the idea. anyways, the 'key' works like '... (by unattached)
Unbuffered input
 
I realize I'm playing with fire here, but I was looking for a way to create an istream object for unbuffered input. Any ideas?
[3 replies] Last: Here's an example: #include <windows.h> char pressanykey( const... (by Duthomhas)
files
 
I am working on a project that requires I write to a file. I followedthe example but I don't know if I need to make a file first.In class the teacher just exicu...
[4 replies] Last: thank you for the help. I am sorry for posting the wrong area-- I thou... (by michealj)
August 2008 Pages: 1... 1011121314
  Archived months: [jul2008] [sep2008]

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