Beginners - October 2010 (Page 2)

temperature convention program
 
hello i cant get my results under the right degree name any suggestion?? int main() {const double max_celsius =235; const double start_val =-100; const dou...
[no replies]
by seklum
PID
 
I am just beginning learn C++, and I need to find the process ID of a program. I just learned about functions, and I am trying this out. I finally got all of my...
[3 replies] Last: Note that GetProcessId is a WinAPI function. On other systems, you'd h... (by Athar)
how to delete an element in multdimensional array??
 
any body who can help me to solve the script for delete an element in multidimensional array this is my script but it can't work, pls fix it cout<<"\n\nI...
[1 reply] : Firstly, http://www.cplusplus.com/forum/articles/17108/ Then, do ex... (by hamsterman)
date verification
 
how to implement this in the code? bool checkdate(int m, int d, int y) { //gregorian dates started in 1582 if (! (1582<= y ) )//comment these 2 line...
[1 reply] : Isn't that already implemented? PS: use [co de] tags (by Bazzy)
how to delete an element in multdimensional array??
 
any body who can help me to solve the script for delete an element in multidimensional array this is my script but it can't work, pls fix it cout<<"\n\nI...
[no replies]
by dhv
function to split and rearrange array
 
Hi, this is actually for a homework project, so I'm looking for some guidance. I need to write a function that will take in an array and split the function, rea...
[no replies]
by Rave
Pointers and printing
 
Hello, i was trying to learn about pointers and i came across this. #include <iostream> using namespace std; int main() { char *p; int i=0;...
[1 reply] : char* is a string. Therefore, printing a char* will print a string. No... (by hamsterman)
by harpo
read and write .ini
 
i am using dev blood shed c++ with windows vista 32 as for my problem how do you read from a .ini file and set it as a variable and also write to a variable...
[15 replies] Last: ok so i read the input/output files thing and tested it and i now und... (by harpo)
Output alignment
 
I pretty much figured out the code that I need to produce the output that is desired. What I don't know and need help with is to get the output to line up becau...
[3 replies] Last: Your Welcome :D ! (by lucifier)
by yts
Class
 
Write a program to define a structure named CustomerRecord that contains name, account_number and balance. Use array to store 5 records of the structure. Create...
[5 replies] Last: @Disch: I know it's not best to do that. That's why I said easy fix, n... (by closed account D80DSL3A)
by nquadr
Cannot get this code to work
 
#include<iostream> using namespace std; void calculateTax(double subtotal, bool isFresno, double& salesTax); int main() { double salesTax=0; boo...
[5 replies] Last: I have edited the code, but it is not giving me the answers I would ex... (by nquadr)
Why does my program crash when compiled w/ g++?
 
I don't understand why g++ doesn't like my code. I can compile and run this program just fine under Windows 7 using the cl compiler from Microsoft's "Visual Stu...
[2 replies] Last: ne555 (255) said for (int i = 0; i < x; i++) { cout << i << ... (by jamesmk)
by ToniAz
Integer to clock format - Crash
 
Hello everyone! I am supposed to test the runtime of some algorithms with diffrent complexities as a function of m. Given some values for m, I need to change...
[1 reply] : It should have crashed on Windows, also. (You are just lucky that it d... (by Duthomhas)
Check value of struct with Multiple Bools
 
Hello I have a function the takes the following data structure as an argument typedef struct{ bool var1; bool var2; bool var3; bool var4;...
[5 replies] Last: Out of habit. When you're dealing with complex objects or want to modi... (by Athar)
First Program. Compiles (sort of) then ".. Undefined reference to 'Winmain@16'
 
This is my first program. Written on Notepad++ Compiled from command prompt using MinGW. #include <iostream> #include <math.h> using namespace std ; ...
[6 replies] Last: Thanks for the time spent explaining this Bazzy. References appears t... (by nickallison)
by nquadr
do while statement with string
 
// I am not able to terminate the loop even if I enter x or X// #include<iostream> #include<string> using namespace std; int main() { string sc; ...
[2 replies] Last: Thank you. (by nquadr)
Write to text file through dll
 
Hi, guys. I want to write text to a file, but I want to do this via dll, with a program compiled and called from another application. The program is this: ...
[3 replies] Last: that works from within ARENA.DLL (by dspain)
by dspain
reducing integers by a specific percentage
 
hello all im developing a text base MUD and have recently implemented a type of spell that puts a shield on a target and as long as this shield is on the target...
[5 replies] Last: ok after ding some playing i came up with: double damage = 15; flo... (by dspain)
by Rave
Cin>>and types
 
Hello. i wanted to learn how C++ takes in input, i understand, initial white spaces are skipped, and after it starts to read it will stop reading on the enco...
[1 reply] : Once an input operation fails, the stream state changes from good to... (by Bazzy)
by dandy
void and int (1,2)
 
void main() { } OR int main() { return 0; } which one is better? and tell me the reason.. thank's
[37 replies] Last: yeah it's important, but it's ignored by the others (by dandy)
October 2010 Pages: 1234... 42
  Archived months: [sep2010] [nov2010]

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