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...
[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...
[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 =...
[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...
[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...
[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?
[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...
[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; }
[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 *) ...
[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 ...
[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...
[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; ...
[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...
[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...
[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...
[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...
[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...
[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...
[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?
[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...
[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.