- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 5
- Downvotes Received
- 7
- Posts with Downvotes
- 5
- Downvoting Members
- 5
R&D Director
Re:
I have pasted my cpp code below, my goal is removing the whitespace from my .txt file. Is someone able to provide suggestions and help me figure this out? #include <iostream> #include <sstream> using namespace std; string solve(string s) { string answer = "", temp; stringstream ss; ss << s; … |
|
Re:
I want to create a web service,the theme this service is it has two take parameters as two audio files and generate a text file as output file. How would I host this service in server and call this service with server url name? Ex: http://79.132.86.145:8080/getOutput?file1=audio1.wav&file2=audio2.wav If I call the … |
|
Re:
I am looking to find a way of reading a value in from the device manager - to see if a Bluetooth devce (always the same one) has the value of TRU for 'is connected'. Any ideas? |
|
Re:
Hi, I got some data from this table. Can it be use using (for loop) ? http://i.imgur.com/lq7WtWA.png Recently, I used (if else) function, but it seem too longer. I am new to C progrmming. Here the code (if else) funtion that I done: if (0 < result < 409 ) … |
|
Re:
a) Write a loop to print all numbers from 1 to 100, one per line, Write a blank line after every five lines. [10] |
|
Re:
Hi All, in below code snippet, I have been facing memory leak issue while free memory for string.Could you let me know thereason for the same.I believe if we are allocating memory then it needs to be freedbut what i observed if i don't free the memory it works fine … |
|
Re:
Hi, I m Nagarjuna.I m doin my Masters in Computer Science at Indian Institute of Technology, Kharagpur. My thesis is on VANET security. I m doin a simulation using GloMoSim software. I want to broadcast messages/packets to all nodes(within the transmission range). As far as I ve understood the GloMoSim … |
|
Re:
What is the difference between Definition and Declaration of a variable? Am not talking about function, but variable. When I googled, I found these two answers which are quite contradictory! While one says "definition occures once through the program( memory is allocated once ), but the declaration can occur many … |
|
Re:
I am receiving this error markup.c: In function ‘GetPrice’: markup.c:16:23: error: ‘markup’ undeclared (first use in this function) markup.c:16:23: note: each undeclared identifier is reported only once for each function it appears in markup.c:17:1: error: ‘output’ undeclared (first use in this function) here is my codes // File: markup.c #include<stdio.h> … |
|
Re:
#include <stdio.h> main() { char *s1, *s2; printf("Enter string 1 :"); scanf("%s", s1); printf("Enter String 2 :"); scanf("%s", s2); printf("%s\n%s", s1, s2); } The output of 1st string is right and the output of 2nd string is wrong (i.e. (null)) Can any 1 explain what is going behind? |
|
Re:
I've recently started college at Digipen, and have developed carpal tunnel already from all the writing/coding/etc... but fortunately for me, I'm learning to be a programmer, and have already made a few programs to assist with things like opening command prompt/bat files faster/without clicking, etc. Since clicking the mouse is … |
|
Re:
I am trying to write a program that converts a string of numerals to integers. The program I have written gives me an invalid output. Any ideas what I have done wrong ? //Defining what libraries should be included. #include <stdio.h> #include<math.h> int strIntegerTmp(char *string, int collect); int strInteger(char *string); … |
|
Re:
HI , I have a basic question to ask. how do i open a .txt file in C ? i am using the code shown below which is always telling that "file not found". #include <stdio.h> main() { FILE*fp ; fp = fopen ( "PR1.txt","r" ) ; if( fp == … |
|
Re:
# include<stdio.h> # include<conio.h> void main() { int s1[10],s2[10],s3[10],total[10],per[10],i; char name[20],pid[10]; clrscr(); printf("==================== Marksheet ======================"); printf("\n\n\n"); for(i=0;i<3;i++) { printf("\n Enter your name:"); scanf("%s",name[i]); printf("\n Enter your PID:"); scanf("%s",pid[i]); printf("\n Enter your Subject1:"); scanf("%d",&s1[i]); printf("\n Enter your Subject2:"); scanf("%d",&s2[i]); printf("\n Enter your Subject3:"); scanf("%d",&s3[i]); } printf(" \n ===================== RESULT OF MARKSHEET … |
|
Re:
struct node { int data; struct node **next; }; can we use like this??? |
|
Re:
i m new in c language.plz tell me which compiler is the best GCC or Turbo c...?i m waiting |
|
Re:
Hello I am having trouble with my project crashing for every case. We are told to read in a data text file and store into structs and create a linked list of data and allow a user to choose from 4 menu options. I am completely new to linked lists … |
|
Re:
Hi guys, How to unzip folder in c# programatically. Thanks in advance. |
|
Re:
I am developing a pos application with c language, What i am trying to achieve is to add, and delete users. Adding is not a problem at all. but deleting is becoming too tricky What i am doing is, i am seaching for the record using fread(), then as soon … |
|
Re:
Like you would compile a C++ program. But with C# you always need the .NET framework (such a draw back sometimes). Is there anyway that you can compile the program and run it without .NET? |
|
Re:
Hi, I have a this code which works OK: class c <T> { public T method (T p) { // ... } } but I would need this: class C <T, U> { public U method (T p) { // ... } } How could I write it, compiler reports … |
|
Re:
Hy, I trying to create a windows forms app that also starts a webservice that hosts some webmethods. The webservice is used by different users that connect to it to generate some data. The webservice, in his turn, connects to a public webserver with a certificate from a usb token. … |
|
Re:
What is the difference between string and String? If I want string name = "Joe"; String name = "Joe"; which is the correct usage? Is there a difference? Thanks in advance. |
|
Re:
Hello. I need to simulate a button click with a Timer. That the action performed by the button, repeats every 60 seconds. I've never use timers, any help? |
|
Re:
Hey, I'm having a bit of trouble with progress bars and background workers and want to try and solve this with the simplest solution What I am doing is reading the contents of a specific directory, I am then displaying in a list box all the folder names so that … |
|
Hi folks, I am working on a Windows Form project that all things in it are dynamically created during run time. So all controls are created during running application and also events are assigned to controls. Also I have to mention all controls are user defined controls. All event functions … |
|
Re:
hello guys i have some questions and i want you to help me 1- how to find a factorial for a number e.g. input 5 = 5x4x3x2x1 so the is output 120, now please see my code [CODE]int fac = 0 ; int count = 0; int num; cout <<"Please … |
|
Re:
Hi All, I need to send email from a C# application from localhost. I was successful in sending email using gmail SMPT port and host. But i need send email from local host SMPT virtual server. I followed the steps explained in [url]http://forums.asp.net/t/268037.aspx[/url] and [url]http://weblogs.asp.net/steveschofield/archive/2007/08/15/send-email-from-your-local-machine.aspx[/url] but the mail was not … |