Posts
 
Reputation
Joined
Last Seen
Ranked #121
Strength to Increase Rep
+15
Strength to Decrease Rep
-3
89% Quality Score
Upvotes Received
286
Posts with Upvotes
252
Upvoting Members
160
Downvotes Received
39
Posts with Downvotes
34
Downvoting Members
21
75 Commented Posts
~694.22K People Reached
Favorite Tags
Member Avatar for vegaseat
Member Avatar for Reverend Jim
15
13K
Member Avatar for adoleh

I have to create a program that asks a person to enter a 2 digit number (10-99) and convert it into words. I've been working on this for days and I still don't see what I'm doing wrong! PLEASE HELP ME!!! EXAMPLE: 27 twenty-seven [CODE]#include <iostream> using namespace std; int …

Member Avatar for emsmary
0
15K
Member Avatar for GadiK

Hi guys, I took it upon myself to learn the mysteries of linux. I'm trying to write a shell that can handle more than one pipe. Here's the code: [CODE] typedef struct command_link{ char *command; char *argv[MAX_ARGS]; int argc; struct command_link* next; int isPiped; }command_t; int pipedCommand(command_t *command) { int …

Member Avatar for Riadh_1
0
11K
Member Avatar for munitjsr2

[CODE] #include <stdio.h> #include <stdlib.h> typedef struct filedata { char data[100]; }data_t; data_t * fname=NULL; //IS AN ARRAY OF the structure filedata REQUIRED HERE void quit() { printf("\nPress enter to exit"); fflush(stdin); getchar(); } int main() { char ch; fname=(data_t *)malloc(sizeof(data_t)); FILE *fptr=NULL; atexit(quit); printf("Please enter the file name to …

Member Avatar for AssertNull
0
3K
Member Avatar for tegaelam

Hello all, I am having issues with a homework assignment. My assignment is as follows: Write a program that uses a loop to display Pattern A below, followed by another loop that displays Pattern B. Pattern A: + ++ +++ ++++ +++++ ++++++ +++++++ ++++++++ +++++++++ ++++++++++ Pattern B: ++++++++++ …

Member Avatar for Reverend Jim
0
3K
Member Avatar for cpsusie

Alright guys, I'm a total n00b to assembly. NOTE: I am not a student -- I am a professional lawyer who loves to tinker with the computer and waste time. Using Visual Studio 2008 Express (C++), I actually managed to write a function in assembly language that evaluates a character, …

Member Avatar for Zack_7
0
11K
Member Avatar for kylcrow

Hi. I am new to the forum and I had a question. I have looked around and haven't really been able to find exactly what I am looking for. I am looking for the code in C++ to read in a random single line with spaces from a file. This …

Member Avatar for zia shaikh
0
5K
Member Avatar for pavankumar77
Member Avatar for Dave Sinkula

With regard to C++ books, I'll just echo the advice here .The following books are recommended; read them in mostly the order listed." Accelerated C++ " Andrew Koenig & Barbara Moo " The C++ Standard Library " Nicolai Josuttis --- a "must have" " Effective C++ ", " More Effective …

Member Avatar for shahidali6
11
10K
Member Avatar for LostnC

Hello. I am a beginner. I have searched the past threads, but I haven't found any help. My assignment says to write a function to swap 2 values using pointers. Write a main function that inputs 2 numbers. Have it call the swap function if the numbers are NOT in …

Member Avatar for deceptikon
0
3K
Member Avatar for Jfunch

The problem I am trying to solve is Write a program using fork() to compute average of N numbers. The parent process forks a child process that takes input from the user, adds all the numbers and returns the sum and the count of numbers to the parent process that …

Member Avatar for Kyle_4
0
3K
Member Avatar for gerard4143

I have a simple question about unicode and utf8. How does a utf8 encoding know what its uppercase encoding is? I understand how utf8 encoding carries its unicode value embedded in itself but I fail to see how it maps a utf8 encoding to an uppercase unicode value. What is …

Member Avatar for deceptikon
0
157
Member Avatar for Vandithar

Hi, I want to install turbo c in windows. I don't have cd to install turbo c. I tried downloading a zip package and installing but it is giving error. How can i install and download turbo c in windows? Any suggestions? VANDITHA

Member Avatar for maha harshini
0
389
Member Avatar for inspire_all

i am trying to overload +operator to concat 2 strings i tried to write a code but it is giving 2 errors and i am also not sure whether logic is correct..MY CODE is [CODE]#include<iostream.h> #include<conio.h> #include<string.h> class string { char *str; public: string() { cout<<"enter string"; cin>>str; } void …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for Shreerang

Hey all, I was wondering if a web page could be opened in Mozilla Firefox using a shell script!..I haven't given it a try as yet...I will also try and if I find a a solution I'll definitely put it up....Till then if someone finds a solution or knows it …

Member Avatar for daye_1
0
4K
Member Avatar for inspire_all

suppose there are two strings str1 and str2. suppose i filled str1 with some characters.Now what i want to do is copying string str2 at some specified location in str1. How can i do it?

Member Avatar for naveen1993
0
198
Member Avatar for Rallici

Dev-cpp 4.9.9.2 Windows 7 Hello I have been using my current version for quit a while and I restarted my computer today and now no matter what I try to compile I always get the return of: [CODE] Compiler: Default compiler Executing g++.exe... g++.exe "C:\Users\Salica\Documents\Cpp\hello.cpp" -o "C:\Users\Salica\Documents\Cpp\hello.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" …

Member Avatar for learner_new
0
2K
Member Avatar for taverasme

Hi all, First time poster here, I've referenced posts here on daniweb in the past and it has always been helpful, thanks! But I can't find the answer to this particular problem here on the forums. I need to write a basic string parser as part of a coding assignment …

Member Avatar for Nikolas9896
0
6K
Member Avatar for fahadmunir32

what difficulties most of the beginners in c++ programming student face i guess logic building ** i have a blog about c++ programming for beginners on which i try to things the as simple as i can so every beginner can understand the logic of program. Because once they are …

Member Avatar for rubberman
0
510
Member Avatar for baid.arham619
Member Avatar for radu.nuconteaza

//header file #ifndef STRUCT_H_INCLUDED #define STRUCT_H_INCLUDED typedef struct curs_valutar { char nume[50]; float cursul; struct curs_valutar* next; struct curs_valutar* next2; }curs_val; curs_val *head=NULL; int sc=0; int n; int creare(int n); void introducere_date(); int citire_date_fisier(char nume_fisier[100]); void afisare_date(); void eliberare_memorie(); int adaugare_date(char c_nume[100],float cursul); void cautare_date(char sir[100]); void cautare_date_in(int val1, int …

Member Avatar for Ancient Dragon
0
208
Member Avatar for nhrnjic6

Let me try to explain a problem I have.I have built array of structures that contains int(num of days) and string(Name).So basicy user should enter name of a friend and days they last talked,and then make a list sorted by the names of the friends of by how recently it …

Member Avatar for nhrnjic6
0
149
Member Avatar for karma2you

This semester is my first programming class and I am really struggling to complete this project. I just can't get a handle on this.I know its simple but my program is not running. Can someone help me and explain it ? Here are the rules(outline): - You must ask the …

Member Avatar for Ancient Dragon
0
240
Member Avatar for Pia_1

I have a problem with registering a new employee for my project. It can only detect the first employeeID as an existing.. Here's my code: void registerNewEmployee(){ FILE *fp; struct employee obj; fp=fopen("data.txt","a+"); system("cls"); printf("\n\t*******************************************"); printf("\n\t*******************************************"); printf("\n\t***\t\t\t\t\t***"); printf("\n\t***\tNEW EMPLOYEE REGISTRATION\t***"); printf("\n\t***\t\t\t\t\t***"); printf("\n\t*******************************************"); printf("\n\t*******************************************\n\n"); char employeeIDNew[5]; printf("Employee Number: "); scanf("%s", &employeeIDNew); …

Member Avatar for deceptikon
0
198
Member Avatar for Ahtsham
Member Avatar for richieking
0
161
Member Avatar for Fedoros
Member Avatar for CreatorZeus

okay i have a file with data orgainzed like this in a dat file to be read: apple.0.0.end. and i want it to be read by char until it sees "." then print that, then read again repeated until the end of the line. so i can show the data …

Member Avatar for deceptikon
0
253
Member Avatar for hemanshurpatel

Hi friends, I want to implement code which can take input from some other application. Like say for example ls | less Here, less is the application/utility which takes input from ls via pipe. I want to implement the same in C. I Did following things 1. Created PIPES using …

Member Avatar for Tumlee
0
674
Member Avatar for samer.aboufakher.3

// my problem is in the playerscore and computerscore always gives me 0 or 1 // i cant know who finally won plz i need ur help //at the end of the program it should gives me the score of computer and the user out of 5 of the total …

Member Avatar for samer.aboufakher.3
0
181
Member Avatar for roshan.parate.73
Member Avatar for L7Sqr
0
564