Beginners - July 2010 (Page 23)

by c bean
Division Returning 0
 
Hello everyone, For some reason this line of code will result in 0: float scrollheight = (drawheight/textheight)*drawheight; I have already confirmed that ...
[3 replies] Last: Conversion to float would occur at the equal sign. (by jsmith)
pulling char's from an array
 
i need some help as to how to do this. at the end of my code i have the user enter 5 words and then i added the array end . now i need to pull the 1st and 3rd ...
[1 reply] : You can familiarize yourself with the substr function here. http://cp... (by kempofighter)
by sasigi
Character pointer and size
 
Hello Everyone, In have a doubt in pointer size. char *p; cout<<sizeof(p); cout<<sizeof(*p); first will print 2 second will print 1 why it s...
[3 replies] Last: I'm surprised the pointer wasn't 4 bytes myself but since the pointer ... (by kempofighter)
*** Quick Pointer Question ***
 
Hello so I have bumped into a small dilemma today. I have one example. #include <stdio.h> #include <string> #include <iostream> using namespace std...
[4 replies] Last: Those arguments I have no idea about.... Receives pointer to reference... (by yklintux)
Save array to a text file
 
Alrighty, so I have a program that draws with a mouse cursor, as it draws it saves the mouse positions into an array. I need to save those coordinates into a te...
[4 replies] Last: The problem was that I didn't put in the array right when getting it i... (by closed account DSvMDjzh)
by b52
Don't understand fatal error message.
 
LINK : fatal error LNK1561: entry point must be defined Isn't main() the entry point? // vector assign #include <iostream> #include <vector> using...
[5 replies] Last: No problem. [quote=b52]Although VC++ Express adds a half dozen file... (by m4ster r0shi)
struct input error
 
First I want to say thanks to all the people that helped before! I have a new problem. I am creating a text based point of sales system. The code I have so f...
[10 replies] Last: WOOT thanks a lot I got it working now!!!!! man you guys and gals are ... (by lukecovack)
errors with pointers
 
I am a beginner and I came across a problem that may be a step too big for my legs. And if it is I would be very grateful if I was told so. I defined a a cla...
[5 replies] Last: [quote=Albionion]My idea now was create a function to which I can give... (by m4ster r0shi)
searching in the file
 
hello every body , if we suppose that i have a file in c++ . in this file a lot of names and in front of each name its ID . my problem is how to search in the f...
[1 reply] : Model the data into a type, load the data into memory via a container ... (by moorecm)
by kokito
accessing a file from my program
 
I have this text document with the results of a numerical model. I need to be able to pick some of them out and write them down in a column. I think I can figur...
[2 replies] Last: That looks neat. I'll read through it and ask if I'm in trouble. Th... (by kokito)
Char type hit me
 
Hi everyone, I am learning C++, but I have very much dificult with type char. I write the simple program to learn, and I have use the type string because I ...
[7 replies] Last: My friend, It works very well!! Thank you! The final code is list ... (by brazyuri86)
taylor series in c++
 
hello please see this picture http://img104.herosh.com/2010/07/09/457215330.jpg now my question if x = 2.3145 Q1 how much will be cosine, sine and tang...
[5 replies] Last: i know x³ is short for x*x*x 3! is short for 1*2*3 but now i don'... (by empror9)
Custom order of a 2d array
 
class matrix { const int x; const int y; int value ; public: matrix(int ,int ); }; matrix::matrix(int a,int b) { x=a; ...
[3 replies] Last: You should read this: http://cplusplus.com/doc/tutorial/dynamic/ But ... (by Skillless)
Moving Pointer Variable Associated With Array var
 
Hi all, I'm still a beginner and could you please help me, how does indexing done within pointer variable which points to an array variable. I have a code below...
[1 reply] : You never really modify the pointers themselves. *bil = *(bil + 1)... (by hamsterman)
by r3pic
trouble with unsigned type modifier
 
Hey all. I'm having trouble understanding unsigned type modifier. Consider this code: 1 vector<unsigned int>numbers; 2 3 numbers.push_back(-5); 4 5 ...
[4 replies] Last: hey all I found this in The c++ prgramming language book : "The... (by r3pic)
Begginers Questions
 
I've been trying to learn C++ and I can't seem to understand a lot of it. I mean I can write the code when I'm using a book to learn but I don't know how to pra...
[10 replies] Last: Maybe you should go for designing. The pay is almost the same and it'... (by AngelHoof)
shellexecute()
 
Can anyone give me an example of how to use shellexecute?
[9 replies] Last: You can omit the full path to the file and have just the filename, if ... (by RyanCaywood)
writing and reading a structure from/to file
 
iwas using reinterpret_cast<> to write and read structre but ihave found something that is really very wired when i read from the file using reinterpret_cast<>...
[2 replies] Last: thank you. and sorry for such a trivial error. (by mostafa44)
by m0j1
infinite loop with <stack> header
 
hi , this is my first post here . I've wrote a program that uses <stack> header and I need to use a while operation in my code . the problem is when I use stack...
[7 replies] Last: yeah , thank all u guys . all the errors was because I wanted to locat... (by m0j1)
Prime numbers confusion
 
Can someone explain me the following code: int i, j; for(i=2;i<1000;i++){ for(j=2;i/j;j++){ if(!(i%j)) break; if(j>(i/j)) cout<<i<<" ...
[15 replies] Last: I suppose you could put it that way. (by Zhuge)
July 2010 Pages: 1... 2122232425... 31
  Archived months: [jun2010] [aug2010]

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