15,552 Topics
| |
Relevant header definitions are as: [code] class XMLChain { private: Segment root; std::vector<XMLOpen*> chain; Segment * immediate; std::vector<XMLOpen> openers; [/code] The function in question is: [code] void XMLChain::open(std::string tag) { Segment * last_immediate = immediate; openers.push_back( XMLOpen ( tag ) ); XMLOpen * cast_immediate = &(openers.back()); (*last_immediate).setNext( cast_immediate ); immediate … | |
Hi! The gems programming Series Can I just start off with Gems programming 9 or do I have to start off with 1 and work my way up? | |
Hi, does anybody know how check whether the socket (ie file descriptor) is valid in C? I know it is probably possible to do it using either a read or a write command, however, what other ways are there? Thanks. | |
Hello, I want to know how to implement semaphore without the use of while or any if statement The Problem is Thread A , B , C they all want to output the result at the same time A wants ot print 'A' B wants to print 'B' C wants … | |
someone please help me on how to run this coding using knoppix linux.. using c language.. i really need help.. i want to know.. what is the output.. this is the coding :- [code] int main() { Pid_t pid; /* fork another process */ pid=fork(); if (pid<0) { /* error … | |
Is there an api that converts a texual varaible to an OID (which is respresented in dot notation? In net-snmp, there is an api "getnode" which does this conversion. For example, give the api mymib::ronyd.0. and converts this name to .1.0.1.1.5. | |
hi im still finishing a calculator program. the problem is i am wondering what command to use to break out of multiple loops. my code is [code=c] [COLOR=Gray]#include <stdio.h> #include <ctype.h> #include <math.h> double do0p(char op, float acc, float num) { switch (op) { case '+' : return acc+num; break; … | |
I have to pass this assignment which calculates the income of workers using pointers and structures.. I'd be very glad if you could help me with this.. uhmm.. could you also please tutor me about this program if you got any answer..?? thanks!!:cheesy: | |
Hi everybody. In C running in the Unix environment, there are many ways of getting the directory listing. One I know is to use the ftw library (the way I currently implement it), the other is to pipe from the ls, also sometimes you could use dirent.h. I realize that … | |
im writing a calculator program in c and having some trouble.. basically it needs to have + - / * ^ functions as well as an integer only mode the code so far [code=c] #include <stdio.h> #include <ctype.h> #include <math.h> int main(int argc, char *argv[]) { float acc, num; char … | |
| |
Hi, it's me again lol... Ok i havea windows forms application. I have several classes with pointers to other classes eg: [code=c] class1 { public: function(void); class2* c2; }; class1::function { c2->variable = 3; return 0; } [/code] I think form1 is an object, maybe this is cos i'm a … | |
Hello, i am currently working on the Flapjacks problem, The program compiles correctly, only it keeps going into infinity when i input, it keeps asking for more inputs, and its supposed to stop when i input -1. Here is my Code. [code] #include <stdio.h> #define SIZE 30 int isinorder (int … | |
Hi all, in one of the header file I have declared #define GPSINIT "version no" I need to find where this string is stored in memory location. I tried to test_string1 = &GPSINIT2STRING; LOG_Write(test_string1,sizeof((int*)test_string1)); /*this func writes the result to a new text file*/ Also is it possible to get … | |
Hello, before I post my question I just wanted to thank those who helped me last time I posted. I was seriously considering dropping my class thinking that I wouldn't be able to do it. However, with my last hw assignment I came here and Niek_e especially pointed out some … | |
Hi im new here...i am only an high school student, i hav a problem on my this output...im using turbo c, can u help me with ths?? i cant get it...pls help 1. 55555 4444 333 22 1 2. 12345 1234 123 12 1 3. ****5 ***4* **3** *2*** 1**** … | |
Hello, Sorry for my "n00bness". I finaly choosed qt. I made an .ui file with qt4 designer and written main file. First: -I included "ex.ui"...IS that right? Will compiler accept that? HEre is the code, [CODE]#include "ex.ui" #include <QtGui/QtGui> int main(int argc, char *argv[]) { QApplication app(argc, argv); app.setQuitOnLastWindowClosed(true); QMainWindow … | |
Hi Guys, I need to be able to print something like: [B]Player 2: Enter a word (1-20 char,blank line to quit):[/B] and then right after I have entered the word the output should look like : [B]Player 2: Enter a word (1-20 char,blank line to quit): apple[/B] My printf looks … | |
Hi, I am a basic learner in C language.Could u please provide me a good link or tutorial or explanation regarding "order of precedence". I have the table of "order of precedence"........but needed some examples. I am always confusing with them. like, *ptr++=something; *++ptr=something i=i++................etc. Thanks & Regards. | |
I'm having trouble writing a program. I have to determine the name of student who scores the highest marks for each module and the highest in the average score of 5 modules. Hence display them in a table form where 1st column is the modules and the 2nd column is … | |
can anyone tell me the code how to connect database in C..The databas3 may be either Oracle ,SQL Server Or MS Acess.. plz help me... | |
I am trying to convert an Enum type called: enum Category{unknown = -1, meat, poultry, seasfood, diary, vegetable, fruit, grain,sweet}; And a struct Food that contains array Category category. The user is given numbers to enter for the Category types, ie: 0 = meat, etc. My program can take that … | |
I want to use a function to get either the number of seconds or milliseconds since midnight, it doesn't matter. Does anyone know of a function that would give me this? | |
:o EDIT: Forget my question :eek:, thanks for looking :mad: | |
Hi guys i'm tyring to delete some elements from a vector. I am trying to delete from 0 to k-1 and from k to the end. That means in theory that only element k should remain. 1) cell[i][j].erase(cell[i][j].begin(),k-1); 2) cell[i][j].erase((cell[i][j].begin()+k+1),(cell[i][j].end())); line 2 does not give me an error, however line … | |
I was starting off with making the game " Cows and Bulls". And to start off i am having a problem in inputting the 4 digit number in a mannar that it appears in form of "*" on the screen. similar to a password. And each digit should be separately … | |
this a questions | |
| |
Hi to everyone, I am using createProcess("setup.exe","",...) to launch an installation. When I call this function from a "normal application program" everything works fine. However, when I call same function from a service application, it hangs up when writing information to add remove programs. Can you tell why this happens … | |
[B]Wat according 2 u ppl is the strongest cryptography for c ?:!: [/B] [B]I mean that can be acctualised using a C program.[/B] |
The End.