Beginners - January 2010 (Page 20)

by ripley
pointers
 
Hello, i am reading article about pointers. and there is a code like this: #include <stdio.h> #include <iostream> #include <conio.h> void not_alt...
[2 replies] Last: you explained that to me very well. i get it now. thank you. :) (by ripley)
Loop only executed when I move the mouse/press a key
 
I have made a simple 2D physics engine with a mainLoop(), only the mainLoop only runs when I move my mouse or press a key. I suppose there is a simple soluti...
[6 replies] Last: I will use peekmessage, thank you both. (by Pascal666)
webclient.downloadfile/urldownloadtofile()
 
Im using visual c++ and i have a problem with any function or namespace that has the ability to download somthing.i tried using a system.net namespace but it...
[2 replies] Last: i have no idea it looks like this System::Net im using microsoft vis... (by arterialnine)
Clear .txt File Without ios::trunc
 
Hello, I am trying to log my program's average iterations per second, and I made it output to log.txt, but because it is an average, I want it to overwrite the...
[3 replies] Last: I suppose I could just keep track of the average and write it at the e... (by kevin06s)
sum of array indecies
 
I have to write a program that consists of the following: - Function to add up 5 salaries (I should use arrays) - Function to find the maximum salary - Funct...
[4 replies] Last: We are not allowed to use pointers in this assignment, but thanks for ... (by assaado)
install error
 
hi, i am new to c++... after instalation process while run a pgm i got this error "UNABLE TO OPEN THE FILE "IOSTREAM.H" ".. I DONT KNOW HOW TO CHANGE THE D...
[7 replies] Last: is it just a pointer to an armpit fart, or is the real gaseous thing s... (by BettyBoopTS)
by Vic
isdigit(int c)
 
Sorry for this, but i am new to c++. I need to check if input is numeric, and was thinking to control this with the following code. int b; cin>>b;...
[1 reply] : isdigit works with characters. If cin >> b fails, the value of 'b' w... (by Bazzy)
by btripp
Using Multiple Languages for one application
 
What would you have to do in order to use different languages together. Say for some reason I was writing an application and I wanted to use Visual Basic for th...
[5 replies] Last: thanks for the info guys. (by btripp)
String Manipulation Question
 
Hello, First of all I'm really if i posted this here, when there is another topic about this. I can't seem to find it, and I'm really desperate to find the a...
[7 replies] Last: I dont understand the 'Duration' factor!.... (by DemienBjarne)
by mozly
unsized array declaration
 
So I copied a code exactly from the book here is the snipet where the problem is: int main(int nNumberofArgs, char* pszArgs ) { cout << "This program con...
[13 replies] Last: code bloat. How do you figure? std::string functions are likel... (by Disch)
How do I use a function of another *.cpp file in my main.cpp file.
 
I have been searching in the tutorials for a while, but couldnt find anything. Basicly I have a form on which I want to draw a circle, but how do I use the d...
[4 replies] Last: Obligatory Link: http://www.cplusplus.com/forum/articles/10627/ (by Disch)
Rebuild every time i want to debug
 
I looked but didn't find any topics relating to this but sorry if it already exists. I don't know whether it is something that i am doing wrong but before i ...
[1 reply] : You must compile the program to run it (by Bazzy)
+= and -=
 
Can somebody give me a quick explanation on what they mean and how they work? Thanks! PS I have looked around and cant find it!
[7 replies] Last: (I presume that the last five are bitwise?) Correct (by R0mai)
by estri
password using arrays
 
hellow, can anybody help me to make a code of a password looping using an array....
[1 reply] : Clarify. (by tummychow)
Fraction calculator
 
My first program implementing functions, reference parameters, abstraction. My main focus here was to keep all variables and calculations out of main. ...
[14 replies] Last: ok thanks. (by blackcoder41)
float f = 1 / 3
 
float f = 1 / 3; cout << f; 0 How can I make f = .333? I assume that 1/3 is being calculated/truncated as an int . --- EDIT: How do you get o...
[3 replies] Last: EDIT: How do you get output to line up with code on this board? Y... (by jRaskell)
by giro82
Exception handling /Multiple form application in Builder
 
Hi, I am writing a application containing one main form Form1 with few standard components on it by witch user input his data. I am trying to make protect...
[1 reply] : I wrote new, small application showing the same problem: #include ... (by giro82)
Streaming Audio Graphic Equalizer
 
One of the programs I eventually want to write is a visual representation of the output of streaming audio coming from the sound card. I am early on and have NO...
[9 replies] Last: Thanks Chris!! I just finished downloading and installing Cygwin and d... (by BettyBoopTS)
wrong code (1,2)
 
i have this code what is wrong with him /* search_engine.cpp */ #include <iostream> #include <string> using namespace std; void first_screen (int...
[35 replies] Last: Oh ok... (by chrisname)
by anne92
number randomization with bisection
 
Anybody can help me? this is very imporant to me. I can do randomization from 0 to 80 as the task is saying but i don't know how to put bisection in this. As th...
[4 replies] Last: Duoas is right! I suggest to make your own algorithm first. Use you... (by olredixsis)
January 2010 Pages: 1... 1819202122... 24
  Archived months: [dec2009] [feb2010]

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