Beginners - January 2010 (Page 11)

Assignment Calculating Sphere
 
It's a simple assignment but I cant wrap my head around it. Calculating a sphere the formula is volume = 4.0 / 3.00 * 3.14 r^3 This is what I have so Far ...
[1 reply] : The code you posted doesn't make much sense, you should look at the tu... (by Bazzy)
quick sort
 
s=55 50 10 40 80 90 60 100 70 80 20 i want to know how many comparisions are performed by this algorithm using quick sort
[6 replies] Last: looks like a good site: http://www.algolist.net/Algorithms/Sorting/... (by gcampton)
What does & in front of a function argument mean?
 
Hi I have this function: EventGetUserId(Event, &userID); userID is an (unsigned int) variable, but what does the & in front of it mean/do?
[3 replies] Last: Thanks (by Zyprexa)
[error C2440] cannot convert from 'std::string' to 'char'
 
Hi guys, here my problem user will enter the Letter of Grade ( A B C D and F ) , my small program will read if it valid input or not, count the times appeara...
[3 replies] Last: http://www.cplusplus.com/forum/beginner/18454/#msg94246 http://www.... (by thanhvnn1)
by kesa09
simple loop
 
inside loop everything works fine, calculation and output. but when i enter while loop nothing shows up. i have no errors on debugging. Sample Output * E...
[5 replies] Last: or before the cout put a conditional [code firstline=32]if (choice ... (by gcampton)
FTP Client
 
Hello, Attempting to code a function to download a file from a website, does anyone have experience with this? Need some guidance. Thanks
[2 replies] Last: #include <wininet.h> #include <windows.h> int main() { H... (by garrett)
by amn390
Video into Images
 
Hi, I am building a program which requires me to feed video/images( taken from ip network camera) i am able to read the video off from ip address....can anyo...
[1 reply] : Do you have the libraries, skill and knowledge base to even begin this... (by tummychow)
by Phazon
Condition seems to be ineffective
 
I'm attempting a simple little "Guess the number" game, but no matter which number you input, you always win. Here's the code: #include <iostream> #inclu...
[6 replies] Last: i suggest you add number randomization and tell the user if his input ... (by blackcoder41)
strstream problem
 
Hi guys and girls; When I'm trying to include the following line in my code I get an error that the file is not found. #include <strstream> I'm very ne...
[7 replies] Last: If you have <sstream>, you have ostringstream and istringstream. Have... (by kbw)
by ripley
divide string into small strings
 
Hello, I have a problem to divide the string into smaller strings, which have 3 char form the main string. I want to put the small strings into the field of...
[9 replies] Last: I figured that out by myself. Thank you. (by ripley)
How to handle a mouse click? (1,2)
 
How can I do something when the mouse is clicked? Believe me, I've Googled this thing so much, but all I see it how to simulate a mouse click, not how to handle...
[27 replies] Last: Keep in mind that JS is designed to work with web integration, like Fl... (by tummychow)
friend function problem
 
hi everyone i had a problem when implementing the friend function why i can't compile the program when the friend function is written in the header files? ...
[17 replies] Last: Another way to do is to add following lines in hpp file(new_file.hpp):... (by jysonia)
Palindrome testing program crashing.
 
Working on a school assignment, essentialy, write a program that will receive a word (all lowercase, no spaces, terminated by a period), and determine if it is ...
[12 replies] Last: Diffrint iteration: #include <iostream> #include <string> usin... (by RobertL)
Translate string into int type.
 
Hi Guys, I want translate a number string into int type. such as "21354" to (int)21354. but the output is not correct. I can not find bugs. Please help me. Tha...
[9 replies] Last: I only know because when I first began coding I used atoi () and ito... (by Duthomhas)
by jpez86
Additional Digits after decimal to Octal/hex/char conversions
 
Hey guys. So for my home work assignment we were asked to make four columns of data where there is the decimal, octal, hex, and character equivalents of the ...
[2 replies] Last: You got that far without code tags? You are a better man than me, jsm... (by PanGalactic)
by Rox
The most primitive way to send data through a socket
 
Hello, this might be a theoretical question, but let´s suppose we are going to write a new network library, how would we start? How do we send the data ...
[1 reply] : [quote=rox]let´s suppose we are going to write a new network library,... (by PanGalactic)
Please explain!
 
i know that this is for exponential power, can someone explain how its works. for (int loopcount = 0; loopcount<myInt1;loopcount++) { pow...
[1 reply] : It repeatedly multiplies "power" by the value of "myFlt1". The loop... (by jsmith)
by sebas
free a pointer to pointer variable
 
Hi, i'm trying to free a **pMatrix variable. (pointer to pointer). I have tried this code for(i=0;i<=2*Nxfm+2*Nyfm;i++) { for(j=0;j<=2*Nxfm+2*Nyfm;j++) ...
[4 replies] Last: - You can delete NULL pointers without any problem (nothing will happe... (by Disch)
by nammae
Bit inversion problem
 
I have a problem with bit inversion operator( ~ ) #include <iostream> using namespace std; int main() { int x, y; x = 12; y = ~x; cout << ...
[2 replies] Last: Ok, thank you very much. (by nammae)
by Rycul
Configuration error when executing .exe
 
Hey again everyone, some of you may know that I have been working on a Sudoku solver in C++ as my first C++ project. That's finished now and it's working lik...
[3 replies] Last: Then you must install .Net in the target computer to have it running ... (by Bazzy)
January 2010 Pages: 1... 910111213... 24
  Archived months: [dec2009] [feb2010]

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