15,551 Topics

Member Avatar for
Member Avatar for kokopo2

Hi pros and experts. I am experiencing some trouble in doing up a code which could evaluate the input into the different data types. What i managed to acheived is to read a file and its content. I used strtok to break the string into various 'tokens'. Now the problem …

Member Avatar for Dave Sinkula
0
441
Member Avatar for altheastronut

Hello, I'm almost done with my program however I'm having trouble getting what I want printed to a file. I'm familiar with the printf function and what I want is to print out to the file in scientific notation, which would be %E if I were using printf. Is there …

Member Avatar for altheastronut
0
346
Member Avatar for sx3

For this assignment i must replace all unprintable characters by escape sequences. So, the program must do the following: Read each character of the file, and 1) if that character has an escape sequence, print the escape sequence, even if the character is printable. 2) if the character is printable …

Member Avatar for Ancient Dragon
0
147
Member Avatar for Daishi

This has been bothering me for a while now. When I try to clear a vector it just *pretends* to clear it, and the data is still in memory. This led to some obscene memory leaks, so I dug around looking for a way to really clear out a vector, …

Member Avatar for Daishi
0
231
Member Avatar for RITZY_G

:cry: i'm so confused right now, can any one help with this? defining a functoin bool prime (int n) which prints 10000 prime numbers

Member Avatar for jwenting
0
150
Member Avatar for konacious

I have a program that is designed to read in a line of text and ouptut the number of words in the line and the number of occurrences of each letter. A word is defined as any string of letters that is delimted at each end by either whitespace, a …

Member Avatar for konacious
0
277
Member Avatar for levk

Hi, I get a segfault when I try to instantiate a class I wrote. I don't know what the problem is here. The constructor is never entered. Details: [code] /* Connection.h: */ class Stream { private: ACE_Message_Queue<CONNECTION_SYNCH> *serverq; Provider *provider; ACE_Event_Handler *serverp; public: Stream(ACE_Message_Queue<CONNECTION_SYNCH>*, Provider*, ACE_Event_Handler*); ULONG send(char*, size_t); ULONG …

Member Avatar for levk
0
166
Member Avatar for winbatch

I keep getting a core dump (bus error) on my program. I suspect it has something to do with the amount of data I am storing in a map<string,string> The program crashes however when it is done processing and is actually destructing. Before I post any code, I was wondering …

Member Avatar for winbatch
0
140
Member Avatar for Raven11

Here is a source code I found while searching google for API functions. The source will generate a header file from a source file, anyways reading it you can learn a lot. [url]http://www.hwaci.com/sw/mkhdr/makeheaders.c[/url] I also know you can generate header files from a compiled .dll file. Sounds interesting but seems …

0
69
Member Avatar for Mahen
Member Avatar for Mahen

if you rightclick on cmd.exe and click properties, you will see in the property sheet that cmd.exe is described as "Windows Command Processor". Is there any way to read this string and display it on screen programatically, especially in console mode

0
43
Member Avatar for gabe522k3

Hi can anybody help me with this program? Thanks Write a program that reads a file with a record containing a user id number (SSN), a course number (2 letters and 3 numbers, e.g. IT303), a letter grade, and the number of credit hours. Using a case statement, determine the …

Member Avatar for gabe522k3
0
114
Member Avatar for levk

If I have two templates that are mutually dependent, is there a way to declare one without defining it?

Member Avatar for Narue
0
130
Member Avatar for indianscorpion2

hi could anyone please tell me in detail about the parameters to the main function argc and argv.please let me know as much as possible.

Member Avatar for Rashakil Fol
0
228
Member Avatar for bruce3210

hi guys and gals, just a young padawan learner trying to write this poker program from scratch. i know their are programs out their but nothing like the one you write your self. Im trying to have my program read in the number of players from the keyboard input. I …

Member Avatar for BinaryMayhem
0
138
Member Avatar for Judas

How do i convert value back to const char [code] #include <stdio.h> #include <iostream> using namespace std; int main() { int i, value; const char text[] = "456"; for (i = 0, value = 0; text [i] != '\0'; ++i) { int digit = text [i] - '0'; value = …

Member Avatar for Judas
0
89
Member Avatar for DotNetUser

