Beginners - June 2011 (Page 23)

by ecefag
e to the power iota
 
hey guys, pls help me out! i want to calculate the value of 'e to the power iota' in c. how can i do it?
[11 replies] Last: [quote=cnoeval]the name of the Greek numeral '10' That would be δέ... (by m4ster r0shi)
Binary files
 
I'm writing a program that works with binary files, and it isn't reading the file properly: typedef char byte; ... if (!(argc-1)) return ERROR_BAD_ARGUMEN...
[3 replies] Last: Thanks @zlogdan. That helped, though I realized the problem was that I... (by personak)
Passing Char array
 
Hi guy's, So I am basically a beginner. I have used c and c++ for compuatation but beyond that I have done nothing. I have a problem and I have read other foru...
[11 replies] Last: Excellent. Massive thanks to both Kooth and ascii. You's have been ama... (by dave222)
Enums
 
Could someone explain what are enums, and how do we use them? The Description in the site's tutorial is too short to properly understand how it works. Thanks i...
[13 replies] Last: Ah! my bad! Thanks for the explanation. (by Nisheeth)
Find a string and continue past it
 
If I encounter the desired string in a file, how can I get the program to basically continue and write the next lines in a new vector? This is what I did: ...
[5 replies] Last: Considering that the second part it's kinda hard for me, I tried with ... (by brreakerr)
by atcdva
New to C++ help find mistake
 
The bold line is showing error. Illegal else without matching if. there may be other errors, but looking for this one for now. Thanks int main() { const int ...
[11 replies] Last: Thank you!! (by atcdva)
Pointer/Reference etiquette
 
Question is: Should I only pass as pointer (instead of a reference) when I want it to be re-seated? So the syntax f( myStruct* const arg ) never needs to be...
[5 replies] Last: The original question did not involve types; it asked if one should on... (by Moschops)
Artificial Intelligence Algorithm
 
I am Making a Checkers Game....I have made a bit of it...Here is my Coding.... // Project By Shujahat Ali :: Hamza Khan :: Nabeel Ahmed :: // // ...
[15 replies] Last: Did you listen to anything anyone just said? Please don't just dump 1... (by ascii)
Problem with Linked List Example
 
I've been working through "Data Structures with C++" by D.S. Malik and am having a problem with some of the source provided with the book while trying to unders...
[8 replies] Last: @m4ster r0shi Thanks for the informative link. This does help it ma... (by bytecompile)
cin.ignore() question
 
Why does cin.ignore() not keep the console open in the following program?? #include <iostream> using namespace std; int main(){ char b ; int d; ...
[7 replies] Last: Get() waits basically untill you press a key same as pause so which e... (by Albatross)
by madjas
arrays
 
how can i store result in root1 and root2 of this following code #include <iostream> #include <iomanip> #include <cmath> #include <fstream> #include <os...
[4 replies] Last: @ L B meh :D @ madjas Oh I see you mean store an array of structs... (by strongdrink)
Pointer && (1,2)
 
CODE1 if (pointer1 && pointer2) { //Do somthing if both pointers are not NULL } CODE2 if (pointer1 != NULL && pointer2 != NULL) { //Do somthi...
[21 replies] Last: NULL is a macro that expands to either 0 or 0L , this is a null... (by closed account z05DSL3A)
Math.h and Ubuntu
 
Hi all. I have a code wrote in C++('.cpp') that I'm able to compile without problem in Windows. But when I try to compile in Ubuntu (g++ 4.4) I get the followin...
[3 replies] Last: How about if you use std::min and std::max rather than min and max? Do... (by Moschops)
Sqrt() Precision
 
Hi there, I've stumbled upon something odd when i was implementing a sqrt() function in a C program. It seems that sqrt() from math.h will not give you the r...
[4 replies] Last: obvious contradiction between Moschops statement and his references ... (by Moschops)
Code::Blocks issue with 'errors'
 
Hello! I have a problem with the IDE Code::Blocks. The problem is, that I copied an entirely valid code from one of your tutorials, yet it says 'there is no ...
[4 replies] Last: Oh, I got another problem. I don't understand an error, and strangely,... (by ChosenCoder)
Actually reading the newline
 
Currently I'm having problems reading input files. The problem I'm encountering is that I actually want to read the newline character instead of using it as a d...
[9 replies] Last: Most people don't even use delimiters. They'll read the file entirely ... (by closed account S6k9GNh0)
by jsk15
Why is this declared void?
 
Hi guys. I'm going through the (really good) tutorials on here and a bit confused at one point. Mainly, in the class CRectangle, why is set_values declared v...
[7 replies] Last: The point is that the program is there to illustrate something. The e... (by kbw)
by adabo
How do Functions and Data Structures work?
 
In the Data Structures section of the tutorial, I noticed in the movie example that the function's parameter: void printmovie (movies_t movie) { cout << movi...
[6 replies] Last: You can use the variables after the bracket, or you can make more movi... (by LB)
Please help with POINT! (1,2)
 
Well, I've been working on a project that can store coordinate points in an array. Unfortunately, I'm not a very good coder, so this is the best I could come up...
[20 replies] Last: No. See http://ideone.com/U39eK for an example of how std::numeric_li... (by webJose)
by Bulova
fin.get with link list and headers
 
Hi, I'm having issues with trying to use fin.get in my header file, everything displays properly except the first description. I'm using link list with classes...
[no replies]
June 2011 Pages: 1... 2122232425... 41
  Archived months: [may2011] [jul2011]

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