Beginners - November 2008 (Page 2)

by zzz
wrong answer
 
please, take a look at this n is given. a =1/(i+j) Example Input: 3 Output: 0.50 0.33 0.25 0.33 0.25 0.20 0.25 0.20 0.17 #include<stdio.h> #inclu...
[3 replies] Last: thanks a lot (^_^) now it's working correctly (by zzz)
Totally lost about assigning values int, static, string, static string, etc, etc
 
First let me explain this is for a video game and the code is nearly identical to C++, it does not support signed, unsigned, short, or long, and I think char bu...
[6 replies] Last: int x; This declares x to be an int. As simple as that. It tells the ... (by helios)
by Timbo1
dev c++ compile errors
 
here is code #include <iostream> using namespace std; int Main() { int First = 0; int Second = 0; cout << "Sim...
[3 replies] Last: After you fix everything %51 told you, the last line in main() ("Opera... (by helios)
Comparing Characters?
 
I have a character array set up and I need to see if a specific character in the array is a certain letter. I have tried: if (code =="E") cout<<"1"; ...
[4 replies] Last: Yes, that would do it. if( code == 'E' ) // assuming code is a... (by jsmith)
A problem with an array of C-Strings
 
I've go quite a strange problem with an array of strings. This is a program made to sort an array or strings in ascending order (ie the first character of the a...
[4 replies] Last: OMFG that was such a stupid mistake. Thanks for the help, the program ... (by Poke386)
Object Creation during Run Time with Windows Forms
 
Hello, I'm trying to create a GUI that would display a number of objects whenever I type the number into a Text Box during run time. I've only dealt with object...
[1 reply] : Get the value and use it as size for a dinamic array (by Bazzy)
getch() Question
 
Hello. I have tried to use the function getch() . I have a problen with it. getch() , I heard, will get the input without the user having to press ENTER with ...
[3 replies] Last: Thanks jsmith! That worked well! @Poke386 - cin.get() doesn't work ... (by bluezor)
8 erros that are need to be fix
 
Hello I'm PSPMAN90 and I'm making an console Program that calculate the electricity bill. When I compiled I get this 8 errors that I tried to fix but I couldn't...
[6 replies] Last: Thanks everyone for helping me to fix those errors. I'll be around to... (by PSPMAN90)
Pointer
 
I have pretty good grip on pointers but I think I missed something in my code: #include <iostream> using namespace std; void pointerfunction(int* piPoin...
[2 replies] Last: thanks for the hep now only about 900 pages of book to go (by willia23)
strange result when converting float to int
 
I needed to convert a float to a string with only two decimal places (currency), so I found itoa on this site. I got that working without any problems. Here's...
[1 reply] : floating point numbers are not entirely accurate. The way they are sto... (by Zaita)
by T4400
rotate a matrix
 
Hi, I'm new to C++ and I hope I can find someone to help me here. I have to make a function that rotates the elements of a matrix (with n*m elements) with a mul...
[3 replies] Last: Your best bet, actually, would be to do it on paper first. Get your... (by Duthomhas)
by ZINX
Restricting a prompt
 
I'm new here, hello everybody. What is the most common way to prompt a user for a choice (eg. to type y/n) so that the program allows only y or n chars to be...
[2 replies] Last: Thanx (by ZINX)
Error accessing private data in a class
 
I'm new to programming and I'm having a problem with an assignment I was given to add complex numbers. When I run the code it always points to these sections o...
[5 replies] Last: That should be ok, though. sum() is a member function of complex, and... (by jsmith)
Getting started with DirectX
 
Hey All, I am developing a basic engineering design application and I feel the need to incorporate some graphics in my program. I have no prior experience of...
[3 replies] Last: It just shows how to work with DirectX... If you want to build your o... (by Bazzy)
multi function calculator confusion.
 
Ok, so im obviously no c++ god at all as ive posted like 5 codes in the last day or so, but i was wondering why this program wont perform the given operation. h...
[3 replies] Last: i think this is what you mean just change the + to */ and - i... (by zoldri)
Programming on vista
 
Hello ok clearly i am missing something here because i have literally just started programing i have read a few books and i have read through alot of the guide ...
[3 replies] Last: Hi if ur running on vista first of all god bless ye I was using vista ... (by Pat Nevin)
Structures and reference...
 
As part of a decent size project I am doing for school I need to zero an entire array of structures although was having a lot of trouble, could anyone please po...
[4 replies] Last: Sorry that was my fault. that was an old version of paste bin, the cur... (by bazanaka)
very simple and small
 
I've been trying to put together a few lines of C++ code to try and make a very simple program. I haven't used this in a long time, but I used to use a freeware...
[7 replies] Last: wow. how do you use the beep comand. now thats high tech. (by davidbball13)
nested if
 
Hello, I wrote a program that let you enter 4 tests scores and calculates them. And it suppose to give you the average, grades, and a message if you did really ...
[5 replies] Last: I'm still having issues You'll have to be more specific. My psychic... (by helios)
String-Array?
 
I am very new to C programming. Can I make an array of strings so I can display data, line-by-line, pausing between each page? The only alternative is forcing...
[4 replies] Last: Thanks a lot! Deques will work perfectly for what I want to do. (by Syntax42)
November 2008 Pages: 1234... 19
  Archived months: [oct2008] [dec2008]

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