When I mix managed with unmanaged code I get the compiler error: "'IDataObject' : ambiguous symbol". How do I resolve this? Thanks.

Member Avatar for Dave Sinkula
0
1K
Member Avatar for altheastronut

Hello I'm trying to test out a random number generator to see how the distribution is and I want to write the values I get from the number generator to a file. Can someone show me in a simple code how to do that, or a good website where I …

Member Avatar for zyruz
0
99
Member Avatar for vineet goel

I am trying to send and recieve data by using rs232 port.For this i hav even written a program in C language using _bios_serial com,but the problem i am facing is that this command is unable to send the data. Just for testing the port i hav shorted pins 2&3 …

Member Avatar for CrazyDieter
0
465
Member Avatar for levk

I'm trying to do something like this: [code]public: ULONG dispatch(char *command, size_t length, Stream<T> *stream);[/code]<< moderator edit: fixed code tags >> Where Stream is a template. I can make the class I'm putting it in a template as well - no big deal, I just don't know how anyways. Here's …

Member Avatar for Narue
0
99
Member Avatar for levk

this is probably something extremely stupid but I can't fix it no matter what I try :sad: I have a "Service.h" file that looks like this: [code]#ifndef _SERVICE_H__ #define _SERVICE_H__ #include "nm.h" #include "ServiceProvider.h" class Service { public: virtual ULONG register(ServiceProvider *sp); }; #endif[/code] gcc gives me error: /export/home/levk/r2/Service.h:10: error: …

Member Avatar for levk
0
56
Member Avatar for Jon182

Hey guys, I was just wondering when using classes to obtain a name or something like that when a pointer is used how come you don't have to use the new and delete key words. [code] class LibBook { private: char *name public: LibBook( char* = '\0') void showBookName() }; …

Member Avatar for Dante Shamest
0
113
Member Avatar for NolanVW

Below is a program in C that I am trying to use to read in a spreadsheet (in CSV form), which I will eventually be doing calculations on and then writing out to a new file. I'm currently trying to figure out the following three things: 1) How to make …

Member Avatar for NolanVW
0
1K
Member Avatar for swchee

Hi, all I am trying to compile and run a programme which I got it from a friend. The problem is every time I compile, the error 'graphics header file no found" appear. My question is : 1. Is the graphic header file come together as standard library? bcos I …

Member Avatar for Dave Sinkula
0
111
Member Avatar for cjones5499

I am ahving a problem with the do/while loop. When the YesNo function returns a yes, main() repeats;however, it prints out what is stored in the string from before. How do you clear the string in order to run the program over and over. Also, when the piglatin result is …

Member Avatar for Dave Sinkula
0
545
Member Avatar for umbrella

hi to all.. i need help about C programming i have problem with my project, its about that how to determine the max number using for loop ill give the output and pls give me the code plss Output: Enter Numbers: 5<--input Enter first number:1<--input Enter second number:2<--input Enter third …

Member Avatar for Dave Sinkula
0
430
Member Avatar for Mahen

Suppose i have a main.cpp file and a test.h file: /////////////////////////////////////////// //main.cpp #include <iostream.h> #include <string.h> void test(); char foo[200]; int main() { strcpy(foo, "testing"); test(); return 0; } ////////////////////////////////////////////////////////////// //test.h void test() { cout << mir << endl; } WHY IS "mir" AN UNDECLARED IDENTIFIER

Member Avatar for freemind
0
169
Member Avatar for cyber_aziz

hello ppl this is my 2nd post and as i said earlier, im writing a cpp program for an exam project. the project is designing a school database system neways the problem is that the the compiler hangs and terminates whenever a wrong type of data is entered i mean …

Member Avatar for freemind
0
217
Member Avatar for cjones5499

i need to store the piglatin words returned by each function into one string so that I can then check it for lowercase or uppercase words and change as required. I can't seem to get the return 'temp' to store into a string in main. Also, when printed out, the …

Member Avatar for Stoned_coder
0
2K
Member Avatar for jindalarpan

hey can any one give me the information that from where i can get source code of messanger ( sply yahoo) thanks

Member Avatar for Paul.Esson
0
117

The End.