Beginners - July 2009 (Page 15)

Running dll file on two different computers
Hi I've created a .dll file which is used on different computers. The problem is that is runs on one of them but not on the other computer. Does anyone k...
Jul 9, 2009 at 1:30pm
[2 replies] Last: Ok, thanx! /A (by anykvist)
Develop web page?
Hi Friends, I am asking about we can develop web page design using c and c++ languages. How to we use the shell scripts in c++ languages. Tha...
Jul 9, 2009 at 11:48am
[2 replies] Last: You can make your entire backend in C/C++, but for your frontend you w... (by jmc)
extract the number from a char string
Hi guys, i'm new here and new to c/c++ programming. could you guys guide me how to extract some character/number from a char string? Example: char *p =...
Jul 9, 2009 at 11:36am
[2 replies] Last: If TAGNAME can contain underscores and capital Cs, then you are going ... (by jsmith)
by Maya
How to detect the end of a sentence
Hello, I am writing a program that frames each word of a given sentence and gives the following output: +----+-----+-----+----------+------------+ | We...
Jul 9, 2009 at 7:21am
[18 replies] Last: tried to read about the getline function but don't know yet how to use... (by Maya)
Program reads out different answer than expected.
Hey, I'm new to this forum and to C++, having only just started this week by reading the 3rd edition of Absolute C++. I'm an art student looking to become profi...
Jul 9, 2009 at 4:52am
[3 replies] Last: I think you're completely messing up the calculation, both on the calc... (by helios)
by NGen
Compiler-Specific #define
Do compilers have #defines to show which type of compiler is being used? If so, what would the definition be for Visual C++ 2008?
Jul 9, 2009 at 2:09am
[1 reply] : http://predef.sourceforge.net/precomp.html (by helios)
scanf usage
I'm using scanf to scan for simple user input (see below for an example of what I'm doing...), and if I try to use it multiple times to scan for a character, it...
Jul 9, 2009 at 12:19am
[5 replies] Last: Exactly. Eg scanf("%c", &Ans ); // input ABCDE reads A scanf("%c", ... (by jmc)
switch() statement
Pretty easy question. Are you able to use && or || in a case value? ie. switch(i) { case : 1 || 2 || 3 : do something; }
Jul 9, 2009 at 12:03am
[2 replies] Last: I see. I havent started coding with it yet. I was just doing text ex... (by vince510)
by jmc
allocate local variable in function
Is it possible to allocate a local variable in a function? Or what else could I do to make the following dumm code possible? void func1(){ int *a = (int *) ...
Jul 8, 2009 at 9:25pm
[8 replies] Last: The real programm does that and all memory is freed every time it is n... (by jmc)
Function Pointers... Benefits?
I am constantly looking back through my code and trying to find better ways of doing things. I am again looking at Function Pointers... I don't see/understand ...
Jul 8, 2009 at 9:18pm
[4 replies] Last: That makes a little more sense. Thanks. (by Return 0)
a number is sored in a string how do I set it equil to a variable
I can't get randnum to equil what is in the string at (randlong, randhigh) AKA (x,y) vector<vector<double> > countgrid; int randhigh; // random number...
Jul 8, 2009 at 8:40pm
[6 replies] Last: sorry my code is just to involved it won't fit, it is like double the ... (by fire child)
explanation of a program
#include <iostream> using namespace std; int main( ) {int b ; cout<<sizeof(b)<<endl; cout<<sizeof(b+0)<<endl; cout<<sizeof(*(b+0))<<endl; ...
Jul 8, 2009 at 6:54pm
[2 replies] Last: isn't 'b' a pointer to int ? So b+1 would be b + sizeof(int)*2 Any... (by Disch)
Using map<> containers - yet more problems !
This is really a continuation of my previous post regarding maps. I'm having problems using a map, my compiler g++ complains it cannot find a reference to a map...
Jul 8, 2009 at 5:56pm
[4 replies] Last: Bazzy ! cheers mate. problem solved. I just didn't realise that had... (by CodeBugs)
finding the smallest value
Hey Guys! I am very new to programming. I am trying to write a code that outputs sum, count, average, and largest and smallest number. I have ran into a problem...
Jul 8, 2009 at 5:14pm
[3 replies] Last: I fiddled with it and came up with this. You have the same problem in... (by kempofighter)
Unicode
Hi fellows... How unicode is used in C++? Which header file is required(i think tchar but not sure ). Can some one guide me with an example... Thanks in advanc...
Jul 8, 2009 at 3:25pm
[2 replies] Last: During searching, i found ASCII codes for arabic alphabets. http://ww... (by AR Khan)
by Nelo87
To activate the destructor.
I'm at the end of my program, however, my destructor is not working. how is on object supposed to go out of existence? I know that that is when the destructo...
Jul 8, 2009 at 2:28pm
[10 replies] Last: Yes, perfect! The console closes immediately because that is what i... (by Duthomhas)
Julian date UDF
This is a program to print the Julian day of a particular date.That is the no. of days that have lapsed in the year therefar. The syntax is right but he logic i...
Jul 8, 2009 at 12:29pm
[5 replies] Last: Glad to have helped. :-) (by Duthomhas)
Using same namespace in multiple files
I am trying to use a namespace in separately compiled files. The individual compiles work fine, but the final link does not. Here is some simple code tha...
Jul 8, 2009 at 12:19pm
[2 replies] Last: Based on the last response, I have tried several ways to get the code ... (by greentype)
Making the scope of a variable global?
When I define a variable, how do I make it global so other functions can access it?
Jul 8, 2009 at 12:15pm
[8 replies] Last: IMHO, because people want to create "nice" interfaces, and all GUIs ha... (by jsmith)
How to create a static map that is only loaded once? [C++]
Not sure this is going to be easy to explain but ... I have a class (A) that needs to have access to a map (mapCodes), this map is the same for all instances o...
Jul 8, 2009 at 12:06pm
[1 reply] : You can have a nested class (with the map as member) which populates t... (by Bazzy)
July 2009 Pages: 1... 1314151617... 20
  Archived months: [jun2009] [aug2009]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.